DCPowerInstrumentCollection.Item Property
- Updated2024-01-04
- 1 minute(s) read

DCPowerInstrumentCollectionItem Property
Gets a DCPowerInstrument with the specified name.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public DCPowerInstrument this[ string name ] { get; }
Public ReadOnly Default Property Item ( name As String ) As DCPowerInstrument Get
Parameters
- name
- Type: SystemString
The name of the instrument. Use empty string to specify all instruments in the session.
Property Value
Type: DCPowerInstrumentReturns the DCPowerInstrument corresponding to the specified name.
Remarks
In Visual C#, this property is the indexer.
If the instrument name corresponds to an instrument present in the session, the corresponding DCPowerInstrument is returned from the collection.
Otherwise, a new DCPowerInstrument is created with the specified name and returned. The DCPowerInstrument created is not added to the collection.