Specify value held by analog output subsystem
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
DefaultChannelValue specifies the value to
write to the analog output (AO) subsystem when data is finished being
output from the engine.
DefaultChannelValue is used only when
DefaultValue. This property guarantees that
a known value is held by the AO subsystem if a run-time error occurs.
Note that sound cards do not have an
AO, per channel
Read-only when running
The default value is zero.
Create the analog output object
ao and add
two channels to it.
ao = analogoutput('nidaq','Dev1'); addchannel(ao,0:1);
You can configure
ao so that when it stops
outputting data, a value of 1 volt is held for both channels.
ao.OutOfDataMode = 'DefaultValue'; ao.Channel.DefaultChannelValue = 1.0;