Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the device type from DAQ

Does anyone know how to get the device type (AI, AO, DI, DO etc..) from a DAQ?  I am using the DAQmx driver for .NET. I can get the model number etc..but I'd like to know if there is a function that will tell me what type of device I am using. I want to get a list of devices  and put them in a combobox. I want to configure my program to load the appropriate configuration when a device is selected.

 

So for instance if a user selects "NI 9221 DSUB"  from the combobox I can display that the device is an analog input on a label and configure my program to use specified channels

 

thanks

0 Kudos
Message 1 of 2
(3,378 Views)

Hello,

 

There is no built in method for this, but you can retrieve the name of the device that is listed in MAX using the Device ID property, which is part of the Device class in DAQmx. In order to display information about each one of those cards, as far as their functionality and/or available DI, DO, AI lines etc, you would have to manually create a table of information for any possible card that could show up in your combo box. When the user selects a particular entry from the combo box, it would have to pull from that reference table of the pertinent information that you would like to display. That is an interesting idea, however, and I would suggest that you submit a product suggestion on the NI website here.

 

Chris W

0 Kudos
Message 2 of 2
(3,355 Views)