Writes a source waveform based on the waveform data and the configuration information the file contains.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDigital

public void WriteFromFile(string waveformName, string waveformFilePath)

Parameters

NameTypeDescription
waveformNamestring

Specifies the waveform name to use from the file. You must specify the waveform name if the file contains multiple waveforms. Use the waveformName  with source_start opcode in your pattern.

waveformFilePathstring

Specifies the absolute file path to the source waveform file (.tdms).

Exceptions

TypeDescription
Ivi.Driver.IviCDriverException

The NI-Digital Pattern Driver returned an error.

System.ArgumentException

The waveform name specified by waveformName  does not exist.

System.IO.FileNotFoundException

The file was not found at the specified waveformFilePath .