LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save multiple data coming in from my data string

I am a newbie at labview. I have a scale connected to my RS 232 and made a VI to display the changing scale. I am trying to save the multiple changes as my weight varies but have been only able to save the last value. Is there a simple way to save all the values I see in my VI to a file for later plotting? I have done one before using indexing but the case this time is that I am receiving a character string and not a numeric array. Any examples or advice would be great!!! Thanks
 
Gerald
0 Kudos
Message 1 of 4
(2,952 Views)
Hi Gerald,
 
What you need to do is write to a file continuously, i.e. after each point you collect.  You can do so by opening a new/existing file, write to it inside your while loop, and close it once you are done collecting and writing data points, i.e. outside the loop.
 
I believe the following example is a good demonstration of that operation.
 
Best of luck,
AG
0 Kudos
Message 2 of 4
(2,920 Views)
If you don't want to continuously save the data you need to accumulate it into some buffer. (e.g. building an array in a shift register).
 
You could even simply use a waveform chart, then save the history data as desired.
Message 3 of 4
(2,908 Views)
Thanks for the help guys, I did end up using the waveform chart method......Gerald
0 Kudos
Message 4 of 4
(2,891 Views)