Acquisition Example For Windows In C - envea CAIRSENS PM Série Notice Technique

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

value n°8
value n°9
value n°10(recent)
END
CRC
ETX
value 1 : 0x2B *256 + 0xE8 = 11240 ppb
value 2 : 0x2C *256 + 0x60 = 11360 ppb
value 3 : 0x2C *256 + 0x1A = 11290 ppb
value 4 : 0x2B *256 + 0x8E = 11150 ppb
value 5 : 0x2B *256 + 0x8E = 11150 ppb
value 6 : 0x2B *256 + 0x8E = 11150 ppb
value 7 : 0x2C *256 + 0x06 = 11270 ppb
value 8 : 0x2C *256 + 0x60 = 11360 ppb
value 9 : 0x2B *256 + 0xDE = 11230 ppb
value 10: 0x2B *256 + 0xE8 = 11240 ppb
for a cairsens H2S 200ppm : measure 1 = value1*10 = 112400 ppb = 112.4 ppm
9.5

Acquisition example for windows in c

#include
<stdio.h>
#include
<time.h>
#include
<windows.h>
typedef int
bool;
#define false
#define true
unsigned char
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x12, 0xAF, 0x88, 0x03};
unsigned char
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0C, 0x00, 0x63, 0xA8, 0x03};
void*
rs_open(const char
{
HANDLE h;
h = CreateFileA(name,
if(INVALID_HANDLE_VALUE == h)
return
}
© 2016 Cairpol
GetDownload structure for cairsens (Stored data download)
0
1
TrameInst[]= {0xFF, 0x02, 0x13, 0x30, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0xFF,
Trame10M[] = {0xFF, 0x02, 0x14, 0x30, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x0FF,
*name)
GENERIC_READ | GENERIC_WRITE,
0,
// must be opened with exclusive-access
NULL,
// default security attributes
OPEN_EXISTING,
// must use OPEN_EXISTING
0,
// not overlapped I/O
NULL);
// hTemplate must be NULL for comm devices
return
0;
(void*)h;
0x2C
0x60
2 bytes
0x2C
0xDE
2 bytes
0x2B
0xE8
2 bytes
0x2B
2 bytes
0x00
0xFF
2 bytes
0x69
0x0D
1 byte
0x03
19

Publicité

Chapitres

Table des Matières
loading

Ce manuel est également adapté pour:

Cairsens pm1Cairsens pm2.5Cairsens pm10

Table des Matières