manuals.online logo
Brands
  1. Home
  2. •
  3. Brands
  4. •
  5. Tektronix
  6. •
  7. Measuring Instrument
  8. •
  9. Tektronix RSA7100A Operating and maintenance manual

Tektronix RSA7100A Operating and maintenance manual

x
RSA7100A Real-Time Spectrum Analyzer
Application Programming Interface (API)
ZZZ
Programmer Manual
*P077149600*
077-1496-00
RSA7100A Real-Time Spectrum Analyzer
Application Programming Interface (API)
ZZZ
Programmer Manual
xx
www.tek.com
077-1496-00
Copyright © Tektronix. All rights reserved. Licensed software products are owned by Tektronix or its subsidiaries or suppliers, and are
protected by national copyright laws and international treaty provisions.
Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supersedes that in all
previously published material. Specifications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting Tektronix
Tektronix, Inc.
14150 SW Karl Braun Drive
P.O. Box 500
Beaverton, OR 97077
USA
For product information, sales, service, and technical support:
In North America, call 1-800-833-9200.
Worldwide, visit www.tek.com to find contacts in your area.
Table of Contents
Table of Contents
Preface................................................................................................................................. ii
Function calls .......................................................................................................................... 1
Index
DRAFT—23 August 2018
RSA7100A API Programmer Manual i
Preface
Preface
In the typical API scenario, the custom user program calls functions from the API to fetch data. This is known as a “pull”
model. The user’s program must “pull” the data from the instrument. This is not the case with the RSA7100A IQFlow™
streaming API.
The RSA7100A IQFlow™ streaming API uses a “push” model to “push” the data to the user’s code by calling user supplied
callback functions. These callback functions have immediate access the latest acquired data and can then use it however
the user has programmed.
IQ data is structured as an array of 16-bit signed integer pairs and needs to be scaled by multiplying it with a scaling factor.
The AuxData structure returned by the USERDATA_GetAuxData() function contains this scaling factor.
DRAFT—23 August 2018
ii RSA7100A API Programmer Manual
Function calls
Function calls
dataCallbackFxn Type definition for the user’s data callback function. Called automatically by
the API when new data is available.
Declaration: dataCallbackFxn(IQDataPtr data, size_t size, size_t startOfBlockSample, bool
streamOverload, double sampleRate, double centerFreq);
Parameters:
data IQDataPtr structure. Provides the IQ pair data block.
size size_t of the IQ pair data block.
startofBlockSample size_t sample number of the first sample in the IQ data block.
streamOverload bool. True indicates an IQ data block was missed. False indicates no skipped
IQ data block.
sampleRate double of the sample rate for the current acquisition.
centerFreq double of the center frequency for the current acquisition.
triggerCallbackFxn Type definition for the user’s trigger callback function. Called automatically by
the API when the RSA is triggered.
Declaration: triggerCallbackFxn(size_t triggerSample);
Parameters:
Triggersample size_t of the sample number for the current trigger event.
USERDATA_Connect() Connects the user’s callback functions to the IQFlow™ streaming API.
Declaration: ReturnStatus USERDATA_Connect(size_t &dataSize, dataCallbackFxn
dCbFxn, triggerCallbackFxn tCbFxn);
Parameters:
dataSize size_t passed by reference. Sets the buffer size of the IQ pair data block. This
value is bound between 221 to 228.
dCbFxn dataCallbackFxn. Sets the user supplied callback function to be called by the
API each time a new data block is available. Can be set to null if real-time
IQ data is not required.
tCbFxn triggerCallbackFxn. Sets the user supplied callback function to be called by the
API each time a trigger event occurs. Can be set to null if trigger timestamp is
not required.
Return values:
noError The function completed successfully.
errorBufferTooSmall The buffer size specified is too small.
errorBufferTooLarge The buffer size specified is too large.
USERDATA_Disconnect() Disconnects the user’s callback functions from the SignalVu-PC streaming API.
Declaration: USERDATA_Disconnect();
Return values:
noError The function completed successfully.
DRAFT—23 August 2018
RSA7100A API Programmer Manual 1
Function calls
USERDATA_GetAuxData() Fetches a data structure containing metadata for the acquired data.
Declaration: ReturnStatus USERDATA_GetAuxData(AuxData &auxData);
Parameters:
AuxData structure defined as follows:
Float version Version of structure
bool skippedFrame: True indicates a skipped frame. False indicates no
skipped frame.
bool adcOverrange: True indicates adc over range occurred. False
indicates no adc overrange.
bool refFreqUnlock: —
bool ifPowerOverloadStartAcq; IF power overload occurred during instrument
initialization.
bool ifPowerOverloadRuntime; IF power overload occurred during run time.
bool dmaOverflow; True indicates dma overflow occurred. False
indicates no dma overflow.
bool gpsStatus; True indicates GPS is on. False indicates GPS is off.
double gpsLat; Returns GPS latitude if GPS status is true.
double gpsLong; Returns GPS longitude if GPS status is true.
double gpsAlt; Returns GPS altitude if GPS status is true.
bool validTimeRef; Time source used is valid.
uint64_t seconds; Returns time of IQ data block in seconds (based off
posix time) if GPS status is true.
uint64_t nSeconds; Nanosecond resolution of current IQ data block.
uint64_t timestamp; Returns the timestamp of the first IQ pair in data
block.
uint64_t timeRefTimestamp; Returns the current time reference source timestamp
associated with time.
double sampleRate; Returns the sample rate of the current acquisition.
double cf; Returns the center frequency of the current
acquisition.
double scalingFactor; Returns the scaling factor for the IQ data. Multiply
the signed 16-bit integer values by this to scale the
data factor.
Return Values:
noError: The function completed successfully.
errorInvalidShared-
Memory:
No data found in auxiliary data.
errorTimedOut: The function timed out.
errorNotConnected: The function had no valid connection to SignalVu-PC.
Additional Detail: GFRM_OFF (0) is returned when GNSS source is not selected.
DRAFT—23 August 2018
2RSA7100A API Programmer Manual
Function calls
USERDATA_GetData () Fetches the latest IQ data using a traditional pull method.
Declaration: ReturnStatus USERDATA_GetData(IQDataPtr data, size_t size, size_t
&startofBlockSample, bool &streamOverload, double &sampleRate, double
&centerFreq);
Parameters:
data IQDataPtr structure. Provides the IQ pair data block.
size size_t of the number of samples in the IQ pair data block.
startofBlockSample size_t sample number of the first sample in IQ data block.
streamOverload bool. True indicates an IQ data block was missed. False indicates no skipped
IQ data block.
sampleRate double of the sample rate for the current acquisition.
centerFreq double of the center frequency for the current acquisition.
Return values:
noError The function completed successfully.
errorBufferTooSmall The buffer size specified is too small.
errorBufferTooLarge The buffer size specified is too large.
USERDATA_FindData () Searches for the sample number passed to it in the API’s local circular buffer
and returns a data set containing the requested sample, if it can be found.
Declaration: ReturnStatus USERDATA_FindData(IQDataPtr data, size_t size, size_t
findSample, size_t &startofBlockSample, bool &sreamOverlaod, double
&sampleRate, double &centerFreq);
Parameters:
dataIQDataPtr structure. Provides the IQ pair data block.
sizesize_t of the number of samples in the IQ pair data block.
findSample —
startofBlockSample size_t sample number of the first sample in the IQ data block.
streamOverload bool. True indicates an IQ data block was missed. False indicates no skipped
IQ data block.
sampleRate double of the sample rate for the current acquisition.
centerFreq double of the center frequency for the current acquisition.
Return values:
noError The function completed successfully.
errorInvalidSize The function parameter size is 0.
errorInvalidDataRate The function parameter sampleRate is 0 or negative.
errorStaleTrigger The function failed to acquire the trigger since the data has already passed.
errorTimedOut The function timed out while looking for a trigger.
unknownError The function received an unknown error.
DRAFT—23 August 2018
RSA7100A API Programmer Manual 3
Function calls
DRAFT—23 August 2018
4RSA7100A API Programmer Manual
Index
Index
C
Connect, 1
D
Data structure
fetch, 2
Data type definition, 1
Disconnect, 1
F
Fetch data, 3
Fetch data structure, 2
Find data, 3
T
Trigger type definition, 1
DRAFT—23 August 2018
RSA7100A API Programmer Manual 5

Other manuals for RSA7100A

2

Other Tektronix Measuring Instrument manuals

Tektronix TPP0850 User manual

Tektronix

Tektronix TPP0850 User manual

Tektronix MTS415 User manual

Tektronix

Tektronix MTS415 User manual

Tektronix TLA7S08 User manual

Tektronix

Tektronix TLA7S08 User manual

Tektronix TLA7012 User manual

Tektronix

Tektronix TLA7012 User manual

Tektronix 7D20 User manual

Tektronix

Tektronix 7D20 User manual

Tektronix PA4000 Series User manual

Tektronix

Tektronix PA4000 Series User manual

Tektronix TAP3500 User manual

Tektronix

Tektronix TAP3500 User manual

Tektronix S-4 User manual

Tektronix

Tektronix S-4 User manual

Tektronix RSA3303A User manual

Tektronix

Tektronix RSA3303A User manual

Tektronix TLA7PG2 Installation and maintenance instructions

Tektronix

Tektronix TLA7PG2 Installation and maintenance instructions

Tektronix Keithley SourceMeter 2410 User manual

Tektronix

Tektronix Keithley SourceMeter 2410 User manual

Tektronix DPO7OE1 User manual

Tektronix

Tektronix DPO7OE1 User manual

Tektronix VM700T User manual

Tektronix

Tektronix VM700T User manual

Tektronix SDA601 User manual

Tektronix

Tektronix SDA601 User manual

Tektronix 1L30 User manual

Tektronix

Tektronix 1L30 User manual

Tektronix A621 User manual

Tektronix

Tektronix A621 User manual

Tektronix RSA5100A Series User manual

Tektronix

Tektronix RSA5100A Series User manual

Tektronix 318 User manual

Tektronix

Tektronix 318 User manual

Tektronix P6460 User manual

Tektronix

Tektronix P6460 User manual

Tektronix 1741C User manual

Tektronix

Tektronix 1741C User manual

Tektronix TriMode P7700 Series Use and care manual

Tektronix

Tektronix TriMode P7700 Series Use and care manual

Tektronix KEITHLEY 2380-500 User manual

Tektronix

Tektronix KEITHLEY 2380-500 User manual

Tektronix PRISM MPI2-10 User manual

Tektronix

Tektronix PRISM MPI2-10 User manual

Tektronix SDA601 User manual

Tektronix

Tektronix SDA601 User manual

Popular Measuring Instrument manuals by other brands

Helwett Packard 4339B user guide

Helwett Packard

Helwett Packard 4339B user guide

pH ELECTRODE PE-03 Operation manual

pH ELECTRODE

pH ELECTRODE PE-03 Operation manual

PANCONTROL PAN 180 CB-A operating manual

PANCONTROL

PANCONTROL PAN 180 CB-A operating manual

Topcon CL-200 instruction manual

Topcon

Topcon CL-200 instruction manual

multicomp pro MP780859 quick start guide

multicomp pro

multicomp pro MP780859 quick start guide

Panasonic DMRE20 - DVD VIDEO RECORDER operating instructions

Panasonic

Panasonic DMRE20 - DVD VIDEO RECORDER operating instructions

ATAGO PAL-91S instruction manual

ATAGO

ATAGO PAL-91S instruction manual

Johnson Matthey TRACERCO PED-IS user manual

Johnson Matthey

Johnson Matthey TRACERCO PED-IS user manual

Hach 59530-16 instruction manual

Hach

Hach 59530-16 instruction manual

Reer LAD2 Directions for installation, use and maintenance

Reer

Reer LAD2 Directions for installation, use and maintenance

Pyxis SP-380 user manual

Pyxis

Pyxis SP-380 user manual

HEIDENHAIN ND 282 Instruction

HEIDENHAIN

HEIDENHAIN ND 282 Instruction

ATAGO PAL-102S instruction manual

ATAGO

ATAGO PAL-102S instruction manual

Nippon WA-5A instruction manual

Nippon

Nippon WA-5A instruction manual

ThermoWorks ThermaQ 2 operating instructions

ThermoWorks

ThermoWorks ThermaQ 2 operating instructions

CASELLA CEL CEL-712 user manual

CASELLA CEL

CASELLA CEL CEL-712 user manual

Siemens airanger DPL PLUS instruction manual

Siemens

Siemens airanger DPL PLUS instruction manual

Amprobe MO-100 user manual

Amprobe

Amprobe MO-100 user manual

manuals.online logo
manuals.online logoBrands
  • About & Mission
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Copyright 2025 Manuals.Online. All Rights Reserved.