01-23-2009 12:07 PM
Which classes/methods in Measurement Studio NIDAQ-mx support allow me to programmatically set a digital channel for input or for output? The only methods I've come across provide lists of previously-configured i/o channels.
Thanks
Solved! Go to Solution.
01-24-2009 10:04 PM
If you are using a device that has bi-directional digital lines, then you don't have to specifically set a channel as input ot output. Use the DAQmxCreateDIChan or DAQmxCreateDOChan channel functions with the lines that you want to use. Automatically the line will be configured as Input or Output.
If the device doesn't support bidirectional digital lines, then you cannot set a input channel as output channel and viceversa.
01-26-2009 11:52 AM
Whoops! I was a little premature in labeling your response a fix.
I haven't found that method available to me from within Measurement Studio (8.1), at least not within the documentation for .NET(2.0).
I see that it is documented in the C-language documentation. How do I get access to it or is there another strategy from within the .NET environment?
Thanks.
01-27-2009 12:21 AM
You can use the CreateChannel method in NationalInstruments.DAQmx.DIChannelCollection.
palley wrote:Whoops! I was a little premature in labeling your response a fix.
If you feel that issue is not yet solved, you can uncheck the accepted solutions tag. If you mark a thread as solved, there is a chance that others may not look at it and you problem will remain unsolved.