Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Syncronize Analog, Digital, PWM Input and Analog, Digital, PWM Output.

Hello!

 

I'm running the full gamut here!

 

This program needs to utilize the following AI, DI, PWM I, AO, DO, and PWM O.

Using USB 6221 and 6229 DAQ.

At minimum, I would like to sycronize the AI and PWM I so I can create/convert the PWM data to waveform.

However, if I can sync all, I would feel much better.

 

Currently using 14 chan of AI, 8 chan of DI, counter 1 for PWM I, 1 chan of AO, 8 chan of DO, and counter 0 for PWM O.

I am writing to AO, DO, and PWM O only when that data changes (event).

 

I've included code for review of what I have at this time.

 

Thank you for any help!

0 Kudos
Message 1 of 2
(3,077 Views)

Hello Oley,

This is a pretty good problem and there are a couple of things you can do.

Within each device you can synchronize the operations by sharing a clock and/or triggering the acquisitions off of each other.  You can also export the start of one of your tasks in one device to a PFI line and use this the trigger the acquisition of the other device.  For more information look at the detailed help for the following NI-DAQmx commands: DAQmx Trigger.vi and DAQmx Export Signal.vi.  An interesting KnowledgeBase article on the subject is KnowledgeBase 2XSA43RY: What is the Difference Between the DAQmx Export Signal VI and the DAQmx Conn...

 

Let me know if you have any other questions or need additional clarification.

Regards,
Dan King

0 Kudos
Message 2 of 2
(3,053 Views)