this[string name]
- Updated2025-10-06
- 1 minute(s) read
Gets a DCPowerInstrument with the specified name.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public DCPowerInstrument this[string name] { get; }
Remarks
Returns the DCPowerInstrument corresponding to the specified name.
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.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The name of the instrument. Use empty string to specify all instruments in the session. |