NIDigital Constructor (String, Boolean, Boolean)
- Updated2023-11-24
- 2 minute(s) read
NIDigital Constructor (String, Boolean, Boolean)
Initializes a new instance of the NIDigital class. Initializes a digital pattern instrument driver session and sets the initial state of session properties.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public NIDigital( string resourceName, bool idQuery, bool reset )
Public Sub New ( resourceName As String, idQuery As Boolean, reset As Boolean )
Parameters
- resourceName
- Type: SystemString
The resource name assigned by Measurement Automation Explorer (MAX) to a digital pattern instrument; for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where PXI1Slot2 is one instrument name and PXI1Slot3 is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. Note: You can only specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and a PXIe-6571. The instruments must be in the same chassis. The resourceName can also be a logical IVI name. - idQuery
- Type: SystemBoolean
to verify that the instrument you initialize is supported by the NI-Digital Pattern Driver. The NI-Digital Pattern Driver performs verification regardless of the value of this parameter. - reset
- Type: SystemBoolean
to reset the digital pattern instrument to a known state when the session is initialized.
Exceptions
Exception | Condition |
---|---|
IviCDriverException | The NI-Digital Pattern Driver returned an error. |