NIRfsg Namespace

Table of Contents

RfsgArb.WriteWaveform(String, Double[], Double[]) Method

  • Updated2025-05-22
  • 1 minute(s) read
RfsgArb.WriteWaveform(String, Double[], Double[]) Method

RfsgArbWriteWaveform(String, Double, Double) Method

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.Fx45 (in NationalInstruments.ModularInstruments.NIRfsg.Fx45.dll) Version: 2025

Syntax

public void WriteWaveform(
	string name,
	double[] iData,
	double[] qData
)
Public Sub WriteWaveform ( 
	name As String,
	iData As Double(),
	qData As Double()
)

Parameters

name  String
Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words.
iData  Double
Specifies the in-phase (I) component of the complex baseband signal.
qData  Double
Specifies the quadrature (Q) component of the complex baseband signal.

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

Log in to get a better experience