Temp or time firstline uchar uchar 1 1 Signed int 2 P/V/F/T secondline PressData WindData FlowData Tempe data WidthOrDia Height; ThirdLine WD_DigitNum; H_DigitNum Infor1 Infor2 Infor3 Infor4 float float float float Signed int float float uchar uchar uchar uchar uChar uchar uchar 4 4 4 4 2 4 4 1 1 1 1 1 1 1 Infor5 Infor6 Infor7 Infor8 ShowState Pressunit VEL /Flow unit crc uChar uchar uChar uchar uchar uchar uchar Signed int 1 1 1 1 1 1 1
float WidthOrDia; // width or diameter float Height; // height signed char ThirdLine; // display the record number uchar WD_DigitNum; uchar H_DigitNum; uchar Infor1; uchar Infor2; uchar Infor3; uchar Infor4; uchar Infor5; uchar Infor6; uchar Infor7; uchar Infor8; uchar SowState; uchar PressUnit; uchar velorflowunit; //8 signed int crc; //2 }Data; uint Words[TxdWordLenth]; uchar Bytes[TxdByteLenth]; //44 }; Checksum is the sum of the previous 44 bytes. for(i=0;i<(TxdByteLenth-2);i++) Txd.Data.crc=Txd.Data.
Firstline :the first line number displayed, signed int variable display the temperature value (or, display time under MAX/MIN mode). 10 times the value of the temperature (if the data transferred back is 100, therefore, the temperature is 10.0) Secondline: the second line number displayed, float variable display the pressure value, wind speed value, flow value or temperature value. Thirdline: the third line number displayed, signed char variable Shows the number of cells stored.
Thirdline:the third line number displayed, signed char variable Shows the number of cells stored. when ShowState=0x03; Firstline :the first line number displayed, signed int variable display the temperature value (or, display time under MAX/MIN mode). 10 times the value of the temperature (if the data transferred back is 100, therefore, the temperature is 10.
Secondline : display the second line number and MAX/MIN/AVG related measurement variables. eg: 12345 will be displayed as 1.2-4, means 1.2×104 . Thirdline:the third line number displayed, signed char variable First of all, Firstline Secondline Shows the number of cells stored. Thirdline: no matter it display what number at what mode, the data will be shown as what it upload.
VEL/Flow uint wind speed number 0 to number 4 Value of “VEL/Flow uint&0x0F” means the wind speed unit displayed 0 x00 doesn’t display pressure unit 0x01display m/s 0x02display ft/min 0x03display MPH 0x04 display Knots 0x05 display km/h VEL/Flow uint wind speed number 4 to number 8 is the flow unit and display location Value of “VEL/Flow uint&0xf0” means flow unit displayed 0x00 doesn’t display pressure unit, 0x10 display CFM , 0x20 display CMM Infor1 7 6 5 4 byte Hour:min min:Sec --:--(COL) TempUi
C(B): 1 display second line C character , 0 doesn’t display the second line C character Infor2 7 6 5 4 byte AUTO BAT blacklight 1 0 1 1 3 2 1 0 TEMP FLOW VEL PRESS 1 1 1 1 AUTO: 1 display AUTO POWER OFF icon, 0doesn’t display AUTO POWER OFF icon BAT: 1 display BAT, 0 doesn’t display BAT ( low battery voltage) blacklight:1 display blacklight(backlight ON), TEMP :1 displayTEMP , 0 doesn’t blacklight(backlight off ) 0 doesn’t display TEMP FLOW: 1 display FLOW, 0 doesn’t display
number 4 to number 7 of Infor3 when at MAX/MIN mode, REC character always display REC: MAX: 1 display REC , 0 doesn’t display REC 1 display MAX MIN: 1 display MIN AVG : 1 display AVG 0 doesn’t display MAX 0 doesn’t display MIN 0 doesn’t display AVG Number 0 to number 2 of Infor3 character: 1 first line of LCD doesn’t display content -----: 1 first line of LCD display ----- REC: 1 first line of LCD doesn’t display REC 0 first line of LCD display content 0 first line of LCD doesn’t display ----
character: 1 second line of LCD doesn’t display content 0 second line of LCD display content OL: 1 second line of LCD display OL 0 second line of LCD doesn’t display OL -OL: 1 second line of LCD display -OL 0 second line of LCD display -OL ----- : 1 second line of LCD display ----- 0 second line of LCD doesn’t display ---- Number 0 to number 2 of Infor4 character: 1 third line of LCD doesn’t display content -----: 1 third line of LCD display ----- FU: 0 third line of LCD display content 0
MEM: 1 show MEM icon, Clear: 1 show Clear icon, PC: H=: 1 show H= icon, W= : 1 show W= icon, D= : 1 show D= icon, Infor6 0 doesn’t show Clear icon show PC icon, 1 7 byte 1 doesn’t show MEM icon 0 0 doesn’t show PC icon 0 doesn’t show H= icon 0 doesn’t show W= icon 0 doesn’t show D= icon 6 5 4 3 2 unit in cm Duct shape 1 1 1 1 1 1 0 ○ shape 1 1 unit in 1 length unit which the meter selects, 0 cm is the length unit which the meter selects 1 show unit in 0 doesn
○ : 1 show the round icon , 0 doesn’t show the round icon Shape: Infor7 1 shape which pitot tube selected is square □ 7 6 5 4 0 shape which pitot tube selected is round ○ 3 2 1 byte ZeroState ZeroState: 1 the meter is becoming ZERO state 0 the meter is not at ZERO state Note: When flow is display: the calculation fomular for the flow displayed: CMM: CFM: 0 SecondLine =FlowData*60 SecondLine =FlowData* *6.
const float PressUnitQuotiety[6]= //pressure parameter array { 1.0, // Pa 0.00014505367, //1psi 0.01, // mbar 0.004014678, //nH2O 0.010197282, // mmH2O }; Wind speed unit conversion factor const float AnemometerQuotiety[5]= //wind speed parameter array { 1.0, //m/s 196.85,// ft/min = 196.85*m/s 3.6 ,// km/h 2.23693632,// = 3.6* m/s MPH = 1.94384466 // Knots }; 80-5900 1.4-108.0 2.23693632* m/s = 1.94384466 *m/s 0.9-67.0 0.8-58.
communication protocols for computer controlling instrument Identify code Command word uchar uchar uchar Function 0xaa0xbb 0x01 Connect the instrument, request to send data 0xaa0xbb 0x02 Dis-connect the instrument, prohibits receiving data 0xaa0xbb 0x03 Save/Delect button 0xaa0xbb 0x04 Hold button 0xaa0xbb 0x05 P/V/F button 0xaa0xbb 0x06 Max/min/avg button 0xaa0xbb 0x07 Exit Max/min/avg 0xaa0xbb 0x08 Press Setup backlight 0xaa0xbb 0x09 Up button 0xaa0xbb 0x0a Down button