LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to save a data portion starting from when a "save" button is pressed?

Solved!
Go to solution

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

0 Kudos
Message 1 of 8
(3,101 Views)

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

Message Edited by Harold Timmis on 10-29-2009 09:15 AM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 8
(3,099 Views)

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  

0 Kudos
Message 3 of 8
(3,082 Views)

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

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Download All
Message 4 of 8
(3,075 Views)

Thanks for your answer. Unfortunately, I can not open your vi, I am working with LabVIEW 8.2.

 

best,

 

Ninjatovitch

0 Kudos
Message 5 of 8
(3,072 Views)
Solution
Accepted by topic author Ninjatovitch
this should be in 8.2
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Download All
Message 6 of 8
(3,068 Views)

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

0 Kudos
Message 7 of 8
(3,062 Views)
well I have looked at the data on mine what I did was made the button latch untill released so it will collect data until the ok button is false.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 8 of 8
(3,056 Views)