RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
112
innovators for industry
List Command set_pixel
Function defines the output parameters (laser pulse width and ANALOG OUT2 value) for one pixel
in an image line. In addition, one of the four analog input ports of the RTC
®
4 I/O Extension
Board can be read during the output of the pixel (RTC
®
4 with I/O Extension Board only).
Also see chapter 5.7 "Scanning Raster Images (Bitmaps)", page 47.
Parameters
pulse_width
laser output pulse width (unsigned 16-bit value). 1bit equals 1/8µs.
da_value
output value for the ANALOG OUT2 port of the RTC
®
4 (10-bit resolution)
(unsigned 16-bit value; the upper 6 bits are ignored)
ad_channel
number of the ADC input channel to be read [0 … 4; 0 = none].
The RTC
®
4 writes the obtained ADC result into the current list (at the
position of the set_pixel command). The value can be read with the
command read_pixel_ad (see page 100) after execution of the list.
Integration Pascal:
procedure set_pixel(pulse_width, da_value, ad_channel: word);
C:
void set_pixel(unsigned short pulse_width, unsigned short da_value,
unsigned short ad_channel);
Basic:
sub set_pixel(ByVal pulse_width%, ByVal da_value%,
ByVal ad_channel%)
Comments • Each image line must start with the command set_pixel_line.
• Each pixel in the image line is defined by one set_pixel command. The set_pixel
commands must follow immediately after the command set_pixel_line.
No other commands must be written into the list until the image line is completed.
References set_pixel_line, read_pixel_ad