Chapter 4
Programming
4-8
©
National Instruments Corporation
4.
Read the digital pattern.
Pattern = DIO_Parallel_Input Register;
5.
Repeat Steps 3 and 4 for subsequent patterns.
Analog Input
See Chapter 2 in the DAQ-STC Technical Reference Manual for
information on programming analog input and the relevant registers. This
section also describes the programming sequences for the various functions
and organizes these functions for a particular operation. Individual bitfield
descriptions are also provided.
Programming the PCI E Series boards for analog input can be divided into
writing to and reading from two main register groups: discrete board
registers and DAQ-STC registers. The following functions configure the
board by calling the
Board_Read
and
Board_Write
functions:
Setup_Mite;
Configure_Board;
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