ExportAttributeConfigurationBuffer()
- Updated2025-10-06
- 1 minute(s) read
Exports a session configuration to a System.Byte array buffer.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public byte[] ExportAttributeConfigurationBuffer()
Remarks
You can export and import supported configurations only between NI-DCPower devices with identical model numbers and the same number of initialized channels.
This method verifies that the attributes you have configured for the session are valid. If the configuration is invalid, NI-DCPower returns an Ivi.Driver.IviCDriverException.
Supported Configurations
Attribute configurations
Advanced sequences
Support for this Method
You must set the source mode to Sequence in order to configure or export and import advanced sequences.
Configuration exports from sessions created with the independent channel NIDCPower constructor cannot be imported into sessions created with deprecated NIDCPower constructors.
Exporting and importing simple sequences between sessions in Sequence source mode is unsupported.
Channel Mapping Behavior
When importing and exporting configurations between NI-DCPower sessions that were initialized with different channels, the configurations of the exporting channels are mapped to the importing channels based on the order you specify in the resourceName input to the independent channel NIDCPower constructor.
Refer to Import/Export Attribute Configuration Mapping Behavior in the NI DC Power Supplies and SMUs Help for details.
Returns
Returns a System.Byte array that contains the exported configuration.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The ExportAttributeConfigurationBuffer method was called after the associated NIDCPower object was disposed. |
| Ivi.Driver.IviCDriverException | The underlying NI-DCPower driver returned an error. |