Writes MicroDAQ analog outputs (AO)
This block writes MicroDAQ analog outputs. Block detects and configures MicroDAQ analog outputs. Block allows channel and range selection. User can set different initial and termination voltage values.
This block can be used in host simulation mode and for code generation.
Scalar or vector containing channel numbers.
Properties : Type int, Range - depending on DAC converter 1..4, 1..8 or 1..16.
The range parameter specifies channel measurement 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(). Range matrix - single row matrix e.g. [-10,10] sets -10 to 10V output range which will be used for all channels. If multi-range used, row number must match selected channels e.g. range matrix for 3 channels [-10,10; -5,5; -2,2]
The initial value vector contains the initial voltage values for the output channels. Provided scalar or a vector has to have the same length as the channel vector. If scalar value is specified, that value is replicated as the initial value over the channel vector. The channels are set to the initial values between the time the model is downloaded and the time it is started.
The Terminate value vector controls the behavior of the channel at model termination. Provided scalar or a vector has to have the same length as the channel vector. If scalar value is specified, that setting is replicated over the channel vector.
Use Init/Term parameter allows to enable or disable setting initial or/and termination voltage values. User can provide scalar or vector with following values:
0 - Initial and termination voltage value is ignored
1 - Initial voltage value is used
2 - Termination voltage value is used
3 - Initial and termination voltage value is used
input(1) - AO voltage value (scalar or vector)