DaqSystem 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


Contains methods that access tasks, scales, and global channels stored in Measurement Automation Explorer (MAX), performs immediate operations on DAQ hardware, and creates classes from which you can get information about the hardware.

Namespace: NationalInstruments.DAQmx

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

Syntax

Visual Basic (Declaration)
<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, UnmanagedCode := True)> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode := True)> _
Public Class DaqSystem _
	Inherits MarshalByRefObject _
	Implements ISynchronizeCallbacks, ISupportSynchronizationContext

C#
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, UnmanagedCode = true)]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode = true)]
public class DaqSystem : MarshalByRefObject, ISynchronizeCallbacks, 
	ISupportSynchronizationContext

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 DaqSystem class to get information about an NI-DAQmx system or perform operations on an NI-DAQmx system. You cannot instantiate the DaqSystem class directly, instead, use the static DaqSystem.Local property to retrieve an instance of the DaqSystem class. The DaqSystem class contains methods and properties that you can use to determine information about an NI-DAQmx system. For example, the following code displays all of the NI-DAQmx tasks that are stored in Measurement Automation Explorer (MAX):

Examples

CopyVB.NET
'Print the name of each task saved in MAX to the console 
For Each taskName As string In DaqSystem.Local.Tasks
Console.WriteLine(taskName)
Next
CopyC#
//Print the name of each task saved in MAX to the console 
foreach (string taskName in DaqSystem.Local.Tasks)
{
Console.WriteLine(taskName);
}

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    NationalInstruments.DAQmx.DaqSystem

Thread Safety

All members of this type are safe for multithreaded operations.

See Also

Reference

DaqSystem Members

NationalInstruments.DAQmx Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful