Products & Services Solutions Academia Support User Community Company

Learn more about Data Acquisition Toolbox   

Evaluating the Analog Input Object Status

Status Properties

The properties associated with the status of your AI object allow you to evaluate

The analog input status properties are given below.

Table 4-4. Analog Input Status Properties

Property Name

Description

Logging

Indicate if data is being logged to memory or to a disk file.

Running

Indicate if the device object is running.

SamplesAcquired

Indicate the number of samples acquired per channel.

SamplesAvailable

Indicate the number of samples available per channel in the data acquisition engine.

When you issue the start function, Running is automatically set to On. When the trigger executes, Logging is automatically set to On and SamplesAcquired keeps a running count of the total number of samples per channel that have been logged to the engine or a disk file. SamplesAvailable tells you how many samples per channel are available to be extracted from the engine with the getdata function.

When the requested number of samples are acquired, SamplesAcquired reflects this number, and both Running and Logging are automatically set to Off. When you extract all the samples from the engine, SamplesAvailable is 0.

The Display Summary

You can invoke the display summary by typing an AI object or a channel object at the MATLAB Command Window, or by excluding the semicolon when

You can also display summary information via the Workspace browser by right-clicking a device object and selecting Explore > Display Summary from the context menu.

The displayed information reflects many of the basic setup properties described in Configuring Analog Input Properties, and is designed so you can quickly evaluate the status of your data acquisition session. The display is divided into two main sections: general information and channel information.

General Summary Information

The general display summary includes the device object type and the hardware device name, followed by this information:

Channel Summary Information

The channel display summary includes property values associated with

The display summary for the example given in Acquiring Data with a Sound Card before start is issued is shown below.

You can use the Channel property to display only the channel summary information.

AI.Channel
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS