get_data

Get the latest sweep results

Parameters

Wait for a new trigger event
default: false
string
Units
default: dBm
allowed values:dBm, Vrms, Vpp, dBV
boolean
PSD Units
default: false
boolean
Wait until entire frame is available
default: false
number
Timeout for trigger event if wait_reacquire is true
default: 60
allowed values:0 - inf
units: Seconds
boolean
When set to True, it returns both the raw data for channels and the computed measurements
default: false
boolean
Disable all implicit conversions and coercions.
default: true

Returns a frame of dual-channel frequency spectrum data (amplitude vs frequency in Hz). Every data frame has the following structure. Please note that the number of data points for each frame can be any number between 512 and 1024.

"data":{
  "ch1":[],  // 1024 points
  "ch2":[],  // 1024 points
  "frequency":[],  // 1024 points
}
1
2
3
4
5

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