01-24-2013 02:30 PM
I'm trying to characterize a system with a VI that sets the speed of a motor, waits for 7 seconds to spin up, then takes 200 readings averages them. The sample rate is 20 Hz, so with 200 samples it should take 10 seconds. The program then loops through another iteration, sets the motor speed using the next value and repeates the process.
Although the first iteration works well, for some reason something goes wrong in all the iterations after that, because it takes reading for only 2 or 3 seconds instead of the 10 that it should take. I'm not sure if it's some kind of memory issue or maybe something else. VI is attached. Thanks!
Solved! Go to Solution.
01-24-2013 02:57 PM
That would be because you are using acquisition mode = "continuous acquiition" not "N sample (on Demand)" so while you are waiting the seven seconds you are taking samples
01-24-2013 03:20 PM
You need to make sure that automatic error handling is turned on or connect some error out indicators. Besides what Jeff said, the timeout for the acquisition is also 10 seconds. You could be getting a timeout error after the first acquisition and no data after that.