Creates the source waveform settings used to source waveforms with configuration information contained in a .tdms file.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDigital

public void CreateFromFile(string waveformName, string waveformFilePath, bool writeWaveformData)

Remarks

For more information, refer to Opcodes and Source Waveform Configurations in the Digital Pattern Help.

Parameters

NameTypeDescription
waveformNamestring

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

waveformFilePathstring

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

writeWaveformDatabool

Writes waveform data to source memory if true and the waveform data is in the file.

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 .