LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring data from DAQ

Please, I am writing a VI to acquire data from one micrometer (like a quad encoder) and a quad encoder for the position. How can I store data coming from the micrometer ( read by a channel of a multifunction DAQ ) in an array of 5000 positions ( one for each millimeter of movement ) ? Thanks
0 Kudos
Message 1 of 5
(2,996 Views)
First initialize a 5000 element array (Not a Number (NaN) data suggested), then run your acquisition loop and replace the array with the acquired data at index position. This is much more efficient than building the array progressively. Use a feedback node to store the array during execution. Look at the attached vi.
Note that this works with single data points. If you were recording multiple data at each loop iteration, then you would have to calculate the replace position by multiplying the loop iondex with the data length.
Hope this helps !
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 5
(2,996 Views)
Please, could you send me the VI saved in 6.1 Version ?

Thanks
Massimo Visintin
0 Kudos
Message 3 of 5
(2,996 Views)
Sorry, I can't...(no way from LV7.1)
But here is an image of the diagram. So simple that you will easily reproduce it.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 5
(2,996 Views)
Thanks a lot for your help, it was useful. I will try.
0 Kudos
Message 5 of 5
(2,996 Views)