EasyManua.ls Logo

National Instruments PCI E Series - Example 8; AI Configuration Start = 0; AI Configuration End = 1; the Function Ai_Scan_Start; Perform Analog Input Example 1 Step; The Function Ai_Scan_Start Selects the Scan Start Event

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-27 PCI E Series RLPM
Example 8
This example samples one channel on an AMUX-64T.
Use the factory default settings on the AMUX-64T, internal power,
single-board configuration, no temperature setting, and the shield
unconnected. Sample channel 3 on the AMUX-64T to acquire 100 samples
at a sample interval of 10 µs. Connect a voltage source to channel 3, and
compare the unscaled results to the applied voltage. Read the samples using
polled input.
1. Perform Analog Input Example 1 Step 1.
2. Perform Analog Input Example 1 Step 2 for channel 3.
3. Perform Analog Input Example 1 Steps 3 through 6.
4. Call the function
AI_Initialize_Configuration_Memory_Output to output one
pulse and access the first value in the configuration FIFO. This
function also configures the DIO circuitry for the AMUX-64T.
AI_Command_1_Register
AI convert pulse = 1;
DIO_Control_Register = 0x0003;
DIO_Output_Register = 0x0003;
DIO_Control_Register = 0x0803;
DIO_Control_Register = 0x0003;
5. Perform Analog Input Example 1 Steps 8 through 9.
6. Call the function
Number_of_Scans to load the number of scans.
Joint_Reset_Register
AI configuration start = 1;
AI_SC_Load_A_Registers (24 bits)
Number of posttrigger scans -1 = 99;
AI_Command_1_Register
AI SC Load = 1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
7. The function
AI_Scan_Start selects the scan start event.
Joint_Reset_Register
AI configuration start = 1;
AI_START_STOP_Select_Register = 0x0060;

Table of Contents

Related product manuals