DC Power Supply

Commands that provide access to DC Power Supply data and functions.

Get Voltage


Get the output voltage(s) of the specified DC power supply channel(s).

Example

Send

{
   "dc":{
      "0":[
         {
            "command":"getVoltage"
         }
      ]
   }
}

Response

{
   "dc":{
      "0":[
         {
            "command":"getVoltage",
            "voltage":3300,
            "statusCode":0,
            "wait":100
         }
      ]      
   }
}



Set Voltage


Set the output voltage(s) of the specified DC power supply channel(s).

Example

Send

{
   "dc":{
      "0":[
         {
            "command":"setVoltage",
            "voltage":3300
         }
      ]
   }
}

Response

{
   "dc":{
      "0":[
         {
            "command":"setVoltage",
            "statusCode":0,
            "wait":500
         }
      ]
   }
}



Multi Command


Combine multiple DC commands in a single transaction. A single transaction may not include multiple commands for the same channel.

Example

Send

{
   "dc":{
      "0":[
         {
            "command":"setVoltage",
            "voltage":3300
         },
         {
            "command":"getVoltage"
         }
      ],
      "1":[
         {
            "command":"setVoltage",
            "voltage":5000
         }
      ]
   }
}

Response

{
   "dc":{
      "0":[
         {
            "command":"setVoltage",
            "statusCode":0,
            "wait":500
         },
         {
            "command":"getVoltage",
            "voltage":3300,
            "statusCode":0,
            "wait":100
         }
      ],
      "1":[
         {
            "command":"setVoltage",
            "statusCode":0,
            "wait":500
         }
      ]
   }
}