LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering an analog output and a digital output on PXI 6733 with BNC 2110

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:

image.png

 

 

The above error occurs in the block that is surrounded by red:

image (1).png

0 Kudos
Message 1 of 2
(812 Views)

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

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(773 Views)