Chapter 3
Analog Output Timing/Control
DAQ-STC Technical Reference Manual
3-26
©
National Instruments Corporation
Else
{
AO_Continuous = 0 (AO will stop on BC_TC) or 1 (AO will continue until END
command);
AO_BC_Initial_Load_Source = 0;
AO_BC_Load_A = number of buffer iterations - 1;
∑
AO_BC_Load = 1;
∑
AO_UC_Initial_Load_Source = 0;
AO_UC_Load_A = number of updates in each buffer;
∑
AO_UC_Load = 1;
∑
AO_UC_Load_A = number of updates in each buffer - 1;
ao_last_load_register
= A;
}
AO_Configuration_End = 1;
End critical section;
}
3.6.1.6 Update Selection
Use this function to select the update event. You can specify an update rate by choosing an
internally generated periodic event.
For waveform staging operation in the internal update mode, we assume that the parameters
for each stage are stored in an array, defined as follows:
ui_new_ticks
/*contains the number of clocks between updates in each MISB*/
Function
AO_Updating
{
Begin critical section;
AO_Configuration_Start = 1;
If (internal UPDATE mode) then
{
AO_BC_Gate_Enable = 0;
AO_UPDATE_Source_Select = 0;
AO_UPDATE_Source_Polarity = 0;
If (UI source is AO_IN_TIMEBASE1) then
{
AO_UI_Source_Select = 0;
AO_UI_Source_Polarity = 0;
}
Else if (UI source is IN_TIMEBASE2) then
{