NIFgen Constructor (String, Boolean, Boolean, String)

NI Signal Generators Help (NI-FGEN 18.1)

Edition Date: April 2018

Part Number: 370524V-01

»View Product Info
Download Help (Windows Only)

NIFgen Class See Also


Initializes a new instance of the NIFgen class.

Namespace: NationalInstruments.ModularInstruments.NIFgen

Assembly: NationalInstruments.ModularInstruments.NIFgen.Fx40 (in NationalInstruments.ModularInstruments.NIFgen.Fx40.dll) Version: 18.1.0.4 (18.1.0.4)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	resourceName As String, _
	idQuery As Boolean, _
	reset As Boolean, _
	optionString As String _
)

C#
public NIFgen(
	string resourceName,
	bool idQuery,
	bool reset,
	string optionString
)

Parameters

resourceName
Type: System..::.String
The resource name assigned by Measurement Automation Explorer (MAX) to a signal generator instrument; for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name. The resourceName can also be a logical IVI name.
idQuery
Type: System..::.Boolean
true (True in Visual Basic) to verify that the instrument you initialize is supported by the NI-FGEN driver software. The NI-FGEN driver performs verification regardless of the value of this parameter.
reset
Type: System..::.Boolean
true (True in Visual Basic) to reset the signal generator instrument to a known state when the session is initialized.
optionString
Type: System..::.String
A list of initial values of certain attributes for the session. Pass String.Empty for the default behavior. Default Values: "Simulate=0,RangeCheck=1,Cache=1".
DeviceoptionString Syntax
NI PXI-5404 DriverSetup=Model:5404;BoardType:PXI
NI PCI-5411 DriverSetup=Model:5411;BoardType:PCI;MemorySize:8000000
NI PXIe-5450 DriverSetup=Model:5450;Channels:0-1;BoardType:PXIe;MemorySize:8000000

Exceptions

ExceptionCondition
Ivi.Driver.IviCDriverException The underlying NI-FGEN driver returned an error.
ArgumentException The value for resourceName is invalid.

- or -

The value for optionString is invalid.

See Also

Reference

NIFgen Class

NationalInstruments.ModularInstruments.NIFgen Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful