Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Hardware Discovery and Session Setup

Set up a session, find and connect to specified devices, configure data

Functions

daq.createSession Create data acquisition session for specific vendor hardware
daq.getDevices Display available data acquisition devices
daq.getVendors Display available vendors
release Release session resources
prepare Prepare session for operation
daqreset Reset Data Acquisition Toolbox

Properties

AutoSyncDSA Automatically Synchronize DSA devices
NumberOfScans Number of scans for operation when starting
DurationInSeconds Specify duration of acquisition
Rate Rate of operation in scans per second
IsContinuous Specify if operation continues until manually stopped
RateLimit Limit of rate of operation based on hardware configuration
ScansQueued Indicate number of scans queued for output
ScansOutputByHardware Indicate number of scans output by hardware
ScansAcquired Number of scans acquired during operation
EnhancedAliasRejectionEnable Set enhanced alias rejection mode
UseStandardSampleRate Configure session to use standard sample rates
StandardSampleRates Display standard rates of sampling
BitsPerSample Display bits per sample
NotifyWhenDataAvailableExceeds Control firing of DataAvailable event
IsNotifyWhenDataAvailableExceedsAuto Control if NotifyWhenDataAvailableExceeds is set automatically
NotifyWhenScansQueuedBelow Control firing of DataRequired event
IsNotifyWhenScansQueuedBelowAuto Control if NotifyWhenScansQueuedBelow is set automatically
ExternalTriggerTimeout Indicate if external trigger timed out
TriggersPerRun Indicate the number of times the trigger executes in an operation
Vendor Vendor information associated with session object
Channels Array of channel objects associated with session object
Connections Array of connections in session
IsRunning Indicate if operation is still in progress
IsLogging Indicate if hardware is acquiring or generating data
IsDone Indicate if operation is complete
IsWaitingForExternalTrigger Indicates if synchronization is waiting for an external trigger
TriggersRemaining Indicates the number of trigger to execute in an operation

Examples and How To

Discover Hardware Devices

This example shows how to discover devices on your system.

Create a Session

This example shows how to create a session and add channels to the session and use the session to acquire and generate data.

Transition Your Code to Session-Based Interface

This topic helps you transition your code from the legacy interface to the session-based interface.

Concepts

Data Acquisition Session

Workflow for acquiring and sending data via a session.

About the Session-Based Interface

A session is the interface that provides communication between the toolbox and your data acquisition device.

Was this topic helpful?