Hi
I have a USB-1808X and I'm trying to output an analog signal that contains around 160,000 data points at 50KHz via the AOUT0 pin. (which means the duration of the signal is about 3.2 sec). A current signal should be read back simultaneously at the same frequency via CH0H/CH0L as well as a voltage signal via CH1H/CH1L. Everything is fine except there's always a delay (~30 data points) at the beginning of the measured signals. Simply a constant delay is not a problem as I can shift the measurements back or forward in python with that constant to compensate. The problem is, it's not a constant, every time I run the code, the delay can be anything from 25 to 40 points, which makes it impossible to compensate precisely. Is that a hardware limitation or we can do anything better in programming? I'm using ul.a_in_scan() follow by ul.a_out_scan() to do the task. The scan option is BACKGROUND.
I believe you can ignore the voltage measurement plot (green line) in the following screenshots. The current is more obvious to analysis with in my case. X-axis is the number of data points.
Question
F. Y.
Hi
I have a USB-1808X and I'm trying to output an analog signal that contains around 160,000 data points at 50KHz via the AOUT0 pin. (which means the duration of the signal is about 3.2 sec). A current signal should be read back simultaneously at the same frequency via CH0H/CH0L as well as a voltage signal via CH1H/CH1L. Everything is fine except there's always a delay (~30 data points) at the beginning of the measured signals. Simply a constant delay is not a problem as I can shift the measurements back or forward in python with that constant to compensate. The problem is, it's not a constant, every time I run the code, the delay can be anything from 25 to 40 points, which makes it impossible to compensate precisely. Is that a hardware limitation or we can do anything better in programming? I'm using ul.a_in_scan() follow by ul.a_out_scan() to do the task. The scan option is BACKGROUND.
I believe you can ignore the voltage measurement plot (green line) in the following screenshots. The current is more obvious to analysis with in my case. X-axis is the number of data points.
Thank you
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now