02-06-2020 08:50 AM
Hi there I am new to NI,
I use the NI-USB-6001
I can setup the ports for input and output by using the examples in:
"...Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read Values"
DAQmxErrChk(DAQmxCreateDOChan(taskHandle, "Dev1/port0/line1", "", DAQmx_Val_ChanPerLine));
But how do I retrieve the information if a port or port pin is setup as an input or an output port.
05-19-2020 02:28 AM
Hi, as far as I know there are no functions to retrieve configuration information of channels. A workaround could be naming the tasks according to the configurations, which can later in your application give you an idea wether it is an input/output.