Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NationalInstruments.DAQmx.DOChannels.CreateChannel

I am using the "NationalInstruments.DAQmx.DOChannels.CreateChannel" command to write data to the DAQ. I am looking for which functions to call to find out how many lines/Ports are available so I can create the first parameter...

 

Currently, I am hardcoding it to the following:

 

digitalWriteTask.DOChannels.CreateChannel("Dev1/Port0", "Port0", ChannelLineGrouping.OneChannelForAllLines)

 

I would like to be able to know how many Devices and Ports are available for the DIO card(s) installed on the system. Is there a call that will return this information?

0 Kudos
Message 1 of 3
(4,247 Views)

Hi Tim8w,

you can use DAQmx property nodes to get this information.

 

Mike

0 Kudos
Message 2 of 3
(4,238 Views)

Hi Tim8w,

 

The KnowledgeBase linked here will show you how to find all the devices in you system.  Take a look at it.  If you have any questions, let me know.

Regards,
Jim Schwartz
0 Kudos
Message 3 of 3
(4,231 Views)