Find allowable values in matlab data acquisition toolbox

I am trying to set up an NI9237 module. I would like to obtain (through matlab) the allowable values for (internal) excitation voltage, nominal bridge resistance, bridge mode etc. I would also like a generic approach to this so that I can plug any type of hardware module in and it spits out the allowable values for any user-changeable setting.
I know they are in there somewhere because if I try to specify a value that is not allowed, the error message lists the allowable values.
Is this possible?
Thanks

3 comentarios

If you would normally
set(OBJECT, PARAMETER, VALUE)
then try
possible_values = set(OBJECT, PARAMETER)
and likely the result will be a description of the permitted values.
Hi Walter, thanks for the tip. That almost works. Unfortunately the answer I get is blank:
x=set(ch{iChannelDevice}, 'ExcitationVoltage')
x =
'{}'
This got all the available details. Two of the three that I want have empty answers:
x=set(ch{iChannelDevice})
BridgeMode: [ Unknown | Full | Half | Quarter ]
ExcitationSource: [ Internal | External | None | Unknown ]
ExcitationVoltage: {}
NominalBridgeResistance: {}
Range: -0.025 to +0.025 VoltsPerVolt
Name: {}
ADCTimingMode: {}
I am not at all sure, but I suspect that is a reflection of the fact that ExcitationVoltage is only set in some modes.

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

CM
el 9 de Mzo. de 2025

Comentada:

el 26 de Mzo. de 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by