Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

WriteFromFile Method

Digital Pattern Help

Edition Date: May 2017

Part Number: 375145c

»View Product Info
Download Help (Windows Only)

DigitalSourceWaveforms Class See Also


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

Namespace: NationalInstruments.ModularInstruments.NIDigital

Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 17.0.0.49152 (17.0.0.49152)

Syntax

Visual Basic (Declaration)
Public Sub WriteFromFile ( _
	waveformName As String, _
	waveformFilePath As String _
)

C#
public void WriteFromFile(
	string waveformName,
	string waveformFilePath
)

Parameters

waveformName
Type: System.String
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.
waveformFilePath
Type: System.String
Specifies the path to the source waveform file (.tdms).

Exceptions

ExceptionCondition
Ivi.Driver.IviCDriverException
ArgumentExceptionThe waveform name specified by waveformName does not exist.
FileNotFoundExceptionThe file was not found at the specified waveformFilePath.

See Also

Reference

DigitalSourceWaveforms Class

NationalInstruments.ModularInstruments.NIDigital Namespace


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit