C-Link Protocol Commands
Measurement Configuration
Thermo Fisher Scientific
Model 5030
i
SHARP Instruction Manual
B-45
form to save time in transmission. It is sent as a type '5' binary C-Link
response with no checksum.
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++) = *(rle i);
if (*(rle i) == 0)
{
unsigned char rlecount = *(unsigned char *)(rle ++i);
while (rlecount)
{
*(ptr++) = 0;
rlecount--;
}
}
else if (*(rle i) == 0xff)
{
unsigned char rlecount = *(unsigned char *)(rle ++i);
while (rlecount)
{
*(ptr++) = 0xff;
rlecount--;
}
}
}
}
To convert this data into a BMP for use with Windows, it needs to be
saved as a 4-bit-per-pixel gray-scale image. Also note that BMP files are
upside down relative to this data, that is, the top display line is the last line
in the BMP.
sc
screen
These commands are meant for backward compatibility with the C series.
Screen information is instead reported using the “iscreen” command above.
Send:
screen
Receive:
screen This is an iSeries instrument.
Screen information not available.
conc unit
This command reports the current concentration units (mg/m
3
or μg/m
3
).
The following example reports that the concentration units are set to
mg/m
3
.
Measurement
Configuration
Содержание 5030i SHARP
Страница 4: ......
Страница 10: ...About This Manual Where to Get Help vi Model 5030i SHARP Instruction Manual Thermo Fisher Scientific ...
Страница 22: ...Contents xviii Model 5030i SHARP Instruction Manual Thermo Fisher Scientific ...
Страница 26: ...Figures xxii Model 5030i SHARP Instruction Manual Thermo Fisher Scientific ...
Страница 168: ......
Страница 218: ......
Страница 294: ......
Страница 306: ......
Страница 402: ......
Страница 403: ......