Creates and returns a new NI-FGEN session to the specified channel of a waveform generator that is used in all subsequent NI-FGEN calls.
Optionally sets the initial state of session properties Range Check, Cache, Simulate, Query Instrument Status, and Record Coercions.
Initial values of certain session properties.
If you do not specify one of these properties, the default value is used.
Property Name | Property Defined Constant |
---|---|
Simulate | Instrument:Inherent IVI Attributes:User Options:Simulate |
RangeCheck | Instrument:Inherent IVI Attributes:User Options:Range Check |
Cache | Instrument:Inherent IVI Attributes:User Options:Cache |
QueryInstrStatus | Instrument:Inherent IVI Attributes:User Options:Query Instrument Status |
option string Syntax
option string uses the following syntax: attributeName=value
where attributeName is the name of the attribute, and value is the value to which the attribute is set.
To set multiple properties, separate them with a comma.
If simulation is enabled (Simulate=1), you can specify the waveform generator that you want to simulate by entering the following syntax in option string:
DriverSetup=Model:< driver model number >;BoardType:< module type >;MemorySize:< size of onboard memory in bytes >
When you configure multichannel waveform generators, option string specifies which channels to initialize. Valid values include channel ranges (for example, "Channels:0-1") and individual channels (for example, "Channels:1").
Waveform Generator Model | option string Syntax |
---|---|
PXI-5404 | Simulate=1,DriverSetup=Model:5404;BoardType:PXI |
PCI-5421 | Simulate=1,DriverSetup=Model:5421;BoardType:PCI;MemorySize:268435456 |
PXIe-5450 | Simulate=1,DriverSetup=Model:5450;Channels:0-1;BoardType:PXIe;MemorySize:268435456 |
Default: Simulate = False (0), RangeCheck = True (1), Cache = True (1), QueryInstrStatus = True (1)
The instrument name. For example, "PXI1Slot3," where "PXI1Slot3" is an instrument name assigned by Measurement & Automation Explorer (MAX).
You can wire in the name of an IVI logical name or an IVI virtual name configured with the IVI Configuration utility. A logical name identifies a particular virtual instrument. A virtual name identifies a specific instrument and specifies the initial settings for the session.
All IVI names, such as logical names, are case-sensitive. If you use logical names, driver session names, or virtual names in your program, you must ensure that the name you use matches the name in the IVI Configuration Store file exactly, without any variations in the case of the characters.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Name of the waveform generator channel that the node uses.
Reference to your instrument session to wire to the next node.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application