NIDCPower(string, bool, bool, string)
- Updated2025-10-06
- 1 minute(s) read
[IviDCPwr] Creates a new instrument driver session and sets the initial state of session properties.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public NIDCPower(string resourceName, bool idQuery, bool resetDevice, string optionString)
Remarks
For more information on the format of optionString, refer to the NI DC Power Help.
Parameters
| Name | Type | Description |
|---|---|---|
| resourceName | string | Specifies the name of the device in which the session is opened. |
| idQuery | bool | Specifies whether you want NI-DCPower to perform an ID query. If NI-DCPower performs an ID query, then value of idQuery is true; otherwise false. |
| resetDevice | bool | Specifies whether you want to reset NI-DCPower during the initialization procedure. If the device is reset, then value of resetDevice is true ; otherwise false. |
| optionString | string | Sets the initial state of the following session properties: RangeCheck, QueryInstrumentStatus, Cache, Simulate. |