Quick question. How do you set the baud rate from 9600 to 19200? I tried to change the config file but it always tries 9600 baud. Also, the only option for measurement is DC Voltage. How do you pick other measurements?
I am working on a device file for Sorenson/Ametek XG series power supply and have run into an issue. On a device popup I am trying to have on/off button with "indicator light". Unfortunately the power supply SCPI code for turning output on/off and for reading the state of the output is not symmetric. Setting the state you must use "on" or "off" as the value sent. The same command as a query returns "0" or "1". If you send "0" or "1" as the value the supply ignores the command/does nothing. The code I am using is:
I am working on finishing the Temperature setup. I am using the new new selector control, can you check if I am on the right track.
#cmdSetup buttonsOn Main_Output
:read: OUTP:POW:STAT?
:readmath: getElement("Off On",value);
:write: OUTP:POW:STAT
:color: (0,255,0)
:tip: Turn Main output on or off
:updatealloff:
Off Off
On On
Testing the above the indicator is always on. Using debug mode I see the readmath is clearly taking the returned 0 or 1 value and changing it to On or Off. See cut and paste from debug showing all the lines from when I turned the popup on until it populated/was done. At the end Rx is set to Off but the indicator stays on/lit. The last line says Rx NaN which is true, but does that indicate a problem? Suggestions to clean this up/make it work? In case it helps I have attached the full work in progress device file. I tested with Ver 0.64.;; A600V1_4A: Tx <SOUR:VOLT:LEV:IMM:AMPL?>
;; A600V1_4A: Rx <625.00000>
;; A600V1_4A: Rx as number <625.0>
;; A600V1_4A: Tx <SOUR:CURR:LEV:IMM:AMPL?>
;; A600V1_4A: Rx <1.46600>
;; A600V1_4A: Rx as number <1.466>
;; A600V1_4A: Tx <SOUR:VOLT:PROT?>
;; A600V1_4A: Rx <660.00000>
;; A600V1_4A: Rx as number <660.0>
;; A600V1_4A: Tx <SOUR:CURR:PROT?>
;; A600V1_4A: Rx <1.54000>
;; A600V1_4A: Rx as number <1.54>
;; A600V1_4A: Tx <OUTP:POW:STAT?>
;; A600V1_4A: Rx <0>
;; A600V1_4A: Rx after :readmath: getElement("Off On",value); <Off>
;; A600V1_4A: Rx as number <NaN>
Testing the above the indicator is always on. Using debug mode I see the readmath is clearly taking the returned 0 or 1 value and changing it to On or Off. See cut and paste from debug showing all the lines from when I turned the popup on until it populated/was done. At the end Rx is set to Off but the indicator stays on/lit. The last line says Rx NaN which is true, but does that indicate a problem? Suggestions to clean this up/make it work? In case it helps I have attached the full work in progress device file. I tested with Ver 0.64.
I also got a timeout:
;; 20:22:59.656 K34465: Rx as number <100.0>
;; 20:22:59.656 K34465: Tx <TEMP:TRANS:FRTD:OCOM?>
;; 20:23:09.657 K34465: Rx Timeout
;; 20:23:09.662 K34465: Rx as number <NaN>
The Keysight 344xx is updated, I fixed a few bugs with temperature, but not everything:
Do not work:
;; 08:40:18.852 K34465: Tx <abort>
;; 08:40:18.852 K34465: Tx <*cls>
;; 08:40:18.852 K34465: Tx <TEMP:TRANS:RTD:OCOM 1> <- Meter report error
;; 08:40:18.852 K34465: Tx <init>
;; 08:40:18.852 K34465: Tx <TEMP:TRAN:RTD:OCOM?>
;; 08:40:19.084 K34465: Rx <0> <- value is not changed
;; 08:40:19.084 K34465: Rx as number <0.0>
Meter has a Auto zero setting in 2W and Tcouple mode
Thermistor 2.25kohm do not work on 34465 (That is the one I am using for testing), the other two values works fine:
Looks like a missing :string: tag
I also get an error from the meter when enabling "Null" in RTD 2W, RTD 4W, thermis2W, but not in thermis4W & Tcouple. There are no errors when disabling it.
The low looks fine enough, here is one fro RTD 2W:
Attached is an updated device file. I am not sure why enabling "Null" in RTD 2W, RTD 4W, thermis2W does not work, do you have any ideas.
Fix 1: Thermistor 2.25kohm had wrong value +2500 changed to +2250
Fix 2: Added :string: tag to #cmdSetup radio Offset Temperature2
Attached is an updated device file. I am not sure why enabling "Null" in RTD 2W, RTD 4W, thermis2W does not work, do you have any ideas.
Fix 1: Thermistor 2.25kohm had wrong value +2500 changed to +2250
Fix 2: Added :string: tag to #cmdSetup radio Offset Temperature2
The string tag fixed that problem, the 2.25k thermistor do not work, do the meter even support it? Maybe I have an old software version?
The beep when enabling "null" is strange, because the command works, even when I get the error message on the meter.
2.25k thermistor was added in Firmware Revision 3.00 Enhancements and Fixes. The current firmware is Revision 3.02, link below. Maybe I need to add a #notes Requires Firmware Revision 3.00 or higher.
My 34465A has the option of a 2.252 kohm thermistor, not 2.25 kohm
Thanks for the massive amount of work you put into this.
RTD 2W now works on my 34465A which is great news.
But a small bug remains here:
RTD 2W LP does not work. LP is not displayed and the temperature value does not change slightly as it should.
My 34465A has the option of a 2.252 kohm thermistor, not 2.25 kohm
There is a typo in the settings, the correct is:
#cmdSetup radio RTD_2w_Low-Power Temperature2
:write: abort;*cls;TEMP:TRAN:RTD:POW:LIM:STAT #;init
:read: TEMP:TRAN:RTD:POW:LIM:STAT?
:update: Null_Value
I was thinking of changing all of the Mode conf: (resets all settings to default) commands to func (keeps last settings) and add on the top of each setup a reset to default button using the conf: command. What are your thoughts, good idea?