Hi,
I am Xiaofei, a beginner of LabVIEW. Now we are trying to collect data from a probe using DAQassistant and DAQcard 6062E to detect displacement. And we want to collect the data at a fixed rate like 100Hz or higher. We meet a problem with the timing of loop. We first run our code outside a loop, there is no problem with timing, the data can be collected at the rate we set in the DAQassistant, but we have to set a sample number, which is unwanted. therefore we put it in a loop, then the problem comes: no matter what kind of loop we use( either while loop, simulation loop, or time loop), and no matter how big the value we set for the rate of the loops, there is always a time delay approximately 0.03 sec between loops, which is weird. I first thought i was the highest rate the computer could run, but now that when outside the loop the DAQassistant can collect data at the rate we want, it shouldn't be a limitation from the computer itself. Then i am really confused. If you know why, please tell me, i will be really grateful! If you know how to correct this delay or how to run DAQassistant outside a loop without a fixed sample number, that will be even more awesome.
Another question is about the waveform chart in a while loop. It runs well, but i just don't quite understand its time axis. When the first time i run it, everything is perfect. But whenever i stop the code and then run it again, the time does not reset to 0 but start from the value at the last stop. Do you know why it's like this? Is there a way to reset the time? thanks a million!!!
regards,
Xiaofei