Example 5; Perform Analog Input Example 1 Step 1; Perform Analog Input Example 1 Step 2 For Each Channel In The Scan List. Only Channel 0 Has Last Channel Set To; Perform Analog Input Example 1 Steps - 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 5

© National Instruments Corporation
transfers finish, call
MITE_DMAdisarm
channel 1.
Example 5 performs the same acquisition as Example 2, but with the start
trigger and scan start pulses applied externally.
Acquire 5 scans. The scan list contains channels 5, 4, 1, and 0, respectively,
each at a gain of 1 and in RSE mode. The acquisition should begin on a start
trigger applied to PFI0. The sample rate should be set to 100 µs, and the
start pulses should be connected to PFI1 to trigger each scan. Use polled
input to read the AI FIFO data.
1.

Perform Analog Input Example 1 Step 1.

2.
Perform Analog Input Example 1 Step 2 for each channel in the scan
list. Only channel 0 has Last channel set to 1.
3.
Perform Analog Input Example 1 Steps 3 through 8.
4.
Call
AI_Trigger_Signals

Joint_Reset_Register

AI configuration start = 1;
AI_Mode_1_Register
AI trigger once = 1;
AI_Trigger_Select_Register = 0x8061;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
5.
Call the function
Joint_Reset_Register
AI configuration start = 1;
AI_SC_Load_A_Registers (24 bits)
Number of posttrigger scans -1 = 4;
AI_Command_1_Register

AI SC Load = 1;

Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
6.
The function
AI_Scan_Start
Joint_Reset_Register
AI configuration start = 1;
twice for DMA channel 0 and
to set the triggering options.
to load the number of scans.
Number_of_Scans
selects the scan start event.
4-21
Chapter 4
Programming
PCI E Series RLPM

Advertisement

Table of Contents
loading

Table of Contents