LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing and using arrays with case function

I am connected to an insturment which whenever I send a trigger I output an array to my labview code. I can currently see the array that is sent to labview. I would like to be able to use a boolean switch to capture and store an output array whenever the boolean switch value is true. I would then use this stored array to do calculations. If the boolean value is false it does not matter what happens to the array.
0 Kudos
Message 1 of 3
(2,602 Views)
Why don't you try to move the data to another array every time the switch is hit. So instead of having one array create 2. One array that is the data you are aquiring and the second array is the data you are storing. When the switch is hit true "true case of the case structure" transfer the data to the 2 array. You can do this with a build array and a shift register in a while loop that is around your acquisition. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 3
(2,602 Views)
Hello RS232 Question,

Thank you for contacting National Instruments.

You have a similar post with a different answer at the following link:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C0C10000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Have a great day.
Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,602 Views)