Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Example: Using putdata

The example below illustrates how you can use putdata to queue 8000 samples, and then output the data a total of five times using the RepeatOutput property.

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

Configuration: Add one channel to AO, define an output time of one second, assign values to the basic setup properties, generate data to be queued, and issue two putdata calls. Since five triggers and two putdata calls are issued, a total of ten seconds of data is output.

Execution: Display summary information, start AO, and wait for the device object to stop running.

Termination: Delete AO.



[ Previous | Help Desk | Next ]