DigitalTimeSet.ConfigureDriveEdges Method (DigitalPinSet, DriveFormat, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan, PrecisionTimeSpan)
- Updated2023-11-24
- 2 minute(s) read
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
Exception | Condition |
---|---|
IviCDriverException | The NI-Digital Pattern Driver returned an error. |
SelectorNameException |
|
OutOfRangeException |
|
Remarks
Not all edges apply to all drive formats.