11-08-2011 12:35 PM
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
11-09-2011 04:06 PM
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.