<< mdaqAOScanStop Data acquisition mdaqDIOFunc >>

MicroDAQ Support Package for Matlab/Simulink >> MicroDAQ Support Package for Matlab/Simulink > Data acquisition > mdaqAOWrite

mdaqAOWrite

Writes analog outputs

Calling Sequence

mdaqAOWrite(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.

Input arguments

Examples

Set 1, 2, 3, 4V on 1, 2, 3, 4 channel with range 0 to 5V

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

See Also


Report an issue
<< mdaqAOScanStop Data acquisition mdaqDIOFunc >>