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.

IsLogging

Indicate if hardware is acquiring or generating data

Description

The read-only IsLogging property indicates if the hardware is actively acquiring or generating data.

Tip

  • IsRunning indicates the session has started, but the hardware might not be acquiring or generating data. It is still true while the hardware is waiting for a trigger, and while transferring data in the process of stopping.

  • IsLogging indicates the hardware is actively acquiring or generating data.

  • IsDone indicates the session object has completed its operation, including all necessary transfer of data.

Values

true

Value is logical 1 (true) if the device is acquiring or generating data.

false

Value is logical 0 (false) if the device is not acquiring or generating data.

Examples

Create and start a session.

s = daq.createSession('ni');
addAnalogOutputChannel(s,'cDAQ1Mod2','ao1','Voltage');
s.queueOutputData(linspace(-1,1,1000)');
startBackground(s);
s.IsRunning
ans =

     1

The session is running, so check for device logging.

s.IsLogging
ans =

     0

This result might indicate that the device is waiting for an external trigger. After triggering, wait until logging is complete.

wait(s)
s.IsDone
ans =

     1

See Also

Properties

Functions

Was this topic helpful?