get_data

Get current sweep data

Every data frame is a object representing a frame of dual-channel (amplitude and phase) vs frequency response data.

Parameters

Wait for a new trigger event
default: false
boolean
Wait until complete frame is available
default: false
integer
Timeout for trigger event if wait_reacquire is true
default: 60
allowed values:0 - inf
units: Seconds

NOTE

When the single sweep mode is enabled, it is recommended to set the timeout parameter to a value greater than the estimated_sweep_time, failing to do this will raise a timeout error. estimated_sweep_time is returned as part of response in set_sweep and start_sweep functions. It can also be retreived using get_sweep fucntion.

Every data frame is of 1024 points with following structure,

"data":{
  "ch1":[
    "magnitude":[],
    "phase":[],
    "frequency":[]
  ],
  "ch2":[
    "magnitude":[],
    "phase":[],
    "frequency":[]
  ],
}
1
2
3
4
5
6
7
8
9
10
11
12

Below are the examples on how to read the data frame,