Now I am trying to define the generic interface:
#interfaceType PS:1 PS:2 PS:3
#interface setVoltage APPLY CH(channel),(value)V
#interface setCurrent APPLY CH(channel),(value)A
#interface getVoltage APPLY? CH(channel),VOLT
:readmath: getElement(value,1, ",")
#interface getCurrent APPLY? CH(channel),VOLT
:readmath: getElement(value,1, ",")
#interface setOn OUTPUT:STATE CH(channel),(value)
#interface getOn OUTPUT:STATE? CH(channel)
:string:
That seems to work. However, I have two more "channels" for serial and parallel mode, respectively. Unfortunately, they are not referred to as "CH4" and "CH5" but "SER" and "PAR". So e.g. #setVoltage would have to be APPLY SER,(value)V. At the moment I have no idea how to accomplish that...
Any hints welcome.