NI-Digital Pattern Driver .NET Class Library

Table of Contents

NIDigital Constructor (String, Boolean, Boolean, String)

  • Updated2023-11-24
  • 2 minute(s) read
NIDigital Constructor (String, Boolean, Boolean, String)

NIDigital Constructor (String, Boolean, Boolean, String)

Initializes a new instance of the NIDigital class. This overload is reserved for future use.

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,
	string optionString
)
Public Sub New ( 
	resourceName As String,
	idQuery As Boolean,
	reset As Boolean,
	optionString As String
)

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.
optionString
Type: SystemString
A list of initial values of certain attributes for the session. Pass String.Empty for the default behavior. You can use the DriverSetup flag to simulate a digital pattern instrument. When simulating a digital pattern instrument, you must specify the model you want to simulate. For example, Simulate = 1, DriverSetup = Model:6570.

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.

Remarks

The recommended constructor overload is NIDigital(string resourceName, bool idQuery, bool reset).

See Also

Log in to get a better experience