Post Reply 
HP 50g using datasets from SD card
05-17-2020, 01:21 AM
Post: #3
RE: HP 50g using datasets from SD card
You may find it possible to put your data in an ascii file on the SD card, and then recalling the data as a string onto the stack. You could then execute the RPL command STR→ to convert it into something that could then be accessed in a program, either iteratively or by index.

If your data is a series of numbers, you could perhaps use a list format or possibly an array or matrix format as appropriate. You may need to split the data up into several different string objects, depending on how much memory is required for the combination of the ascii representation + the converted data.

Some general formats for possible data formats are as follows.

LIST: "{ obj1 obj2 obj3 ... }"
ARRAY: "[ num1 num2 num3 ... ]"
MATRIX: "[ [ num1 num2 num3 ] [ num4 num5 num6 ] [ num7 num8 num9 ] ]"

Once compiled by STR→, the object could be stored in native format as needed to a variable (either in main memory, flash, or SD card).

While it's possible to write the data in the appropriate binary format (the object formats are fully documented), it would almost certainly be easier to just have the calculator do it for you with STR→.

In any event, you will be limited by the amount of addressable memory in the calculator, which may end up being your largest obstacle if the dataset is very large. How large is the dataset you are converting?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 50g using datasets from SD card - DavidM - 05-17-2020 01:21 AM



User(s) browsing this thread: 1 Guest(s)