Device Class

NI-DAQmx 17.1 .NET Class Library Help

Edition Date: June 2017

Part Number: 370473J-01

»View Product Info
Download Help (Windows Only)

Members Example See Also


Encapsulates a DAQ device and contains methods and properties that operate on devices outside the context of a task.

Namespace: NationalInstruments.DAQmx

Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 17.1.40.99

Syntax

Visual Basic (Declaration)
Public Class Device _
	Inherits MarshalByRefObject _
	Implements IDisposable

C#
public class Device : MarshalByRefObject, IDisposable

Remarks

Note:Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples.
You can use the Device class to perform operations on an NI-DAQmx device. You cannot instantiate the Device class directly. Instead, use the LoadDevice method to obtain an instance of the Device class. For example, you can self-calibrate an NI-DAQmx device with the Device class.

Examples

CopyVB.NET
Dim dev as Device
dev = DaqSystem.Local.LoadDevice("dev1")
dev.SelfCalibrate()
CopyC#
Device dev = DaqSystem.Local.LoadDevice("dev1");
dev.SelfCalibrate();

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    NationalInstruments.DAQmx.Device

Thread Safety

All members of this type are safe for multithreaded operations.

See Also

Reference

Device Members

NationalInstruments.DAQmx Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful