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.

ScansAcquired

Number of scans acquired during operation

Description

In the session-based interface, the ScansAcquired property displays the number of scans acquired after you start the operation using startBackground.

Values

The read-only value represents the number of scans acquired by the hardware. This value is reset each time you call startBackground.

Example

Display Number of Scans Acquired

Acquire analog input data and display the number of scans acquired.

Create a session, add an analog input channel,

s = daq.createSession('ni');
ch = addAnalogInputChannel(s,'Dev1','ai1','voltage');

See how many scan the session had acquired.

s.ScansAcquired
ans =

                    0

Start the acquisition and see how many scans the session has acquired

startForeground(s);
s.ScansAcquired
ans =

                 1000
Was this topic helpful?