Thermo Scientific 49i Instruction Manual page 276

Uv photometric o3 analyzer
Table of Contents

Advertisement

C-Link Protocol Commands
Keys/Display
B-28
Model 49i Instruction Manual
The RLE encoding consists of a 0 followed by an 8-bit count of consecutive
0xFF bytes. The following 'c' code will expand the incoming data.
Void
unpackDisplay ( void far* tdib, unsigned char far* rlescreen )
{
int i,j,k;
unsigned char far *sc4bpp, *sc2bpp, *screen, *ptr;
ptr = screen = (unsigned char far *)malloc(19200);
//RLE decode the screen
for (i=0; i<19200 && (ptr - screen) < 19200; i++)
{
*(ptr++) = *(rlescreen + i);
if (*(rlescreen + i) == 0)
{
unsigned char rlecount = *(unsigned char *)(rlescreen + ++i);
}
else if (*(rlescreen + i) == 0xff)
{
unsigned char rlecount = *(unsigned char *)(rlescreen + ++i);
while (rlecount)
{
}
}
}
To convert this data into a BMP for use with windows, it needs to be turned
into a 4BPP as that is the smallest windows can display. Also note that BMP
files are upside down relative to this data, i.e. the top display line is the last
line in the BMP.
sc
screen
This command is meant for backward compatibility on the C series. Screen
information is reported using the "iScreen" command above.
Send:
Receive:
not available
while (rlecount)
{
*(ptr++) = 0;
rlecount--;
}
*(ptr++) = 0xff;
rlecount--;
screen
screen This is an I series Instrument. Screen Information
Thermo Fisher Scientific

Advertisement

Table of Contents
loading

Table of Contents