NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalTimeSet.ConfigureDriveEdges Method (DigitalPinSet, DriveFormat, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan)

  • Updated2023-11-24
  • 2 minute(s) read
DigitalTimeSet.ConfigureDriveEdges Method (DigitalPinSet, DriveFormat, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan)

DigitalTimeSetConfigureDriveEdges Method (DigitalPinSet, DriveFormat, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan)

Configures the drive format and drive edge placement for the specified pin set.

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

Syntax

public void ConfigureDriveEdges(
	DigitalPinSet pinSet,
	DriveFormat format,
	PrecisionTimeSpan driveOnEdge,
	PrecisionTimeSpan driveDataEdge,
	PrecisionTimeSpan driveReturnEdge,
	PrecisionTimeSpan driveOffEdge
)
Public Sub ConfigureDriveEdges ( 
	pinSet As DigitalPinSet,
	format As DriveFormat,
	driveOnEdge As PrecisionTimeSpan,
	driveDataEdge As PrecisionTimeSpan,
	driveReturnEdge As PrecisionTimeSpan,
	driveOffEdge As PrecisionTimeSpan
)

Parameters

pinSet
Type: NationalInstruments.ModularInstruments.NIDigitalDigitalPinSet
The pin set for which to configure the time set edges.
format
Type: NationalInstruments.ModularInstruments.NIDigitalDriveFormat
The drive format of the time set.
driveOnEdge
Type: Ivi.DriverPrecisionTimeSpan
The delay from the beginning of the vector period for turning on the pin driver. This option applies only when the prior vector left the pin in a non-drive PinState (L, H, X, V, M, E). For the SurroundByComplement format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven.
driveDataEdge
Type: Ivi.DriverPrecisionTimeSpan
The delay from the beginning of the vector period until the pattern data is driven to the pattern value. The ending state from the previous vector persists until this point.
driveReturnEdge
Type: Ivi.DriverPrecisionTimeSpan
The delay from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format.
driveOffEdge
Type: Ivi.DriverPrecisionTimeSpan
The delay from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive PinState (L, H, X, V, M, E).

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.
SelectorNameException
  1. An instance of DigitalTimeSet represents a time set name that has not yet been applied.
  2. The pinSet contains a pin or pin group name not loaded in the pin map.
OutOfRangeException
  1. The value for format is invalid.
  2. The value for driveOnEdge is invalid.
  3. The value for driveDataEdge is invalid.
  4. The value for driveReturnEdge is invalid.
  5. The value for driveOffEdge is invalid.

Remarks

Not all edges apply to all drive formats.

See Also

Log in to get a better experience