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

When working with the session-based interface, the status of the read-only IsLogging property indicates if the hardware is acquiring or generating data.

    Tip:   IsLogging indicates that the hardware is acquiring or generating data. IsRunning indicates if the operation is in progress, but the hardware might not be acquiring or generating data. IsDone indicates if the session object has completed acquiring or generating data.

Values

true

Value is true if the device is acquiring or generating data.

false

Value is false if the device is not acquiring or generating data.

Examples

Create a session and see if the operation is logging:

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

     1

Wait until the operation is complete:

wait(s)
s.IsLogging
ans =

     0

See Also

Properties

IsRunning, IsDone

Functions

startBackground

Was this topic helpful?