<< mdaqAOScanWait Data acquisition mdaqAOScanTrigger >>

MicroDAQ toolbox >> MicroDAQ toolbox > Data acquisition > mdaqAOTask

mdaqAOTask

Creates AO task object

Calling Sequence

obj = mdaqAOTask()

Description

This function creates AO task object which gathers all functions used for signal generation on analog outputs. The function does not introduce new functionality, it wraps existing API into an object-like code and allows to write more readable and compact code. In order to get function list which can be used with object display its content.

The following calling convention applies:

Output arguments

Examples

Generate signal on AO1 analog output

ao = mdaqAOTask(); 
ao.init(1, [1 2 3 4 5]', [0, 5], %f, 10, 1);
ao.start();

Start signal generation on AO1 analog output when DIO8 is high.

ao = mdaqAOTask(); 
ao.init(1, [1 2 3 4 5]', [0, 5], %f, 10, 1);
ao.trigger("dioPattern", "xxxxxxx1");
ao.start();

Generate signal on AO1 analog output and wait until signal generation is done

ao = mdaqAOTask(); 
ao.init(1, [1 2 3 4 5]', [0, 5], %f, 10, 1);
ao.start(); 
ao.wait(2);

See Also


Report an issue
<< mdaqAOScanWait Data acquisition mdaqAOScanTrigger >>