10-29-2009 08:08 AM
Hi,
The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
Best regards,
Ninjatovitch
Solved! Go to Solution.
10-29-2009 08:12 AM - edited 10-29-2009 08:15 AM
for this case you can either use a case structure or an event structure
I looked at your code you might want to put the save case structure iside the While loop
10-29-2009 10:42 AM
Hi Harold,
Thanks a lot for your quick answer. I tried to put the "save" case structure inside the while loop but I get the same data portion saved.
best,
Ninjatovitch
10-29-2009 10:56 AM
it sees to be working on mine or at least i think it is working as you want it to here is an example
you will have to change the constant on it
10-29-2009 11:01 AM
Thanks for your answer. Unfortunately, I can not open your vi, I am working with LabVIEW 8.2.
best,
Ninjatovitch
10-29-2009 11:06 AM
10-29-2009 11:28 AM
Thanks a lot for your vi in LabVIEW 8.2 version. I tried it, but does it save the data only after you press the OK button? It is difficult to see, given that
the output numbers are randomized.
In my vi it does not work. Below, you can find data of the sensor output signal that corresponds to: first the sensor offset, then the output signal is set
to zero, then the "save" button" is pressed and finally, the sensor is bended a few times. Unfortunately, I get the whole data portion.
best,
Ninjatovitch
10-29-2009 11:39 AM