Table of Contents

Arbitrary Waveform Generator

Commands that provide access to Arbitrary Waveform Generator data and functions.

awgCalibrate


Calibrate the arbitrary waveform generator.

Type: POST

Parameters

Response

Example

Send

{
  "command": "awgCalibrate"
}

Response

{
  "statusCode": 0
}



awgEnumerate


Enumerate instrument info.

Type: POST

Parameters

Response

waveform types per channel

Example

Send

{
  "command": "awgEnumerate"
}

Response

{
    "awg": {
        "numChans": 2,
        "chans": [
            {
                "name": "Channel0",
                "resolutionMax": 10,
                "bufferSizeMax": 1024,
                "freqMin": 100,
                "freqMax": 1000000,
                "voltageMin": -5000,
                "voltageMax": 5000
            },
            {
                "name": "Channel2",
                "resolutionMax": 10,
                "bufferSizeMax": 1024,
                "freqMin": 100,
                "freqMax": 1000000,
                "voltageMin": -5000,
                "voltageMax": 5000
            }
        ]
    }
}



awgSetOffsets


Set the offset voltage.

Type: POST

Parameters

Response

Example

Send

{
  "command": "awgSetOffsets",
  "offset": 1000
}

Response

{
  "statusCode": 0
}



awgGetOffsets


Get the offset value.

Type: POST

Parameters

Response

Example

Send

{
  "command": "awgGetOffsets"
}

Response

{
  "offset": 1000
  "statusCode": 0
}



awgSetWaveforms


Configure the waveform.

Type: POST

Parameters

Response

Example

Send

{

  "command": "awgSetWaveforms",
  "waveforms": [
    {
      "type": "sine",
      "freq": 1000,
      "amplitude": 5000,
      "offset": 1000
    }
  ]
}

Response

{
  statusCode: 0
}



awgSetCustomWaveforms


Configure the waveform.

Type: POST

Parameters

Response

Example

Send

{
  "command": "awgSetCustomWaveforms",
  "waveforms": [
    {
      "numSamples": 7,
      "sampleRate": 1000,
      "offset": 0,
      "samples": [0, 1, 2, 3, 2, 1, 0]
    }
  ]
}

Response

{
  statusCode: 0
}



awgRun


Run the waveform generator.

Type: POST

Parameters

Response

Example

Send

{  
  "command": "awgRun"
}

Response

{  
  "statusCode": 0
}



awgStop


Stop running the waveform generator.

Type: POST

Parameters

Response

Example

Send

{
  "command": "awgStop"
}

Response

{  
  "statusCode": 0
}