目录

Digilent Instrumentation Protocol

The Digilent Instrumentation Protocol is a JSON encoded command set for communicating with and controlling electronic instruments. The Digilent Instrumentation Protocol was initially designed as the communication protocol between WaveForms Live and and the OpenScope MZ, however the protocol is designed to be hardware agnostic and extensible.

JSON encoding offers several advantages including ease of use in JavaScript based web and mobile applications, human readable commands, and bus agnostic communication that easily supports HTTP, UART, TCP, WebSockets and more.

Command Format


Multi Command


Multiple commands can be sent in a single transaction using a multicommand.

Example:

Command

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

Response

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



Debug Print

page_reference_software_digilent-instrumentation-protocol_debugprint_fullpage

Mode

page_reference_software_digilent-instrumentation-protocol_mode_fullpage

File

page_reference_software_digilent-instrumentation-protocol_file_fullpage

Device

page_reference_software_digilent-instrumentation-protocol_device_fullpage

Oscilloscope

page_reference_software_digilent-instrumentation-protocol_oscilloscope_fullpage

Waveform Generator

page_reference_software_digilent-instrumentation-protocol_waveform-generator_fullpage

Logic Analyzer

page_reference_software_digilent-instrumentation-protocol_logic-analyzer_fullpage

GPIO

page_reference_software_digilent-instrumentation-protocol_gpio_fullpage

Power Supply

page_reference_software_digilent-instrumentation-protocol_power-supply_fullpage

Trigger

page_reference_software_digilent-instrumentation-protocol_trigger_fullpage

Logger

page_reference_software_digilent-instrumentation-protocol_logger_fullpage