Table Of Contents

Initialize With Channels (G Dataflow)

Last Modified: April 2, 2018

Creates and returns a new NI-DCPower session that is used in all subsequent NI-DCPower node calls to a specified power supply or SMU.

connector_pane_image
datatype_icon

resource name

Resource name of the device to initialize. IVI logical names can be valid resource names.

Assigning Resource Name

Assign the resource name in Measurement & Automation Explorer (MAX).

Resource Name Example

PXI1Slot3, where PXI1Slot3 is an instrument resource name.

datatype_icon

channels

Output channel(s) included in the newly created session.

Channel String Syntax

You can input channels with the following options:
  • A single channel, such a 0
  • A list of channels, such as 0,1 or 3,2,1,0.
  • A range of channels, such as 0-7 or 0:7.
spd-note-note
Note  

The order of channels in a list is important. The data for each channel is returned in the order the channels occur in the list.

Channels Included by Default

If you do not wire this parameter, by default all channels on the device are included in the session.

datatype_icon

reset

Boolean value that specifies whether to reset the power supply or SMU during the initialization procedure.

True Power supply or SMU resets during initialization procedure.
False Power supply or SMU does not reset during initialization procedure.

Placing the Device in a Known Startup State

To place the device in a known startup state when creating a new session, set reset to True. This action is equivalent to using the Reset node immediately after initializing the session.

Leaving the Device in an Existing Configuration

To open a session and leave the device in its existing configuration without passing through a transitional output state, set reset to False. Next, configure the device as in the previous session, change the desired settings, and then call the Initiate node to write both settings.

Default: False

datatype_icon

option string

The initial value of certain properties for the session.

You do not have to specify a value for all the properties. If you do not specify a value for a property, the default value is used.

Option String Syntax

The syntax for option string is a list of properties with an assigned value where 1 is True and 0 is False.

For example: Simulate=0, DriverSetup=Model:<model number>; BoardType:<type>

datatype_icon

error in

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

session out

Handle used to identify the session in all subsequent NI-DCPower node calls.

datatype_icon

error out

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Initial State

With this node, you can optionally set the initial state of the following session properties: Simulate and Driver Setup. After calling this node, the session will be in the Uncommitted state.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics