ScopeDriverUtility.ExportAttributeConfigurationBuffer Method
- Updated2023-09-06
- 2 minute(s) read
ScopeDriverUtilityExportAttributeConfigurationBuffer Method
Exports the attribute configuration of the session to a Byte array buffer.
Namespace: NationalInstruments.ModularInstruments.NIScope
Assembly: NationalInstruments.ModularInstruments.NIScope.Fx45 (in NationalInstruments.ModularInstruments.NIScope.Fx45.dll) Version: 2023
Syntax
public byte[] ExportAttributeConfigurationBuffer()
Public Function ExportAttributeConfigurationBuffer As Byte()
Return Value
Type: ByteReturns a Byte array populated with the exported attribute configuration.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | The ExportAttributeConfigurationBuffer method was called after the associated NIScope object was 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.
This method verifies that the attributes you have configured for the session are valid. If the configuration is invalid, NI-SCOPE returns an error.
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:
- 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. |