LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

simultaneous acquisition

I'm acquiring torque from an analog input on my board by means of the output of an encoder. The encoder reads the movement of a stepping motor and inputs my counter (used as channels A and B of a quadrature encoder): at every increment of the counters, I read a torque value. In this way I get an array in wich each torque value is related to an angle. Now I need to get, by keeping this acquisition active, another acquisition of the same torque, but related to time. The idea is to start an asyncronous acquisition at the time x and then to start monitoring counters for acquiring the torque values at well defined angles. When this acquisition stops itself, I force the first acquisition to terminate. How can I realize the first asyncronous acquis
ition? I add a file with some rows of my application regarding the existing syncronous acquisition with the counters.

Thanks!"
0 Kudos
Message 1 of 2
(3,130 Views)
Based on your sample code and my understanding of your question. I'll suggest you look at the possibility of capturing time within the for-loop after or before calling AI_READ? This can be captured into an array and you can later reconcile it with torque later.
0 Kudos
Message 2 of 2
(3,130 Views)