01-27-2009 10:20 AM
I am trying to make a VI that is generic and is configured via a single config file. The file currently lists all the physical channels along with other things like the name and red/yellow limits for each channel. Currently, the sample rate is hard-coded in the VI but that should be in the config file too. The issue is that there can be only one sample rate for a given DAC card, so it doesn't make sense (to me) to add a rate column for each channel in the config file (I think it would be misleading to the operator). Instead, I'd like to create a task list that gives the name, DAC card, sample rate, and other parameters for each task. Then I should be able to figure out which channel is on which DAC by looking at the physical channel name ("Dev1/ai0"). The problem is that SCXI conditioner cards show up in the device list just like PXI ADC cards. The user could have named them anything in MAX, so I can't tell which ones are DAC cards. Is there a property node trait for channels that can tell me what its digitizer card is? I've looked around and can't see anything appropriate.
Thanks.
01-27-2009 07:01 PM
Hi,
I have attached a simple program that can extract the device details on a PC. The code only currently tells you what type of device you are querying. You can easily extend it to find out which device is the digitizer(M series/E Series). I have saved it in LV 8. Not sure which version you are using.
Amit