I'm trying to use a USB-1808X with LabVIEW to simultaneously output a pair of digital signals on DIO0 & DIO1 (step and direction signals for a stepper driver) while simultaneously acquiring data on 4 analog voltage input channels and a rotary encoder. I can successfully send out the digital signals. Separately and independently, I can simultaneously acquire data on the 4 analog channels and 1 encoder channel. What I am trying to achieve now is to trigger the input acquisition for those 5 channels from the digital output. Specifically, I'm trying to use a third digital port, DIO2, to output a signal that just goes from 0 to 1 to trigger a rising edge trigger.
I have tried using the "Basic Digital Edge" trigger, but I get an error indicating the basic trigger type is not supported by the task. I'm assuming this means a basic trigger can't be used on a composite input channel. Building on that, I've tried switching to a Composite trigger. If I choose "None", I successfully acquire data but it's obviously not synchronized to anything as it's simply starting as soon as it can. The next option would seem to be the Composite external TTL. However, I cannot find any documentation or examples related to this.
Does this option use the ITRIG port or does it need to be wired somewhere else? Is there a better overall strategy for what I'm trying to achieve?
Question
DanCzar
Hello,
I'm trying to use a USB-1808X with LabVIEW to simultaneously output a pair of digital signals on DIO0 & DIO1 (step and direction signals for a stepper driver) while simultaneously acquiring data on 4 analog voltage input channels and a rotary encoder. I can successfully send out the digital signals. Separately and independently, I can simultaneously acquire data on the 4 analog channels and 1 encoder channel. What I am trying to achieve now is to trigger the input acquisition for those 5 channels from the digital output. Specifically, I'm trying to use a third digital port, DIO2, to output a signal that just goes from 0 to 1 to trigger a rising edge trigger.
I have tried using the "Basic Digital Edge" trigger, but I get an error indicating the basic trigger type is not supported by the task. I'm assuming this means a basic trigger can't be used on a composite input channel. Building on that, I've tried switching to a Composite trigger. If I choose "None", I successfully acquire data but it's obviously not synchronized to anything as it's simply starting as soon as it can. The next option would seem to be the Composite external TTL. However, I cannot find any documentation or examples related to this.
Does this option use the ITRIG port or does it need to be wired somewhere else? Is there a better overall strategy for what I'm trying to achieve?
Any help is greatly appreciated.
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