Import Attribute Configuration Buffer
- Updated2023-05-15
- 3 minute(s) read
Import Attribute Configuration Buffer
Imports a configuration to the session from the specified buffer.
Inputs/Outputs

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

buffer
Byte array that contains the configuration to import.

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

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

error out
Error information.
The node produces this output according to standard error behavior.
Programming Patterns
You cannot call this node while the session is in the Running/Generating state.
Supported Configurations
You can export and import the following configurations between NI-FGEN sessions:
- Attribute configurations
- Arbitrary waveforms
Requirements for Exporting and Importing Arbitrary Waveforms
Arbitrary waveforms you export and import between sessions using this node must meet the following criteria:
- All waveforms in the exporting session are created from files, other than HWS files, using the Create Waveform node
- The full file path of the file containing the arbitrary waveform still exists at the time of import
- All waveforms are defined using handles rather than names
- All waveforms are complete—none are streamed or incrementally written
You can set the device mode with the Configure Output Mode node.
Channel Mapping Behavior
When exporting and importing configurations between NI-FGEN sessions that were initialized with different channels using the channel name input to the Initialize With Channels node, the configuration of the exporting channel is mapped to the importing channel.
For example, if your entry for channel name is 0 for the exporting session and 1 for the importing session, the configuration exported from channel 0 is imported into channel 1.