![LI-COR li-6262 Instruction Manual Download Page 119](http://html.mh-extra.com/html/li-cor/li-6262/li-6262_instruction-manual_1906652119.webp)
Sample Program
H-1
H
H
Sample
Program
®
CO
2
/H
2
O ANALYZ
ER
Model LI-62
62
READY
ZERO
SPAN
CO
2
ON
OFF
FUNCTION
EEX,
ENTER
↓
↑
4
5
6
7
8
9
C
0
.
2
3
1
ZERO
SPAN
H
2
O
The following is a sample Borland’s C program that could be used to
calculate CO
2
and/or H
2
O concentrations. The CO
2
calculations use the
water correction equations described in Section 3.
/*
gascomp.c - Implements LI-COR IRGA equations
*/
#include <stdio.h>
#include <math.h>
static double ppm(double mV, double Cr, double Tirga, double vp_r, double vp_s, double kPa);
static double cal(double mv);
static double temp_correction(double t);
static double inverse_cal(double cppm);
static double cal_slope(double mv);
static double chi(double mfw);
static double p0_over_p(double kPa);
static double T_cal, K_cal, A_cal, B_cal, C_cal, D_cal, E_cal, Water_A;
static int water_flag;
/* ------------------------------------------------------------------------- */
static double ppm(double mV, double Cr, double Tirga, double vp_r, double vp_s, double kPa)
{
/* This function implements Equations 6-6 (LI-6251manual), Equations 6-13 (LI-6252 manual)
or Equations 3-29 (LI-6262 manual).
mV - co2 signal in mV
Cr - reference concentration (ppm)
Tirga - Gas temp (C)