Documentation Center

  • Trial Software
  • Product Updates

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 may 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?