Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Execution

Execution is divided into three main categories:

These categories are discussed below.

Starting

You start a device object with the start command

When a start command is issued, the Data Acquisition Toolbox enters the running state. This means that both the hardware device and data acquisition engine are executing according to the configured properties. Once a trigger occurs, data logging to memory and/or a disk file is initiated for an analog input object, while data output is initiated for analog output objects.

Previewing, Acquiring, or Sending Data

While the device object and data acquisition engine are running, you can preview, acquire (for analog input), or send (for analog output) data. These topics are discussed below.

Preview or Acquire Data.    For analog input objects, data can be previewed with the peekdata function. peekdata takes a "snapshot" of the most recent data but does not remove data from the engine. For example, to preview the most recent 500 samples

Since previewing data is usually not a high priority task, peekdata does not guarantee that all requested data is returned. You can preview data any time after the trigger occurs as long as the object is running.

Data can also be extracted from the data acquisition engine with the getdata function. For example, to extract 500 samples from the engine

getdata blocks execution control until all the requested data is returned. You can extract data any time after the trigger occurs.

Send Data.    For analog output objects, data can be queued in the engine for output to an analog output (D/A) hardware device with the putdata function. For example, to queue 500 samples to the engine

You can queue data either before or after start is issued. Queued data can be output only after the trigger occurs.

Stopping

A device object can stop under one of these conditions:

When the device object stops, both the hardware device and data acquisition engine leave the "running" state and enter the "not running" state. At this point you can reconfigure your acquisition, or immediately issue another start command using the current configuration.



[ Previous | Help Desk | Next ]