ni-rfsg-dotnet-api-ref_doc

Content Type
Programming Language
Current manual
Table of Contents
Product Documentationni-rfsg-dotnet-api-ref_docRfsgArb.WriteWaveform Method (String, Single[], Single[], Boolean)Current page
Table of Contents

RfsgArb.WriteWaveform Method (String, Single[], Single[], Boolean)

RfsgArb.WriteWaveform Method (String, Single[], Single[], Boolean)

RfsgArbWriteWaveform Method (String, Single, Single, Boolean)

Writes an arbitrary waveform to the NI-RFSG, starting from the position of the last data written in onboard memory.

Namespace:  NationalInstruments.ModularInstruments.NIRfsg
Assembly:  NationalInstruments.ModularInstruments.NIRfsg.Fx40 (in NationalInstruments.ModularInstruments.NIRfsg.Fx40.dll) Version: 2022

Syntax

public void WriteWaveform(
	string name,
	float[] iData,
	float[] qData,
	bool moreDataPending
)
Public Sub WriteWaveform ( 
	name As String,
	iData As Single(),
	qData As Single(),
	moreDataPending As Boolean
)

Parameters

name
Type: SystemString
Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words.
iData
Type: SystemSingle
Specifies the in-phase (I) component of the complex baseband signal.
qData
Type: SystemSingle
Specifies the quadrature (Q) component of the complex baseband signal.
moreDataPending
Type: SystemBoolean
Specifies whether or not the data block contains the end of the waveform. Set this parameter to TrueString to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the name parameter. Set moreDataPending to FalseString to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored.

Exceptions

ExceptionCondition
ObjectDisposedException The WriteWaveform(String, Double, Double) method was accessed after the associated NIRfsg object was disposed.

Remarks

This method takes the I and Q vectors of a complex baseband signal as data input. If the waveform is large, use the AllocateWaveform(String, Int32) method.

The NI-RFSG must be in the Configuration state before you call the WriteWaveform(String, Double, Double) method.

See Also

Was this information helpful?