LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get intimation about DAQmx Physical Channel invalid value encounter

Can anybody tell me that if a DAQmx Control gets value from a configuration file( .ini file ) and the value is invalid (does not exist in the available physical channels list) than how I can be programatically intimated. I couldn't find any property node of DAQmx Physical channel Control which tells about that the current value feeded to the control is invalid.
0 Kudos
Message 1 of 4
(2,776 Views)
There are a couple things you could to.  First, you could simply check the channel from your config file to see if it exists in the list of actual physical channels (simple string comparison).  Secondly, you could use the DAQmx Create Channel to attempt to create a channel and look at the error.  If you get an "invalid channel" error, then you know it doesn't exist. 
-Alan A.

Message Edited by Alan A. on 10-26-2005 01:30 PM

0 Kudos
Message 2 of 4
(2,763 Views)
Thanks Alan, I have got a better soloution from you in another thread launched by me with title "How to get "Browse list of any DAQmx control in array form". In which u suggested of using DAQmx 8.0, which I have downloaded and used the property node DAQmx-Device>>DO.Lines to get an array of all Physical channels(DO category) of all devices. The value taken from that configuration file is searched in Physical channels array and if no match found than the value is invalid.
0 Kudos
Message 3 of 4
(2,756 Views)
Right, but you posted this question after I answered the other one, so I simply wanted to give you some other options.  Anyway, I'm glad that you are satisfied with the outcome.
-Alan A.
0 Kudos
Message 4 of 4
(2,741 Views)