How to find the Input argument function syntax for Agilent 34970A instrument

3 次查看(过去 30 天)
I try to use the tmtool to read measurement on an Agilent 34970 instrument. I use the Agilent34970 IVI driver 1.3.7. I add import the IVI-COM driver and convert it as a .mdd driver with midedit. Then I created the IVI configuration with logical name.... I create the device object for my instrument.
Now I don't find the good syntax to make a temperature measurement. I try with function RTDmeasure, but it seems that I don't write the ionputs arguments properly:
Example:
groupObj = get(deviceObj, 'Measure');
groupObj = groupObj(1);
invoke(groupObj, 'RTDMeasure', 101, Agilent.Agilent34970.Interop.Agilent34970RTDTypeEnum.Agilent34970RTD4Wire, Agilent.Agilent34970.Interop.Agilent34970RTDAlphaEnum.Agilent34970RTDAlpha85, 0.1);
Response: An error occurred while executing the function. Undefined variable "Agilent" or class "Agilent.Agilent34970.Interop.Agilent34970RTDTypeEnum.Agilent34970RTD4Wire".
% Execute device object function(s).
groupObj = get(deviceObj, 'Measure');
groupObj = groupObj(1);
invoke(groupObj, 'RTDMeasure', 101, Agilent34970RTD4Wire, Agilent34970RTDAlpha85, 0.01);
Response: An error occurred while executing the function. Undefined function or variable 'Agilent34970RTD4Wire'.
The following C code works. It had been obtained with the Agilent Command Expert software using the same IVI-COM driver
private void Untitled() {
Agilent.Agilent34970.Interop.IAgilent34970_2 v34970a_banc12 = new Agilent.Agilent34970.Interop.Agilent34970Class();
v34970a_banc12.Initialize("ASRL1::INSTR", false, false, "");t34970.Interop.A
double[] retval = v34970a_banc12.Measure.RTDMeasure("101", Agilent.Agilengilent34970RTDTypeEnum.Agilent34970RTD4Wire, Agilent.Agilent34970.Interop.Agilent34970RTDAlphaEnum.Agilent34970RTDAlpha85, 0.1);
v34970a_banc12.Close();
The tmtool help on the function: Configure the specified channels for 2 or 4-wire RTD measurements and immediately sweep through the scan list once. Note that this command also redefines the scan list Expected: [VAL] = INVOKE(OBJ,'RTDMeasure',SCAN_LIST,NUMWIRES,ALPHA,RESOLUTION)
I would like to find an help on all functions of this instrument 34970 and for an other Agilent instrument 34980A (same problem of syntax)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by