Data Acquisition Toolbox | ![]() ![]() |
Specify how the value held by the analog output subsystem is determined
Description
When queued data is output to the analog output (AO) subsystem, the hardware typically holds a value. For National Instruments and ComputerBoards devices, the value held is determined by OutOfDataMode
.
OutOfDataMode
can be Hold
or DefaultValue
. If OutOfDataMode
is Hold
, then the last value output is held by the AO subsystem. If OutOfDataMode
is DefaultValue
, then the value specified by the DefaultChannelValue
property is held by the AO subsystem.
Characteristics
Vendor |
National Instruments, ComputerBoards |
Usage |
AO, Common |
Access |
Read/write |
Data type |
String |
Read-only while Running |
Yes |
Values
{Hold} |
Hold the last output value. |
DefaultValue |
Hold the value specified by DefaultChannelValue . |
Example
Create the analog output object ao
and add two channels to it.
ao = analogoutput('nidaq',1);
addchannel(ao,0:1)
;
You can configure ao
so that when queued data is finished being output, a value of 1 volt is held for both channels.
ao.OutOfDataMode = 'DefaultValue';
ao.Channel.DefaultChannelValue = 1.0;
Properties
![]() | NumMuxBoards | RampRate | ![]() |