Chapter 4
Programming
4-36
©
National Instruments Corporation
18. Call
AO_Start_The_Acquisition
to pulse the software START1
trigger.
AO_Command_2_Register
AO START1 pulse = 1;
19. Poll the AO_FIFO_Full_St bit and write data from the array into the
data FIFO whenever the data FIFO is not full.
while (there is more data to write)
{
while (FIFO is not full)
{
AO_DAC_FIFO_Data = data;
}
}
Example 3
This example generates a waveform using local buffer mode. This example
does not support those boards with virtual analog output FIFOs:
AT-MIO-16E-10, AT-MIO-16DE-10, and AT-MIO-16XE-50.
Initialize the data FIFO with a 100 point buffer. Output the buffer 50 times.
The update interval is 100 microseconds. Confirm operation with an
oscilloscope.
1.
Perform Analog Output Example 2 Steps 1-9.
2.
Call
AO_Counting
to program the buffer size and the number of
buffers. Configure the DAQ-STC for non-continuous operation (AO
will stop on BC_TC). Load the BC counter with 49 (output the buffer
50 times). Load the UC counter with 100 (the first buffer contains 100
points). Write 99 to UC Load Register A (each subsequent buffer
contains 100 points).
Joint_Reset_Register
AO configuration start = 1;
AO_Mode_1_Register
AO continuous = 0;
AO_Mode_2_Register
AO BC initial load source = 0;
AO_BC_Load_A_Registers (24 bits)
Number of buffers -1 = 49;
AO_Command_1_Register
AO BC load =1;
Содержание 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...