Initialize With Channels
- Updated2023-05-15
- 3 minute(s) read
Initialize With Channels
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.
Inputs/Outputs

option string
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 |
Default value: Simulate = False (0), RangeCheck = True (1), Cache = True (1), QueryInstrStatus = True (1)
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 |

resource name
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 in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

channel name
Name of the waveform generator channel that the node uses.

reset device
Boolean value that specifies whether or not to reset the waveform generator during the initialization procedure.
| True | The waveform generator resets to a known state. |
| False | The waveform generator does not reset. |
This input performs the same function as Reset.
Default value: False

session out
Reference to your instrument session to wire to the next node.

error out
Error information.
The node produces this output according to standard error behavior.