04-07-2016 03:36 AM
Hello,
I'm reading AI using DAQmx M series device using Continuous Mode. I got an delay in reading loop.
My setting:
NI-USB 6255
AI: 64 CH
Sampling rate: 15kS
Sample per channel: 15
The reading loop should be = 15/15k *1000 = 1ms
However, when using DAQmx node:Most recent sample -> RelativeTo
I got 1 reading loop =10ms.
Even I changed the Sample per channel to 20 or 30, the loop still 10ms.
Could anyone know this issue?
04-08-2016 04:49 PM - last edited on 01-10-2024 01:32 PM by migration-bot
Hi kebimat_f,
Do you think you could post a snippet of your code so we can get a better idea of how you're configuring your AI?
Here are some resources for reading an analog input with DAQmx:
Also, make sure you have your DAQmx Open and Close VIs outside of your reading loop.
04-11-2016 12:53 AM
Dear Sunaenae,
I attached the VI here. Please check
Thank you!
04-11-2016 05:07 PM
Hi,
What exactly are you trying to achieve with the Relative To property -- what is your end goal in terms of how you want to acquire samples?
It looks like everything is configured correctly from your code.