Table Of Contents

Export Attribute Configuration (Export Attribute Configuration Buffer) (G Dataflow)

Last Modified: April 2, 2018

Exports the attribute configuration of the session to a buffer.

spd-note-note
Note  

You can export and import session attribute configurations only between NI-DCPower devices with identical model numbers and the same number of initialized channels.

This node verifies that the attributes you have configured for the session are valid. If the configuration is invalid, this node returns an error.

connector_pane_image
datatype_icon

session in

Handle that identifies the NI-DCPower instrument session as previously allocated by Initialize With Channels.

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

Reference to the NI-DCPower instrument session to pass to the next node in the program.

datatype_icon

buffer

Byte array that contains the exported attribute configuration.

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.

Channel Mapping Behavior for Multichannel Sessions

When importing and exporting session attribute configurations between NI-DCPower sessions that were initialized with different channels, the configurations of the exporting channels are mapped to the importing channels in the order you specify in the channels input to the Initialize With Channels node for each session.

For example, if your entry for channels is 0,1 for the exporting session and 1,2 for the importing session:

  • The configuration exported from channel 0 is imported into channel 1.
  • The configuration exported from channel 1 is imported into channel 2.
spd-note-note
Note  

This node will return an error if the total number of channels initialized for the exporting session is not equal to the total number of channels initialized for the importing session.

Unsupported in Sequence Source Mode

Importing and exporting attribute configurations in Sequence Source Mode is unsupported.

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