NI-RFSG Playback Library

NIRfsgPlayback Class

  • Updated2023-02-21
  • 16 minute(s) read
NIRfsgPlayback Class
Provides methods to generate the waveforms saved in a TDMS file using the NI-RFSG driver.

Inheritance Hierarchy

SystemObject
  NationalInstruments.ModularInstruments.NIRfsgPlaybackNIRfsgPlayback

Namespace:  NationalInstruments.ModularInstruments.NIRfsgPlayback
Assembly:  NationalInstruments.ModularInstruments.NIRfsgPlayback.Fx40 (in NationalInstruments.ModularInstruments.NIRfsgPlayback.Fx40.dll) Version: 23.0.0.49313 (23.0.0.49313)

Syntax

public static class NIRfsgPlayback
Public NotInheritable Class NIRfsgPlayback

The NIRfsgPlayback type exposes the following members.

Methods

  NameDescription
Public methodStatic memberClearAllWaveforms
Deletes the waveforms from the NI-RFSG device memory and removes all the waveform properties from the NI-RFSG waveform properties database for the specified device.
Public methodStatic memberClearWaveform
Deletes the waveform from the NI-RFSG device memory and removes the waveform properties from the NI-RFSG waveform properties database for the specified device.
Public methodStatic memberDownloadUserWaveform(IntPtr, String, ComplexWaveformComplexDouble, Boolean)
Normalizes the input waveform and writes it into the NI RF vector signal generator. This VI computes the peak to average power ratio (PAPR) using the bursts in the waveform, stores the PAPR, sample rate, waveform size, and runtime scaling value of -1.5 dB in the NI-RFSG waveform database.
Public methodStatic memberDownloadUserWaveform(IntPtr, String, ComplexWaveformComplexSingle, Boolean)
Normalizes the input waveform and writes it into the NI RF vector signal generator. This VI computes the peak to average power ratio (PAPR) using the bursts in the waveform, stores the PAPR, sample rate, waveform size, and runtime scaling value of -1.5 dB in the NI-RFSG waveform database.
Public methodStatic memberReadAndDownloadWaveformFromFile
Reads a waveform from a TDMS file, and downloads it to the NI RF vector signal generator.

This method reads the following information from the TDMS file and writes it into the NI-RFSG waveform database:

  • Sample Rate
  • PAPR and Runtime Scaling, or Peak Power Adjustment
  • RF Blanking Marker Locations
  • RF Blanking Enabled
  • Burst Start Locations
  • Burst Stop Locations
  • RF Blanking Marker Source
  • Signal Bandwidth
  • Waveform Size

If RF blanking marker locations are present in the file, but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG waveform database.

This method internally sets the RfsgRF.PowerLevelType property value to PeakPower before writing the waveform to NI-RFSG device memory. This method completes this tasks for each NI-RFSG session.

This method returns an error, if the TDMS file has more than one waveform.

Public methodStatic memberReadAndDownloadWaveformsFromFile

Reads the waveforms from a TDMS file, and downloads one waveform into each of the NI RF vector signal generators. The first waveform in the TDMS file is downloaded to the first NI RF vector signal generator and so on, until all the waveforms are downloaded.

This method reads the following information from the TDMS file and writes it into the NI-RFSG waveform database:

  • Sample Rate
  • PAPR and Runtime Scaling, or Peak Power Adjustment
  • RF Blanking Marker Locations
  • RF Blanking Enabled
  • Burst Start Locations
  • Burst Stop Locations
  • RF Blanking Marker Source
  • Signal Bandwidth
  • Waveform Size

If RF blanking marker locations are present in the file, but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG waveform database.

This method internally sets the RfsgRF.PowerLevelType property value to PeakPower before writing the waveform to NI-RFSG device memory. This method completes this tasks for each NI-RFSG session.

This method returns an error, if the number of waveforms in the TDMS file does not match the number of RFSG sessions.

Public methodStatic memberReadBurstStartLocationsFromFile
Returns the RF burst start locations stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadBurstStopLocationsFromFile
Returns the RF burst stop locations stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadPaprFromFile
Returns the peak to average power ratio (PAPR) stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadPeakPowerAdjustmentFromFile Obsolete.
Returns the value of the peak power adjustment stored in the file. This method uses the waveformIndex as the key to read the waveform properties.
Public methodStatic memberReadRFBlankingEnabledFromFile
Returns the RF blanking enabled value stored in the file. This method uses the waveformIndex as the key to read the waveform properties.
Public methodStatic memberReadRFBlankingMarkerLocationsFromFile Obsolete.
Returns the RF blanking marker locations stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadRFBlankingMarkerSourceFromFile
Returns the RF blanking marker source stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadRuntimeScalingFromFile
Returns the runtime scaling value stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadSampleRateFromFile
Returns the sample rate stored in the file. This method uses the waveformIndex as the key to read the waveform property.
Public methodStatic memberReadSignalBandwidthFromFile
Returns the signal bandwidth stored in the file. This method uses the waveformIndex parameter as the key to retrieve the waveform property.
Public methodStatic memberReadWaveformFileVersionFromFile
Returns the waveform file version of the waveform stored in the file.
Public methodStatic memberReadWaveformFromFileByIndexComplex(String, Int32, ComplexWaveformComplexDouble)
Reads the waveform from file and returns the waveform in an output parameter.
Public methodStatic memberReadWaveformFromFileByIndexComplex(String, Int32, ComplexWaveformComplexSingle)
Reads the waveform from file and returns the waveform in an output parameter.
Public methodStatic memberReadWaveformFromFileComplex(String, ComplexWaveformComplexDouble)
Reads the waveform from file and returns the waveform in an output parameter.
Public methodStatic memberReadWaveformFromFileComplex(String, ComplexWaveformComplexSingle)
Reads the waveform from file and returns the waveform in an output parameter.
Public methodStatic memberReadWaveformsFromFileComplex(String, Int32, ComplexWaveformComplexDouble)
Reads the waveforms from file, and returns the waveforms in an output parameter.
Public methodStatic memberReadWaveformsFromFileComplex(String, Int32, ComplexWaveformComplexSingle)
Reads the waveforms from file, and returns the waveforms in an output parameter.
Public methodStatic memberReadWaveformSizeFromFile
Returns the size of the waveform stored in the file. This method uses the waveformIndex parameter as the key to read the waveform property.
Public methodStatic memberRetrieveAutomaticSGSASharedLO
Returns the value of automatic SG SA shared LO parameter.
Public methodStatic memberRetrieveDownloadedWaveformNames
Returns the names of the waveforms that are stored in the NI-RFSG waveform database.
Public methodStatic memberRetrieveWaveformBurstStartLocations
Returns the RF burst start positions property stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformBurstStopLocations
Returns the RF burst stop positions property stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformFileVersion
Returns the waveform file version stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformLOOffsetMode
Returns the LO offset mode value stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformPapr
Returns the peak to average power ratio (PAPR) stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformPeakPowerAdjustment Obsolete.
Returns the value of the Peak Power Adjustment property stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformRFBlankingEnabled
Returns the RF blanking enabled value stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform properties.
Public methodStatic memberRetrieveWaveformRFBlankingMarkerLocations Obsolete.
Returns the RF blanking marker positions property stored in the NI-RFSG waveform database. This method uses the waveformName as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformRFBlankingMarkerSource
Returns the RF blanking marker source stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformRuntimeScaling
Returns the runtime scaling value stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformSampleRate
Returns the sample rate stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform properties.
Public methodStatic memberRetrieveWaveformSignalBandwidth
Returns the signal bandwidth stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberRetrieveWaveformSize
Returns the size of the waveform stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform property.
Public methodStatic memberSetScriptToGenerateMultipleRfsg
Sets the NI-RFSG driver to generate the waveforms specified in the script at the average power you configure on the NI-RFSG Power Level method. If you have enabled RF Blanking for the waveform, NI-RFSG is configured to correctly blank the output during the idle times of the waveform.

The NI-RFSG IQ Rate method is set to the sample rate of the waveforms in the script.

If the version of the waveform file is 2.0 or later, the method,

  • Sets the NI-RFSG Peak Power Adjustment method to the minimum value of the peak to average power ratio (PAPR) of the waveforms in the script.
  • Sets the NI-RFSG Pre-filter Gain method to the minimum value of the runtime scaling of the waveforms in the script.

If the version of the waveform file is lesser than 2.0, the method,

  • Sets the NI-RFSG Peak Power Adjustment method to the minimum value of the Headroom of the waveforms in the script.
  • Resets the NI-RFSG Pre-filter Gain method.

For the waveforms that have the RF blanking Enabled method set to True, this VI also does the following:

  • If the values of RF blanking marker source of all the waveforms are empty, then the first unused marker in the script is set as the RF Blanking Source.
  • Modifies the script to add the waveform burst start and stop locations as the RF Blanking marker locations

For PXIe-5840/5841/5842 and PXIe-5830/5831/5832 devices,

  • Sets the NI-RFSG Signal Bandwidth method to the maximum signal bandwidth of the waveform(s) in the script, if you set the LO Offset Mode to Auto. If no signal bandwidth is found in any waveform of the script, the NI-RFSG Signal Bandwidth method is set to 0.8 times the Sample Rate.
  • Resets the NI-RFSG Signal Bandwidth, if you set the LO Offset Mode to No Offset.
Public methodStatic memberSetScriptToGenerateSingleRfsg
Sets the NI-RFSG driver to generate the waveforms specified in the script at the average power you configure on the NI-RFSG Power Level method. If you have enabled RF Blanking for the waveform, NI-RFSG is configured to correctly blank the output during the idle times of the waveform.

The NI-RFSG IQ Rate method is set to the sample rate of the waveform in the script.

If the version of the waveform file is 2.0 or later, the method,

  • Sets the NI-RFSG Peak Power Adjustment method to the minimum value of the peak to average power ratio (PAPR) of the waveform in the script.
  • Sets the NI-RFSG Pre-filter Gain method to the minimum value of the runtime scaling of the waveform in the script.

If the version of the waveform file is lesser than 2.0, the method,

  • Sets the NI-RFSG Peak Power Adjustment method to the minimum value of the Headroom of the waveform in the script.
  • Resets the NI-RFSG Pre-filter Gain method.

For the waveforms that have the RF blanking Enabled method set to True, this method also does the following:

  • If the values of RF blanking marker source of all the waveforms are empty, then the first unused marker in the script is set as the RF Blanking Source.
  • Modifies the script to add the waveform burst start and stop locations as the RF Blanking marker locations

For PXIe-5840/5841/5842 and PXIe-5830/5831/5832 devices,

  • Sets the NI-RFSG Signal Bandwidth method to the maximum signal bandwidth of the waveform in the script, if you set the LO Offset Mode to Auto. If no signal bandwidth is found in any waveform of the script, the NI-RFSG Signal Bandwidth method is set to 0.8 times the Sample Rate.
  • Resets the NI-RFSG Signal Bandwidth, if you set the LO Offset Mode to No Offset.
Public methodStatic memberStoreAutomaticSGSASharedLO
Stores whether the signal generator’s LO signal can be shared on request by the RFmx driver. It is recommended to use Automatic sharing of local oscillator (LO) in test setups that use a vector signal transceiver (VST) with the NI-RFSG to generate a signal at the DUT's input and the RFmx driver to measure the signal at the DUT's output.

When using instruments that do not have LO with excellent phase noise, to minimize the contribution of the instrument's phase noise affecting your measurement, it is recommended to share the LO between the signal generator (SG) and signal analyzer (SA).

To enable sharing signal generator’s LO with signal analyzer automatically, setup the device specific physical connections as mentioned in the following table and follow the steps in the mentioned order.

PXIe-5840/5841/5842SG LO is shared with SA via an external path. Hence you must connect RF Out LO Out to RF In LO In using a cable.
PXIe-5830/5831/5832SG LO is shared with SA via an internal path. Hence the external cable connection is not required.
  1. Enable Automatic SG SA Shared LO on NI-RFSG Playback Library
  2. Set the LOSource method to Automatic_SG_SA_Shared in RFmx
  3. Configure other required settings on NI-RFSG and RFmx, including selecting waveforms
  4. Initiate NI-RFSG
  5. Initiate RFmx
Note Note
Measurement results might get affected while performing measurements in the RFmx driver if the signal analyzer measurement frequency span is wide enough to capture signal generator LO. In these cases, it is recommended to configure the NIRfsgPlaybackLOOffsetMode parameter to NoOffset.
Public methodStatic memberStoreWaveformBurstStartLocations
Stores the RF burst start locations, which you specify in the burstStartLocations parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformBurstStopLocations
Stores the RF burst stop positions, which you specify in the burstStopLocations parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformLOOffsetMode
Stores the LO offset mode value, which you specify in the value parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformPapr
Stores the peak to average power ratio (PAPR), which you specify in the PAPR parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformPeakPowerAdjustment Obsolete.
Stores the peak power adjustment, which you specify in the peakPowerAdjustment parameter, in the RFSG waveform database.
Public methodStatic memberStoreWaveformRFBlankingEnabled
Stores the RF blanking enabled value, which you specify in the rfBlankingEnabled parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformRFBlankingMarkerLocations Obsolete.
Stores the RF blanking marker positions, which you specify in the markerLocations parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformRFBlankingMarkerSource
Stores the RF blanking marker source, which you specify in the markerSource parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformRuntimeScaling
Stores the runtime scaling value, which you specify in the runtimeScaling parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformSampleRate
Stores the sample rate, which you specify in the sampleRate parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformSignalBandwidth
Stores the signal bandwidth, which you specify in the signalBandwidth parameter, in the NI-RFSG waveform database.
Public methodStatic memberStoreWaveformSize
Stores the size of the waveform, which you specify in the waveformSize parameter, in the NI-RFSG waveform database.
Top

See Also

Log in to get a better experience