Find allowable values in matlab data acquisition toolbox

조회 수: 3 (최근 30일)
CM
CM 2025년 3월 9일
댓글: Walter Roberson 2025년 3월 26일
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
CM
CM 2025년 3월 26일
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: {}
Walter Roberson
Walter Roberson 2025년 3월 26일
I am not at all sure, but I suspect that is a reflection of the fact that ExcitationVoltage is only set in some modes.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by