NI-Digital Pattern Driver .NET Class Library

Table of Contents

NIDigital.ApplyLevelsAndTiming Method (String, String, String, DigitalPinSet, DigitalPinSet, DigitalPinSet)

  • Updated2023-11-24
  • 2 minute(s) read
NIDigital.ApplyLevelsAndTiming Method (String, String, String, DigitalPinSet, DigitalPinSet, DigitalPinSet)

NIDigitalApplyLevelsAndTiming Method (String, String, String, DigitalPinSet, DigitalPinSet, DigitalPinSet)

Applies digital levels and timing defined in the loaded levels and timing sheets.

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

Syntax

public void ApplyLevelsAndTiming(
	string siteList,
	string levelsSheet,
	string timingSheet,
	DigitalPinSet initialStateHighPins,
	DigitalPinSet initialStateLowPins,
	DigitalPinSet initialStateTristatePins
)
Public Sub ApplyLevelsAndTiming ( 
	siteList As String,
	levelsSheet As String,
	timingSheet As String,
	initialStateHighPins As DigitalPinSet,
	initialStateLowPins As DigitalPinSet,
	initialStateTristatePins As DigitalPinSet
)

Parameters

siteList
Type: SystemString
A comma-delimited list of strings of the form siteN, where N is the site number. Passing an empty string specifies all sites.
levelsSheet
Type: SystemString
The name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path used in the LoadLevels(String) method. The name of the levels sheet is the file name without the directory and the file extension.
timingSheet
Type: SystemString
The name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you used in the LoadTiming(String) method. The name of the timing sheet is the file name without the directory and file extension.
initialStateHighPins
Type: NationalInstruments.ModularInstruments.NIDigitalDigitalPinSet
A pin set to initialize to a high state.
initialStateLowPins
Type: NationalInstruments.ModularInstruments.NIDigitalDigitalPinSet
A pin set to initialize to a low state.
initialStateTristatePins
Type: NationalInstruments.ModularInstruments.NIDigitalDigitalPinSet
A pin set to initialize to a non-drive state.

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.
SelectorNameExceptionThe specified siteList contains an invalid site.
InvalidOperationExceptionThe specified levelsSheet or timingSheet is not loaded.
ArgumentExceptionThe specified initialStateHighPins, initialStateLowPins, or initialStateTristatePins contains an invalid pin or pin group name.

See Also

Log in to get a better experience