Chapter 3
Analog Output Timing/Control
©
National Instruments Corporation
3-31
DAQ-STC Technical Reference Manual
∑
AO_Not_An_UPDATE = 0;
∑
While AO_TMRDACWRs_In_Progress_St = 1 do
{
No-op;
}
AO_UI_Arm = 1;
/*You must set these three bitfields in a single write*/
AO_UC_Arm = 1;
AO_BC_Arm = 1;
End critical section;
}
3.6.1.13 Starting the Waveform
Use the following function to initiate an analog output operation if you have selected software
trigger. If you do not select software trigger, this function does not do anything.
Function
AO_Start_The_Generation
{
Begin critical section;
If (software trigger) then
{
AO_START1_Pulse = 1;
}
End critical section;
}
3.6.1.14 Primary Analog Output Program
Use the following sequence of functions to program the AOTM for any primary analog output
operation. If you have data FIFO on your board, you should transfer data into that FIFO.
{
/*Refer to section 10.8.1, Programming Clock Distribution, to set up your timebase*/
Call
AO_Reset_All
;
Call
AO_Board_Personalize
;
Call
AO_Hardware_Gating
;
Call
AO_Triggering
;
Call
AO_Counting
;
Call
AO_Updating
;
Call
AO_Channels
;
Call
AO_LDAC_Source_And_Update_Mode
;
Call
AO_Errors_To_Stop_On
;
Call
AO_FIFO
;
Call
AO_Interrupt_Install
;