Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

The Data Acquisition Session

The data acquisition session encompasses all actions you must take to perform the necessary tasks for your data acquisition application. A typical data acquisition session consists of these steps:

   1.
Initialization
   2.
Configuration
   3.
Execution
   4.
Termination
The example code below shows the basic steps you will take during a data acquisition session using an analog input device.

Initialization: Create the analog input object AI for a sound card. The installed adaptors and hardware ID's are found with daqhwinfo.

Configuration: Add two channels to AI, define a two second acquisition, and assign values for the basic setup properties. The actual sampling rate is retrieved since it may be set to a value that differs from the specified value.

Execution: Start AI, wait until AI stops running, and extract all data from the engine. Before start is issued, you may want to begin inputting data for a microphone or a CD player.

Termination: Plot the data and delete AI.

Initialization, configuration, execution, and termination are discussed in more detail below.



[ Previous | Help Desk | Next ]