I have created the first configuration file (It is not cleaned yet, but is functional) for Advantech R6551 (attached). Everything is working as I expected, except for an issue with refreshing the setup screen in relation to the "Autorange" checkbox. When Autorange is set to off, everything is O.K..
1. However, if I set "Autorange On", the "comboboxHot Range DC_Voltage" becomes grayed out. That is correct. But, if I close the Setup window and reopen it, the "comboboxHot Range DC_Voltage" is no longer grayed out. This is incorrect.
2. If I gradually enable and disable "Autorange" in the opened Setup window using the command: (write: getElement("RANGE:1000V RANGE:AUTO", value)), the instrument correctly switches Range to "Auto" (On) and then to 1000V(off), but the change of the Range (to 1000V) is not indicated in the comboboxHot Range DC_Voltage.
Do you have some idea how to correct it? For better understanding I attached a printscreen of the setup window.
Here is my code for DC_Voltage setup screen definition:
#cmdSetup info Active_Mode
:read: READ:FUNCTION?
:readmath: getElement("?; DC Voltage;AC Voltage;2W Resistance;4W Resistance;DC Current;AC Current", value)
:updatemodechange:
;DC_Voltage-------------------------------------------------------------------------------------
#cmdSetup checkbox AutoRange DC_Voltage
:write: (getElement("RANGE:1000V RANGE:AUTO",value))
:read: READ:RANGE?
:readmath: matchList(value,"0",1,"3",0,"4",0,"5",0,"6",0,"7",0)
On 0 1
:updatemodechange:
#cmdSetup comboboxHot Range DC_Voltage
:enable: !DC_Voltage.AutoRange.On
:write: (getElement("? RANGE:300MVI RANGE:3VI RANGE:30VR RANGE:300VR RANGE:1000V",value))
:read: READ:RANGE?
:readmath: matchList(value,"3",1,"4",2,"5",3,"6",4,"7",5)
300mV 1
3V 2
30V 3
300V 4
1000V 5
:updatemodechange: