<< mdaqAOScanStop Data acquisition mdaqDIORead >>

MicroDAQ toolbox >> MicroDAQ toolbox > Data acquisition > mdaqAOWrite

mdaqAOWrite

Writes analog outputs

Calling Sequence

mdaqAOWrite(channels, range, data)
mdaqAOWrite(linkID, channels, range, data)

Description

This function writes MicroDAQ analog outputs. The channels argument can be a scalar or vector and it should contain channels numbers according to MicroDAQ hardware configuration. The range argument specifies channel output range. Matrix n-by-2 where n is number of used channels shall be provided. If 1x2 matrix is provided, the range setting will be used for all channels. In order to obtain supported ranges use mdaqHWInfo().

Input arguments

Examples

Calling function without linkID

// set 1, 2, 3, 4V on 1, 2, 3, 4 channel with range 0 to 5V
mdaqAOWrite([1, 2, 3, 4], [0,5], [1, 2, 3, 4]);

Calling function with linkID for shorter access time

linkID = mdaqOpen();
// set 1, 2, 3, 4V on 1, 2, 3, 4 channel with range 0 to 5V
mdaqAOWrite(linkID, [1, 2, 3, 4], [0,5], [1, 2, 3, 4]);
mdaqClose(linkID);

See Also


Report an issue
<< mdaqAOScanStop Data acquisition mdaqDIORead >>