EasyManua.ls Logo

Scanlab RTC6 PCIe Board - Read_Analog_In

Scanlab RTC6 PCIe Board
1004 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...
RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
579
innovators for industry
Ctrl Command read_analog_in
Function Reads in the analog input values:
ANALOG IN0 and ANALOG IN1 at the “McBSP/ANALOG” socket connector of the
RTC6 PCIe Board
ANALOG IN0, and ANALOG IN1 at the SPI/ANA/UART Socket Connector of the
RTC6 Ethernet Board
Returns them as 12-bit digital values.
Call
AnalogValue = read_analog_in()
Result As an unsigned 32-bit value.
Bit #0
Bit #11
ANALOG IN0 input value as 12-bit digital value.
Bit #12 = 0. Channel number.
Bit #13 = 0.
Bit #14 = 0.
Bit #15 Old bit for ANALOG IN0.
Bit #16
Bit #27
ANALOG IN1 input value as 12-bit digital value.
Bit #28 = 1. Channel number.
Bit #29 = 0.
Bit #30 = 0.
Bit #31 Old bit for ANALOG IN1.
Comments See also Section ”Analog Input Ports”, page 86.
read_analog_in sets the old bits (Bit #15 and Bit #31) to 1 after reading.
As soon new data are available at the corresponding analog input they are
automatically set to 0.
The analog input values (ANALOG IN0 and ANALOG IN1) can be recorded by
set_trigger/set_trigger4/set_trigger8 (signal 54). However, the old bits (Bit #15 and
Bit #31) are not recorded. The format of the data is
((ANALOG IN1 << 16) + ANALOG IN0).
RTC4RTC6 New command.
RTC5RTC6 Unchanged functionality.
Version info Available as of DLL 600, OUT 600, RBF 600.
References set_trigger, set_trigger4, set_trigger8

Table of Contents