DigitalCaptureWaveforms.CreateFromFile Method
- Updated2023-11-24
- 1 minute(s) read
DigitalCaptureWaveformsCreateFromFile Method
Creates a capture waveform using the configuration information from a .digicapture file.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public void CreateFromFile( string waveformName, string waveformFilePath )
Public Sub CreateFromFile ( waveformName As String, waveformFilePath As String )
Parameters
- waveformName
- Type: SystemString
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
- Type: SystemString
Specifies the absolute file path to the capture waveform file (.digicapture) to load.
Exceptions
Exception | Condition |
---|---|
IviCDriverException | The NI-Digital Pattern Driver returned an error. |
ArgumentException | The waveform name specified by waveformName does not exist. |
FileNotFoundException | The file was not found at the specified waveformFilePath. |