get_data
Get a frame of the data from the instrumentIn the LIA instrument, the frame comes from the Monitor subsystem. See `set_monitor`.
Parameters
boolean
Wait for a new trigger event
default: false boolean
Wait until entire frame is available
default: false boolean
When set to True, it returns both the raw data for channels and the computed measurements
default: false number
Timeout for trigger event if wait_reacquire is true
default: 60allowed values:0 - infunits: SecondsEvery data frame is a time series data of 1024 points with following structure
"data":{
"ch1":[], // 1024 points
"ch2":[], // 1024 points
"time":[], // 1024 points
}
1
2
3
4
5
2
3
4
5
Below are the examples on how to read the data frame,
# Sample response
{
"ch1": [0.199966587475501, 0.19969925246550702, "..."],
"ch2": [0.0, 0.0, "..."],
"ch3": [0.0, 0.0, "..."],
"ch4": [0.0, 0.0, "..."],
"time": [-0.0004995328, -0.0004985343999999999, "..."]
}
1
2
3
4
5
6
7
2
3
4
5
6
7