Hi, all, I have an input String ":CURV 12,72,75,74,76,74,75,77,77,72,72,75,78,72, .....", totally 500 numbers, how can I change this to a 1-D array? I tried to use "scan from string", but how to set up 'format string'? thanks TBird
Since you have so many numbers, you shouldn't use scan from string. Instead, use a while loop to detect and convert each number, and output the result using auto indexing. You can also take the first part off the string and use spreadsheet string to array with a comma as the seperator and a 1D U16 array as the type.
I assume that this is the data retruned from an instrument. If that is the case I would recommend the Instrument I/O Assistant Express VI in the Express palette. It helps you set up the communication (which you already have working) and the parsing (which is the part you are having trouble with. It is really easy to use and helps out with most intrument communication when you don't have a driver.