07-01-2013 05:08 PM
I am trying to take data from the DAQ assistant and create a string of data to be used in another part of my program, however I am unsure how to do this. I am currently using the "Get Waveform Component" to get the Y value of the data coming out of the DAQ assistant and then using the "Get Digital Data Components" to attempt to convert the data into a string somehow.
Any Suggestions?
Thanks!
07-01-2013 08:23 PM
Do you want one string, or an array of strings, or something else?
You can convert a number to a string (or an array of numbers to an array of strings) with the String/Number Conversion pallette.
07-02-2013 12:39 PM
Todd_Lesher is on the right track with this. You will want to take the wire from the "Get Waveform Component" and wire it to something like a "Number To Fractional String." This will output an array of strings. If instead you just want a long string will all the values, you could use a For Loop with an Auto-Indexed Tunnel. From this, convert each value into a string and use the "Concatenate Strings" function with the result being passed back into the function using Shift Register. Hope this helps!
07-02-2013 12:56 PM
@FoxSquirrel wrote:
If instead you just want a long string will all the values, you could use a For Loop with an Auto-Indexed Tunnel. From this, convert each value into a string and use the "Concatenate Strings" function with the result being passed back into the function using Shift Register.
I would just use Array to Spreadsheet String.