I am working on a TestController device definition file for the Siglent SPD3303X 3-channel power supply. The same definition should also work for models SPD3303C and SPD3303X-E.
The definition file is mostly working, as can be seen in attached screenshot:
- Measurement of output voltages and currents of the 2 main channels is working
- Mode popup window for selection between Independent, Serial and Parallel mode is working
- Most of the Configuration menu for setting output voltages and current limit values is working
Unfortunately the control buttons for switching ON and OFF the individual channels (located inside the red box in the screenshot) are not working yet.
There are two issues with these ON and OFF buttons, that are related to the non standard SCPI commands that are specified for this PSU:
1) The required SCPI commands for switching ON or OFF an output of this PSU are as follows (example for channel 1):
OUTP CH1,ON
OUTP CH1,OFF
Unfortunately the SCPI code that is generated by control "ButtonsOn" (used for CH1 and CH2) and control "Buttons" (used for CH3) is as follows:
OUTP CH1, ON
OUTP CH1, OFF
The space between the comma and ON or OFF causes the generated SCPI command not to work.
=> Can somebody (HKJ?) advise me how to get rid of this space?
2) Proper operation of the colored indicator of Control "ButtonsOn" (used for CH1 and CH2) requires correct readout of the ON or OFF state of channels CH1 and CH2. The output state of CH1 and CH2 can be checked by reading a 10-bit status word by means of following SCPI command:
SYST:STAT?
This SCPI command returns the hexadecimal value of the 10-bit status word. The hex value of this word can vary between 0 and 3FF. The output state of CH1 and CH2 is indicated by bits 4 and 5 of this status word, see attached picture. I am not sure but I think that I need to use function "binConvBit" to extract the value of the two status bits from the returned hex value.
=> Can somebody suggest which is the proper syntax for the :read: tag inside the definition of the two "ButtonsOn" control buttons (taking into account the definition of the status word)?
My not working attempt ( :read: binConvBit(SYST:STAT?,4,1) ) can be found at the end of attached SPD3303X definition file.
For reference I have attached the SCPI chapter from the SPD3303X user manual, as well as the definition file for the SPD3303X (work in progress) below.
Thanks in advance for your assistance!
UPDATE: Latest SPD3303X definition file is attached to
Reply #2094.