ScopeDriverUtility.ImportAttributeConfigurationBuffer Method
- Updated2023-09-06
- 2 minute(s) read
ScopeDriverUtilityImportAttributeConfigurationBuffer Method
Imports the attribute configuration to the session from the Byte array configuration.
Namespace: NationalInstruments.ModularInstruments.NIScope
Assembly: NationalInstruments.ModularInstruments.NIScope.Fx45 (in NationalInstruments.ModularInstruments.NIScope.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 attribute configuration to import.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The ImportAttributeConfigurationBuffer(Byte) method was called after the associated NIScope object was disposed. |
NullReferenceException | The buffer or its underlying data have been disposed |
IviCDriverException | The underlying NI-SCOPE driver returned an error. |
Remarks
You can export and import session attribute configurations only between devices with identical model numbers, channel counts, and onboard memory sizes and between NI-SCOPE sessions with the same number of initialized channels.
When importing and exporting configurations between NI-SCOPE sessions that were both initialized with multiple instruments, the configurations of the exporting instruments are mapped to the importing instruments in the order you specify in the "resourceName" input to the NIScope constructor.
For example, if your entry for "resourceName" is "PXI1Slot1,PXI1Slot2" for the exporting session and "PXI2Slot2,PXI2Slot3" for the importing session:
![]() |
---|
You cannot call this method while the session is in a running state, such as while acquiring a signal. |
- The configuration exported from PXI1Slot1 is imported into PXI2Slot2.
- The configuration exported from PXI1Slot2 is imported into PXI2Slot3.
![]() |
---|
NI-SCOPE 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. |