The following batch file is used to create the multiple graphs. It is somewhat complicated, but it was modified from someone elses and please use and modify it to your own devices.

JOIN-RAD is a program to join two RAD data files.

The first section is used to keep your master RAD file no matter what. I had had a problem with losing data if the power went out but this fixed it.


 

REM ************* JOIN THE CURRENT RAD FILE TO THE MASTER RAD FILE *****************************
start /SHARED /B /WAIT /MIN JOIN-RAD CURRENT.RAD ALLDATA.RAD TEMP.RAD
DEL ALLDATA.RAD
REN TEMP.RAD ALLDATA.RAD

REM ************* SET CONFIGURATION VARIABLES *******************************************
set TitleTag=Basement Radiation
set calb=354
set pixx=800
set pixy=400

REM ****************************************** 6 HOUR GRAPH ************************************
DEL SE-1.RAD
SECTION -M360 ALLDATA.RAD

set COMPRESS1=1
set COMPRESS2=15
set Curve1Tag=1 min. average
set Curve2Tag=15 min. average

set AW_KEY=DC1%Curve1Tag%`2%Curve2Tag%`AXT%TitleTag% - PAST 6 HOURS`X%XaxisTag%`AIAY*D~~~
start /SHARED /B /WAIT /MIN aw-graph -X100 -C%calb% -p%pixx% %pixy% -T -DSE-1.rad`%COMPRESS1%,SE-1.rad`%COMPRESS2% -k@

del c:\winrad\pics\6-HOUR.gif
start /SHARED /B /WAIT /MIN bmp2gif awg.bmp c:\winrad\pics\6-HOUR.gif
del c:\winrad\awg.bmp
REM ****************************************** 1 DAY GRAPH ************************************
DEL SE-1.RAD
SECTION -M1440 ALLDATA.RAD

set COMPRESS1=5
set COMPRESS2=60
set Curve1Tag=5 min. average
set Curve2Tag=60 min. average

set AW_KEY=DC1%Curve1Tag%`2%Curve2Tag%`AXT%TitleTag% - PAST 24 HOURS`X%XaxisTag%`AIAY*D~~~
start /SHARED /B /WAIT /MIN aw-graph -X100 -C%calb% -p%pixx% %pixy% -T -DSE-1.rad`%COMPRESS1%,SE-1.rad`%COMPRESS2% -k@

del c:\winrad\pics\24-HOUR.gif
start /SHARED /B /WAIT /MIN bmp2gif awg.bmp c:\winrad\pics\24-HOUR.gif
del c:\winrad\awg.bmp
REM ****************************************** 7 DAY GRAPH ************************************
DEL SE-1.RAD
SECTION -M10080 ALLDATA.RAD

set COMPRESS1=15
set COMPRESS2=180
set Curve1Tag=15 min. average
set Curve2Tag=3 hour average

set AW_KEY=DC1%Curve1Tag%`2%Curve2Tag%`AXT%TitleTag% - PAST 7 DAYS`X%XaxisTag%`AIAY*D~~~
start /SHARED /B /WAIT /MIN aw-graph -X100 -C%calb% -p%pixx% %pixy% -T -DSE-1.rad`%COMPRESS1%,SE-1.rad`%COMPRESS2% -k@

del c:\winrad\pics\7-DAY.gif
start /SHARED /B /WAIT /MIN bmp2gif awg.bmp c:\winrad\pics\7-DAY.gif
del c:\winrad\awg.bmp

REM **************************************** 28 DAY GRAPH *******************************************
DEL SE-1.RAD
SECTION -M40320 ALLDATA.RAD

set COMPRESS1=60
set COMPRESS2=360
set Curve1Tag=1 hour average
set Curve2Tag=6 hour average

set AW_KEY=DC1%Curve1Tag%`2%Curve2Tag%`AXT%TitleTag% - PAST 28 DAYS`X%XaxisTag%`AIAY*D~~~
start /SHARED /B /WAIT /MIN aw-graph -X100 -C%calb% -p%pixx% %pixy% -T -DSE-1.rad`%COMPRESS1%,SE-1.rad`%COMPRESS2% -k@

del c:\winrad\pics\28-DAY.gif
start /SHARED /B /WAIT /MIN bmp2gif awg.bmp c:\winrad\pics\28-DAY.gif
del c:\winrad\awg.bmp
del se-1.rad

exit

Back