From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically determine if device supports setting a certain property?

I'm trying to write some software that can be used across multiple DAQ cards. Certain DAQ cards (e.g., the 4461) support setting the AO gain via DAQmxSetAOGain. However, most cards don't support that. Is there a way to programmatically query the card to see if setting the property is supported before attempting to set the gain?

0 Kudos
Message 1 of 3
(3,239 Views)

Hello,

 

There is not a way to query a device to determine what properties are available for specific devices to my knowledge.  This is usually what the user manual is for, but it would definitely be possible to create a sub VI with all of NI's products catagorized by property node features.

-Joe
0 Kudos
Message 2 of 3
(3,209 Views)

That's too bad. I can always write a script to parse the online help files and generate a lookup table if I really need this. For now, I'll just try setting the property and looking for an error.

0 Kudos
Message 3 of 3
(3,190 Views)