Download revision 2014b

Transcript
CHAPTER 16. PRINTING MODULE—OVERVIEW
$
$
#
RWD Nickalls
228
./configure
make
make install
To get the help info type:
$
camomilefield2tex
--help
which gives:
-p <path>
-f <parameter>
-o <filename>
-s <style>
-V
--help
path of the /project/ directory
parameter field name
output file name
output style (tex, gnuplot)
version
this help information
Example of use.
camomilefield2tex -p $projdir
-f sat
-o sat.data
-s gnuplot
We use the style [gnuplot] as this gives simple comma-separated fields which can be
easily parsed by Perl.
b Calling the camomilefield2tex.c utility
The list of required parameter names is held in the array @paramname defined at the
beginning of the program, as follows. In fact for thoracic anaesthesia we also need to
display the ventilation plateau pressures (to be incorporated later).
#[cam2gnnh.pl]
...
@paramname = ("bp-s", "bp-d","ecg-hr","sat-hr","cvp","nibp-s","nibp-d",
"sat",
"o2-insp", "n2o-exp",
"co2-exp",
"tv-exp","co2-rr",
"vap-insp", "vap-exp", "mac-big" );
For each parameter-name we then generate a datafile by calling the utility program
camomilefield2tex (the next line then generates all the .gnn files by calling the
subroutine makeGnnfiles—see next section).
#[cam2gnnh.pl]
...
# get each parameter in turn
for ($j=0; $j<=$#paramname; $j=$j+1 )
{
$ffile = $paramname[$j];
$ofile = $projdir."pdata/"."$paramname[$j]".".data";
---> system ("camomilefield2tex -p $projdir -f $ffile
-o $ofile
## now create all the .gnn files for the parameter
makegnnfiles($paramname[$j]);
}
-s gnuplot") ;