EasyManuals Logo
Home>National Instruments>I/O Systems>PCI E Series

National Instruments PCI E Series Programmer's Manual

National Instruments PCI E Series
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #90 background imageLoading...
Page #90 background image
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

Other manuals for National Instruments PCI E Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the National Instruments PCI E Series and is the answer not in the manual?

National Instruments PCI E Series Specifications

General IconGeneral
BrandNational Instruments
ModelPCI E Series
CategoryI/O Systems
LanguageEnglish

Related product manuals