CreateFromFile(string, string, bool)
- Updated2026-01-12
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| waveformName | string | 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. |
| waveformFilePath | string | Specifies the absolute file path to the source waveform file (.tdms). |
| writeWaveformData | bool | Writes waveform data to source memory if true and the waveform data is in the file. |
Exceptions
| Type | Description |
|---|---|
| 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 . |