Commands that provide access to Arbitrary Waveform Generator data and functions.
Calibrate the arbitrary waveform generator.
Type: POST
Send
{
"command": "awgCalibrate"
}
Response
{
"statusCode": 0
}
Enumerate instrument info.
Type: POST
waveform types per channel
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
}
]
}
}
Set the offset voltage.
Type: POST
Send
{
"command": "awgSetOffsets",
"offset": 1000
}
Response
{
"statusCode": 0
}
Get the offset value.
Type: POST
Send
{
"command": "awgGetOffsets"
}
Response
{
"offset": 1000
"statusCode": 0
}
Configure the waveform.
Type: POST
Send
{
"command": "awgSetWaveforms",
"waveforms": [
{
"type": "sine",
"freq": 1000,
"amplitude": 5000,
"offset": 1000
}
]
}
Response
{
statusCode: 0
}
Configure the waveform.
Type: POST
Send
{
"command": "awgSetCustomWaveforms",
"waveforms": [
{
"numSamples": 7,
"sampleRate": 1000,
"offset": 0,
"samples": [0, 1, 2, 3, 2, 1, 0]
}
]
}
Response
{
statusCode: 0
}
Run the waveform generator.
Type: POST
Send
{
"command": "awgRun"
}
Response
{
"statusCode": 0
}
Stop running the waveform generator.
Type: POST
Send
{
"command": "awgStop"
}
Response
{
"statusCode": 0
}