RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
100
innovators for industry
Ctrl Command read_pixel_ad
Function returns the ADC value that was obtained at a pixel position during the output of a raster
image line
Parameter
pos
list pointer to the corresponding set_pixel command [0 … 7999]
Result 10-bit output value from the analog input channel (on the RTC
®
4 I/O Extension Board)
which was specified with the set_pixel command (unsigned 16-bit value; the upper 6 bits
contain the analog input channel number)
Integration Pascal:
function read_pixel_ad(pos: word): word;
C:
unsigned short read_pixel_ad(unsigned short pos);
Basic:
function read_pixel_ad(ByVal pos%)%
Comments • This command can only be used with the RTC
®
4 I/O Extension Board.
• The RTC
®
4 reads the ADC value during execution of each set_pixel command, and
stores the result in the list (at the position of the set_pixel command). After the list is
finished, the data can be read from the list pixel by pixel with the command
read_pixel_ad.
• The command requires the position of the corresponding set_pixel command in the
list. To retain this position, use the command get_input_pointer just before writing the
set_pixel command into the list.
References set_pixel, set_pixel_line
Ctrl Command read_status
Function returns the list execution status
Result RTC
®
4 status as an unsigned 16-bit value:
Bit # Name Description
Bit #0 (LSB) Load1 = 1: indicates that all following list commands will be stored in list 1.
This bit will be set after a set_start_list_1 command and will be reset after a
set_end_of_list command.
Bit #1 Load2 = 1: indicates that all following list commands will be stored in list 2.
This bit will be set after a set_start_list_2 command and will be reset after a
set_end_of_list command.
Bit #2 Ready1 = 1: indicates that list 1 is closed.
This bit will be set after list 1 is closed by the set_end_of_list command.
Bit #3 Ready2 = 1: indicates that list 2 is closed.
This bit will be set after list 2 is closed by the set_end_of_list command.
Bit #4 Busy1 = 1: indicates that list 1 is executing at the moment.
Bit #5 Busy2 = 1: indicates that list 2 is executing at the moment.
Bits #6…#7 0
Bits #8…#15 1
Integration Pascal:
function read_status: word;
C:
unsigned short read_status(void);
Basic:
function read_status()%
Comments • Compare with the command get_status (page 86).
• To read the status signals from the scan heads, use the command get_head_status
(page 82).
References get_status, get_head_status