05-18-2009 06:00 PM
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
05-19-2009 12:34 PM
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