Commands that provide access to logger instrument data and functions.
Get the current state of the instrument's channel
Command
Response
Command
{
"log": {
"analog": {
"1": [{
"command": "getCurrentState"
}]
}
}
}
Response
{
"log": {
"analog": {
"1": [{
"command":"getCurrentState",
"statusCode":0,
"state":"stopped",
"stopReason":"NORMAL",
"startIndex":0,
"actualCount":0,
"maxSampleCount":-1,
"actualGain":0.075,
"actualVOffset":0,
"actualSampleFreq":50000000,
"actualStartDelay":0,
"overflow":"circular",
"storageLocation":"sd0",
"uri":"ch1.bin",
"wait":0
}]
}
}
}
Set log parameters.
Command
Response
Command
{
"log":{
"analog":{
"1":[{
"command":"setParameters",
"maxSampleCount":1000,
"gain":0.25,
"vOffset":0,
"sampleFreq":200000000,
"startDelay":0,
"storageLocation":"ram",
"uri":""
}],
"2":[{
"command":"setParameters",
"maxSampleCount":1000,
"gain":0.25,
"vOffset":0,
"sampleFreq":200000000,
"startDelay":0,
"storageLocation":"ram",
"uri":""
}]
}
}
}
Response
{
"log":{
"analog":{
"1":[{
"command":"setParameters",
"statusCode":0,
"maxSampleCount":1000,
"actualGain":0.25,
"actualVOffset":-37,
"actualSampleFreq":200000000,
"actualStartDelay":0,
"storageLocation":"ram",
"uri":"",
"wait":0
}],
"2":[{
"command":"setParameters",
"statusCode":0,
"maxSampleCount":1000,
"actualGain":0.25,
"actualVOffset":12,
"actualSampleFreq":200000000,
"actualStartDelay":0,
"storageLocation":"ram",
"uri":"",
"wait":0
}]
}
}
}
Run the logger
Command
Response
Command
{
"log": {
"analog": {
"1": [{
"command": "run"
}]
}
}
}
Response
{
"log": {
"analog": {
"1": [{
"command":"run",
"statusCode":0,
"wait":-1
}]
}
}
}
Read live logger while it runs
Command
Response
Command
{
"log": {
"analog": {
"1": [{
"command":"read",
"startIndex":0,
"count":0
}]
}
}
}
Response
12F\r\n
{
"log": {
"analog": {
"1": [{
"command":"read",
"statusCode":0,
"binaryOffset":0,
"binaryLength":2,
"actualCount":1,
"startIndex":0,
"maxSampleCount":1000,
"actualGain":1,
"actualVOffset":-68,
"actualSampleFreq":200000000,
"actualStartDelay":0,
"overflow":"circular",
"storageLocation":"ram",
"uri":"ch1.bin",
"wait":0
}]
}
}
}\r\n
2\r\n
<Binary Data>\r\n
0\r\n
\r\n
Stop the logger
Command
Response
Command
{
"log": {
"analog": {
"1": [{
"command": "stop"
}]
}
}
}
Response
{
"log": {
"analog": {
"1": [{
"command":"stop",
"statusCode":0,
"wait":0
}]
}
}
}