EasyManua.ls Logo

National Instruments PCI E Series - Page 82

National Instruments PCI E Series
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4 Programming
©
National Instruments Corporation 4-19 PCI E Series RLPM
AI_Mode_2_Register
AI SI2 initial load source = 1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
8. Perform Analog Input Example 1 Step 4.
9. AI_Arming to arm the analog input counter
AI_Command_1_Register
AI SC arm = 1;
AI SI arm = 1;
AI SI2 arm = 1;
AI DIV arm = 1;
10. Construct the buffer information linked list. Each node contains the
information about one buffer: Every node stores each buffer's physical
address and logical address, and total transfer bytes for that buffer.
11. Set up the DRQ channel
AI_AO_Select_Register
DMA Channel A enable=1;
12. Call the function
MITE_DMAProgram
to set up the MITE for DMA
transfer
You need to pass the following parameters to the function:
BufferinfoNodeHeadPtr: Point to the buffer information linked list
head node.
NumberOfBuffer: Number of buffers you use for DMA
transfers
dmaChannel: DMA channel you want to use, there are
four DMA channels on each PCI board
(0 to 3).
direction: Your DMA transfer direction (INPUT or
OUTPUT)
continuous: Perform continuous DMA transfer
(FALSE or TRUE)
drqnum: DRQ channel you want to use. Make sure
it is the same in Step 11 (0 to 3).

Table of Contents

Related product manuals