Wow, the debug Function is very good for Beginners

I found all Mistakes that i made and now it works 99%
In Grid Panel/General Device setting the On/Off and Multi On/Off dont work.
Same Result on both Buttons.
Result in Debugwindow:
------------ Click the ON Button--------------
;; HCS3404: Tx <outON>
;; HCS3404: Tx <tx SOUT0>
;; COM4: Tx: <SOUT0.> 53 4F 55 54 30 0D
------------ Click the OFF Button--------------
;; HCS3404: Tx <outON>
;; HCS3404: Tx <tx SOUT0>
;; COM4: Tx: <SOUT0.> 53 4F 55 54 30 0D
And is it possible to load the Device.txt File in working TC after changes?
Thx for your fast Help everytime
Code:
#idString Manson,HCS-3404
#name HCS 3404
#handle HCS3404
#driver Ascii
#port comfixedbaud
#baudrate 9600N81
#eol \r
;-----------------------------
#scpiCmd setV tx VOLT(formatDouble(value*10,3,3,0,0))
#scpiCmd setC tx CURR(formatDouble(value*10,3,3,0,0))
#scpiCmd getVS? txrx? GETS
:readmath: (substring(value,0,3)/10.0)
#scpiCmd getCS? txrx? GETS
:readmath: (substring(value,3,6)/10.0)
#scpiCmd getV? txrx? GETD
:readmath: (substring(value,0,4)/100.0)
#scpiCmd getC? txrx? GETD
:readmath: (substring(value,4,8)/100.0)
#scpiCmd getCVCC? txrx? GETD
:readmath: (substring(value,8,9))
#scpiCmd kbON tx ENDS
#scpiCmd outON tx SOUT0
#scpiCmd outOFF tx SOUT1
#outputOff outOff
;-----------------------------
#value VSet V D2
#value VGet V D2
#value CSet A D2
#value CGet A D2
#value CVCCget CVCC SI
#askValues getVS?;[10];getV?;[10];getCS?;[10];getC?;[10];getCVCC;[10];kbON;[90]
;-----------------------------
#interfaceType PS
#interface setVoltage setV (value)
#interface setCurrent setC (value)
#interface setOn outON
#interface setOff outOFF
#interface getVoltage getV?
#interface getCurrent getC?
#interface readVoltage 1
#interface readCurrent 3
;-----------------------------
#cmdDelayTime 50
#cmdSetup radio Voltage
:read: getVS?
:write: setV (value)
:readformat: u
:tip: Setup this voltage, turn output on
16.5V 16.5
5V 5
12V 12
20V 20
30V 30
60V 60
#cmdSetup radio Current
:read: getCS?
:write: setC (value)
:readFormat: u
:tip: Output will current limit at this current
2.5A 2.5
500mA 0.5
1A 1
2A 2
3A 3
10A 10
11A 11
#cmdSetup buttonsOn Output
:tip: Turn output on or off
:updatealloff:
Off outOFF
On outON
#cmdSetup number Voltage
:read: getVS?
:readformat: u
:write: setV (value)
:tip: Setup this voltage, do not turn output on/off
Volt 0 60.5
#cmdSetup number Current
:read: getCS?
:readformat: u
:write: setC (value)
:tip: Setup this current, do not turn output on/off
Amps 001 11