04-06-2023 12:22 PM
We are having an issue with the trigger on our BNC 2110 board. The analog triggering through the AO0 and AO2 channels work, however we need additional functionality through the digital output channels on our BNC 2110 board. We are controlling a motor driver with the outputs and need digital output from the BNC 2110 board to our motor driver to control direction while the analog outputs from AO0 and AO2 control the speed of the motor. We are running into issues where the trigger is throwing an error. Images can be seen below of our code and the error:
The above error occurs in the block that is surrounded by red:
04-07-2023 07:58 AM
1. As the error message states, your 6733 device doesn't support triggering for DIO tasks. See pg 3 of specs.
2. You should propagate your error wires through all the DO functions. Choosing not to see them doesn't make them go away.
3. You can probably still sync the DO to your AO by sharing the AO task's sample clock and removing the trigger config from the DO task. You'll then also need to start the DO task before starting the AO task.
In the call to DAQmx Timing for the DO task, specify the 'source' input to be something like "/Dev1/ao/SampleClock".
4. I'd also recommend that you specify the # samples to generate in your calls to DAQmx Timing. When left unwired as you show, the default value is 1000 samples per channel.
-Kevin P