DCPowerDriverUtility.ImportAttributeConfigurationBuffer Method
- Updated2024-01-04
- 2 minute(s) read

DCPowerDriverUtilityImportAttributeConfigurationBuffer Method
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public void ImportAttributeConfigurationBuffer( byte[] configuration )
Public Sub ImportAttributeConfigurationBuffer ( configuration As Byte() )
Parameters
- configuration
- Type: SystemByte
The Byte array that contains the configuration to import.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The method was called with a null configuration array. |
ObjectDisposedException | The ImportAttributeConfigurationBuffer(Byte) method was called after the associated NIDCPower object was disposed. |
IviCDriverException | The underlying NI-DCPower driver returned an error. |
Remarks
![]() |
---|
You cannot call this method while the session is in the Running state. |
Supported Configurations
You can export and import the following configurations between NI-DCPower sessions:- 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.