Chapter 4
Programming
©
National Instruments Corporation
4-7
Analog input DAQ-STC programming consists of the following functions
which call the
DAQ_STC_Windowed_Mode_Read
and
DAQ_STC_Windowed_Mode_Write
functions:
AI_Initialize_Configuration_Memory_Ouput,
MSC_Clock_Configure,
Clear_FIFO,
AI_Reset_All,
AI_Board_Personalize,
FIFO_Request,
AI_Hardware_Gating,
AI_Trigger_Signals,
Number_of_Scans,
AI_Scan_Start,
AI_End_of_Scan,
Convert_Signal,
AI_Interrupt_Enable,
AI_Arming,
AI_Start_The_Acquisition,
As the analog input examples increase in complexity, more of these
functions will be necessary. The functions will be presented in the
applicable examples; subsequent examples address only the specific
differences from Example 1. This manual provides the structure and
pseudo-code for each example. The AT E Series Register Level
Programmer Manual Companion Disk contains the complete programs.
The following pseudo-code examples and the programs on the Companion
Disk follow the flowchart structure presented in the DAQ-STC Technical
Reference Manual.
Example 1
This example acquires one sample from channel 0.
Connect a voltage source to ACH0 on the I/O connector. Channel 0 should
be configured for bipolar RSE with no dithering. No external multiplexers
are present. Sample analog input channel 0 at a gain of 1 and read the
unscaled result. Compare the unscaled value to the input voltage.
The first two steps set up the E Series board, and the subsequent steps
configure the DAQ-STC.
1.
Set up the Plug and Play resources. Use the function
Setup_PNP_Board
provided on the Companion Disk.
2.
The second step configures the analog channel for the given settings.
Summary of Contents for AT-AI-16XE-10
Page 131: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 2 National Instruments Corporation...
Page 132: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 3 AT MIO E Series RLPM...
Page 133: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 4 National Instruments Corporation...
Page 134: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 5 AT MIO E Series RLPM...
Page 135: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 6 National Instruments Corporation...
Page 136: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 7 AT MIO E Series RLPM...
Page 137: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 8 National Instruments Corporation...
Page 138: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 9 AT MIO E Series RLPM...
Page 139: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 10 National Instruments Corporation...
Page 140: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 11 AT MIO E Series RLPM...
Page 141: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 12 National Instruments Corporation...
Page 142: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 13 AT MIO E Series RLPM...
Page 143: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 14 National Instruments Corporation...
Page 144: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 15 AT MIO E Series RLPM...
Page 145: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 16 National Instruments Corporation...
Page 146: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 17 AT MIO E Series RLPM...