Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing out to Multiple Channels on a cDaq9264 with C/C++ and DAQmx

Hello,

 

I was wondering if there was any example C/C++ code that showed how to simultaneously write out different values to multiple channels on a cDAQ9264 using the DAQmx library. 

 

Thanks,

 

Avi

0 Kudos
Message 1 of 4
(4,995 Views)

Hi avislash,

 

The examples come with the driver installation, so first you need to be sure that when you installed your drivers you installed the support for text base programs.

 

Then you can go to Start » All Programs » National Instruments » NI-DAQ » Text base code support » .NET x.x Examples. That will open a new window so please go to Analog Out » Generate Voltage » ContGenVoltageWfm_IntClk » CS

 

You’ll find there an example to write to an analog output channel.

 

I hope this helps!

 

Regards,

steve.bm
AE | NI
0 Kudos
Message 2 of 4
(4,976 Views)

Hey Steve,

 

Yes I found those examples. What I need is to be able to simultaneously write out varying values to multiple ports.

 

Thanks for the reply!

0 Kudos
Message 3 of 4
(4,972 Views)

Hi avislash,

 

In that case you can create multiple tasks (with different handlers and timing parameters), but it will remain with the same program structure.

 

Regards,

steve.bm
AE | NI
0 Kudos
Message 4 of 4
(4,970 Views)