Chapter 4
Programming
4-36
©
National Instruments Corporation
AO_Trigger_Select_Register
AO START1 select = 0;
AO START1 polarity = 0;
AO START1 edge = 1;
AO START1 sync = 1;
AO_Mode_3_Register
AO trigger length = 0;
Joint_Reset_Register
AO configuration start = 0;
AO configuration end = 1;
10. 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 4 (output the
buffer 5 times). Load the UC counter with 3000 (the first buffer
contains 3000 points). Write 2999 to UC Load Register A (each
subsequent buffer contains 3000 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 = 4;
AO_Command_1_Register
AO BC load =1;
AO_Mode_2_Register
AO UC initial load source = 0;
AO_UC_Load_A_Registers (24 bits)
Points per buffer = 3000;
AO_Command_1_Register
AO UC load = 1;
AO_UC_Load_A_Registers (24 bits)
Points per buffer - 1 = 2999;
Joint_Reset_Register
AO configuration start = 0;
AO configuration end = 1;
11. Call
AO_Updating
to program the update interval. Use the internal
UPDATE mode. Set the UI source to AO_IN_TIMEBASE1. Load the