Defines a root class that is used to identify and control the instrument session.

Derives from

  • IIviDCPwr
  • IIviDriver
  • IServiceProvider
  • IDisposable

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDCPower

public class NIDCPower : IIviDCPwr, IIviDriver, IServiceProvider, IDisposable

Remarks

All properties, methods, and events fall under either the NIDCPower class or are the sub-objects of this class. To interact with the NI-DCPower, you must create an instance of this class.

Thread Safety

All members of this type are safe for multithreaded operations.

Constructors

NameDescription
NIDCPower(string, bool, bool)

[IviDCPwr] Creates a new instrument driver session.

NIDCPower(string, bool, bool, string)

[IviDCPwr] Creates a new instrument driver session and sets the initial state of session properties.

NIDCPower(string, string, bool)

[Deprecated] Creates a new instrument driver session and sets the initial state of session properties.

NIDCPower(IntPtr)

Creates a new instrument driver session from an existing instrument handle.

NIDCPower(string, bool, string)

Creates a new NI-DCPower session with independent channels to the specified instrument(s) and channel(s).

NIDCPower(string, string, bool, string)

[Deprecated] Creates a new instrument driver session and sets the initial state of session properties.

Properties

NameDescription
Advanced

Gets the DCPowerAdvanced sub-object that provides advanced properties of NI-DCPower.

Calibration

Gets the DCPowerCalibration sub-object that allows calibration of NI-DCPower.

Control

Gets the DCPowerControl sub-object that provides methods to control the programming state of NI-DCPower.

Events

Gets the DCPowerEvents sub-object to configure NI-DCPower events.

Instruments

Gets the DCPowerInstrumentCollection sub-object that represents a NI-DCPower channel.

IsDisposed

Gets a value that indicates whether the session has been disposed.

Measurement

Gets the DCPowerMeasurement sub-object that represents properties related to all measurement unit channels in session.

Outputs

Gets the DCPowerOutputCollection sub-object that represents a NI-DCPower channel.

Source

Gets the DCPowerSource sub-object that represents properties related to all source unit channels in session.

Triggers

Gets the DCPowerTriggers sub-object that is used to configure NI-DCPower triggers.

Methods

NameDescription
Close()

Closes the session to the instrument and deallocates the resources that NI-DCPower reserved.

Dispose()

Closes the specified session and deallocates the reserved resources, if not already disposed.

ExportSignal(string, DCPowerSignalSource, string)

Routes trigger and event signals to the output terminal you specify. The route is created when the session is committed.

ExportSignal(DCPowerSignalSource, string)

Routes trigger and event signals to the output terminal you specify. The route is created when the session is committed.

GetInstrumentHandle()

Gets the System.Runtime.InteropServices.SafeHandle to the NIDCPower instrument session.

GetService(Type)

Gets the service object of the specified type.