Commands that provide access to trigger functionality.
Get the current state of the instrument's channel
Command
{
"trigger": {
"1": [
{
"command": "getCurrentState"
}
]
}
}
Response
{
"trigger": {
"1": [
{
"command": "getCurrentState",
"statusCode": 0,
"acqCount": 10,
"source": {
"instrument": "osc",
"channel": 1,
"type": "risingEdge",
"lowerThreshold": 0,
"upperThreshold": 30
},
"targets": {
"osc": [1, 2],
"la": [1]
},
"state": "armed" || "acquiring" || "idle" || "triggered",
"wait": 0
}
]
}
}
Force an immediate acquisition without waiting for a trigger condition.
Command
{
"trigger":{
"1":[
{
"command":"forceTrigger"
}
]
}
}
Response
{
"trigger":{
"1":[
{
"command":"forceTrigger",
"statusCode":0,
"acqCount": 27,
"wait": -1
}
]
}
}
Set the device trigger parameters.
Command
Command
{
"trigger": {
"1": [
{
"command": "setParameters",
"source": {
"instrument": "osc",
"channel": 1,
"type": "risingEdge",
"lowerThreshold": 3300,
"upperThreshold": 4000
},
"targets": {
"osc": [
1,
2
],
"la": [
1,
2
]
}
}
]
}
}
Response
{
"trigger":{
"1":[
{
"command":"setParameters",
"statusCode":0,
"wait":0
}
]
}
}
Arm the specified trigger and immediately re-arm the trigger after a successful acquisition.
Command
{
"trigger":{
"1":[
{
"command":"run"
}
]
}
}
Response
{
"trigger":{
"1":[
{
"command":"run",
"statusCode":0,
"wait":-1,
"acqCount": 27
}
]
}
}
Arm the specified trigger and do not re-arm the trigger after a successful acquisition.
Command
{
"trigger":{
"1":[
{
"command":"single"
}
]
}
}
Response
{
"trigger":{
"1":[
{
"command":"single",
"statusCode":0,
"wait":-1,
"lastAcqCount": 27
}
]
}
}
Disarm the specified trigger.
Command
{
"trigger":{
"1":[
{
"command":"stop"
}
]
}
}
Response
{
"trigger":{
"1":[
{
"command":"stop",
"statusCode":0,
"wait": 0
}
]
}
}