LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording one data point from a continuous signal at the click of a button.

How do I record one data point from a continuous signal at the click of a button and have it stored in a table, later to be exported to excel?
 
Thanks
0 Kudos
Message 1 of 2
(2,510 Views)
 

An event structure can be used to execute code on user button presses, and shift registers allow you to store data between loop iterations.

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/structures/event-structure.html

http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/creating_shift_registers/ 

 

 

And, because a while loop will not iterate until all the code inside it has executed, it will only iterate on your button presses, meaning you now have an array of indexed data.  In Your Data Read, the assumption is that this continuous signal is being read for one sample when the SubVI is called.

0 Kudos
Message 2 of 2
(2,499 Views)