CreateFromFile(string, string)
- Updated2026-01-12
- 1 minute(s) read
Creates a capture waveform using the configuration information from a .digicapture file.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDigital
public void CreateFromFile(string waveformName, string waveformFilePath)
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 capture_start opcode in your pattern. |
| waveformFilePath | string | Specifies the absolute file path to the capture waveform file (.digicapture) to load. |
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 . |