Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically configure each digital line as Input or Output using the NI DAQmx with .NET

I am using DAQmx with C# on the NI 6602 Counter/Timer.  There are excellent .NET examples on writing and reading the digital ports but I cannot figure out how to actually set the individual digital lines as either Input or Output.  In other words, how do I programmatically configure each digital line as Input or Output using the NI DAQmx with .NET

0 Kudos
Message 1 of 2
(5,883 Views)

Hi EADS,

 

When using the DAQmx drivers you do not have to specify which ports are used for input or output explicitly.  When you call the DAQmxCreateDIChan and DAQmxCreateDOChan functions you specify a port/line combination.  This combination is taken by the DAQmx driver its self, and is used to specify which lines/ports are digital input or output.

Regards,

Mike Altmann
Product R&D
NI
0 Kudos
Message 2 of 2
(5,865 Views)