R S 2 3 2 C P O RT CO NTRO L
N OTE:
To save 256 pixels horizontally and/or vertically,
set the third and/or fourth para meter respectively, to
000.
Some sample commands and the CVI's response:
@SI 1 56 1 27 006 004 :
transmit a 6x4 block of pixels from the
field store;
@SI 047 2 1 9 001 0 0 1 :
transmit a single pixel at location (x,y)
=
(47,2 1 9);
@SI 002 000 001 000 :
transmit the third column of pixels from
the field store;
@SI 000 000 000 000 :
transmit the entire field store.
Pixel Data Format:
. Each pixel is represented by four ASCII characters. If the
entire field store is transmitted (256x256 pixels), this will result in
256K ASCII characters.
The first character will be either "S" or "U", indicating
stencil on
or
stencil off
at the pixel. This character can be used to maintain
data synchronisation between the CVI and the computer. The
second, third and fourth characters represent the value of the
blue, green
and
red
components of the pixel colour. These values
range from
0
to
15
and are represented by hexadecimal characters.
For example, the characters "S777" represent a pixel with stencil
on and a colour of mid-grey, as blue, green and red are all set to
value 7 on a scale of 0 to 1 5. Similarly, "UOFF" represents a pixel
with stencil off and colour saturated yellow, as blue is zero and
green and red are fully on.
The transmitted characters can be stored and edited as an
ASCII file on the computer. The file can then be transmitted
back to the CVI using the
Load Image
command.
Load I mage
Command: LI
xxx
yyy
n
m
l
1l1l1l
The four parameters define an absolute rectangle in the field
store, as for
Save Image.
Four characters arc expected for each
pixel, using the same format as described for
Save I m age.
The first character of each group of four is used to maintain
da ta synchronisation and to indica te the stencil status. In
addition to "S" (stencil
Oil)
and
"
U
"
(stencil
of I),
the first character
may also be
"Z". "Z"
indicates that the pixel should not be written
to the field store or to the stencil plane. This allows irregularly
shaped images to be loaded to the CVI. The pixel colour data is
"don't care" after
"Z".
SOFTWARE UPDATE
-
Summary of Contents for CVI
Page 1: ...r e User Manual Computer Video Instrument...
Page 4: ...Startea 2 Video Melius...
Page 102: ...33 Quad mirror Slow scan across L J _J...
Page 103: ......
Page 104: ...56 Under over stencil 57 Under over catch up 58 Push to freeze...
Page 105: ...60 L J _JI L...
Page 106: ...80 Under over texture wipe L J _J...
Page 107: ...L J _Jd r...
Page 197: ...RS232C Port ControI 1 Rev 7 Software Update 1...
Page 268: ...Glossary 1 Index 5...
Page 282: ......