Chapter 4
Programming
©
National Instruments Corporation
4-41
Joint_Reset_Register
AO configuration start = 0;
AO configuration end = 1;
3.
Call
Kick_Start_FIFO
to initialize the virtual FIFO boards.
if (VirtualFIFO)
AO_DAC_FIFO_Data = 0;
4.
Call
AO_Arming
to arm the counters and preload the DAC with the
first analog output value.
AO_Mode_3_Register
AO not an UPDATE = 1;
AO_Mode_3_Register
AO not an UPDATE = 0;
if (!VirtualFIFO)
Wait until DACs have been preloaded.
AO_Command_1_Register = 0x554;
5.
Program the DAQ-STC to generate interrupts on the FIFO condition.
Interrupt_B_Enable_Register
AO FIFO interrupt enable = 1;
Interrupt_Control_Register
Interrupt B output select = IRQ number;
Interrupt B enable = 1;
6.
Install the interrupt service routine to handle the interrupt.
service_interrupt()
Do
{
If (AO FIFO not full) {
AO_DAC_FIFO_Data = data;
increment data index counter;
}
} while (AO FIFO not full && total point have not been written)
7.
Call
AO_Start_The_Acquisition
to pulse the software START1
trigger.
AO_Command_2_Register
AO START1 pulse = 1;
8.
Poll the AO FIFO half full flag in the AO_Status_1_Register until half
full and call the ISR.
If (AO FIFO half full) then
call
service_interrupt
;
Содержание AT-AI-16XE-10
Страница 131: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 2 National Instruments Corporation...
Страница 132: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 3 AT MIO E Series RLPM...
Страница 133: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 4 National Instruments Corporation...
Страница 134: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 5 AT MIO E Series RLPM...
Страница 135: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 6 National Instruments Corporation...
Страница 136: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 7 AT MIO E Series RLPM...
Страница 137: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 8 National Instruments Corporation...
Страница 138: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 9 AT MIO E Series RLPM...
Страница 139: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 10 National Instruments Corporation...
Страница 140: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 11 AT MIO E Series RLPM...
Страница 141: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 12 National Instruments Corporation...
Страница 142: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 13 AT MIO E Series RLPM...
Страница 143: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 14 National Instruments Corporation...
Страница 144: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 15 AT MIO E Series RLPM...
Страница 145: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 16 National Instruments Corporation...
Страница 146: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 17 AT MIO E Series RLPM...