Hi! In my application I need to output periodic signals. I'm simultaneously updating one analogue output and the digital output channels at 500 kHz (the max frequency for this device). This works as expected on its own. The signals are output continuously, with a 25k S/ch buffer (~50 ms).
I also need to collect input data. I'm reading 6 AI channels at 200 kS/s (again, the max for 1808X). This also works as expected when done alone.
One of my digital output channels is connected as an input to the ITRIG terminal to trigger the input scan (which collects a fixed number of points).
In my code, I first start the output scan, then I start the input scan some time later. I get unreliable results when starting the input scan. Once it worked as expected, but almost always the output values stop outputting their periodic signals or begin to output high frequency noise on the digital channels and a high value on the analogue channel (not what was set).
What can I try to fix the problem? Do I need to slow down the scan speeds? is there a better command or scan option required to run input/output scans that don't interfere with each other? am I running out of buffer space? Or usb bandwidth? The analogue output signal is a DC voltage, only the digital channels need to update at a high frequency for my application.
Question
calebcob
Hi! In my application I need to output periodic signals. I'm simultaneously updating one analogue output and the digital output channels at 500 kHz (the max frequency for this device). This works as expected on its own. The signals are output continuously, with a 25k S/ch buffer (~50 ms).
I also need to collect input data. I'm reading 6 AI channels at 200 kS/s (again, the max for 1808X). This also works as expected when done alone.
One of my digital output channels is connected as an input to the ITRIG terminal to trigger the input scan (which collects a fixed number of points).
In my code, I first start the output scan, then I start the input scan some time later. I get unreliable results when starting the input scan. Once it worked as expected, but almost always the output values stop outputting their periodic signals or begin to output high frequency noise on the digital channels and a high value on the analogue channel (not what was set).
What can I try to fix the problem? Do I need to slow down the scan speeds? is there a better command or scan option required to run input/output scans that don't interfere with each other? am I running out of buffer space? Or usb bandwidth? The analogue output signal is a DC voltage, only the digital channels need to update at a high frequency for my application.
Link to comment
Share on other sites
2 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