Example 8; Ai Configuration Start = 0; Ai Configuration End = 1; The Function Ai_Scan_Start; The Function Ai_Scan_Start Selects The Scan Start Event; Joint_Reset_Register - National Instruments PCI E Series Programmer's Manual

Register-level programmer manual, multifunction i/o boards for pci bus computers, register-level
Hide thumbs Also See for PCI E Series:
Table of Contents

Advertisement

Example 8

© National Instruments Corporation
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
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

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
Joint_Reset_Register
AI configuration start = 1;
AI_START_STOP_Select_Register = 0x0060;
to load the number of scans.
Number_of_Scans
selects the scan start event.
4-27
Chapter 4
Programming
to output one
PCI E Series RLPM

Advertisement

Table of Contents
loading

Table of Contents