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
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
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
command, and
stores the result in the list (at the position of the
command). After the list is
finished, the data can be read from the list pixel by pixel with the command
• The command requires the position of the corresponding
command in the
list. To retain this position, use the command
just
before
writing the
command into the list.
References
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
_1
command and will be reset after a
command.
Bit #1
Load2
= 1:
indicates that all following list commands will be stored in list 2.
This bit will be set after a
_2
command and will be reset after a
command.
Bit #2
Ready1
= 1:
indicates that list 1 is closed.
This bit will be set after list 1 is closed by the
command.
Bit #3
Ready2
= 1:
indicates that list 2 is closed.
This bit will be set after list 2 is closed by the
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
• To read the status signals from the
scan heads
, use the command
.
References