skip to primary navigationskip to content

CAMBEEP

Cambridge Building Energy & Environment Portal

Studying at Cambridge

 

Datataker program_example

Plain Text icon DT80 example program.txt — Plain Text, 5 KB (5978 bytes)

File contents

'The program to be sent to the datataker is only from DELJOB.... to ...END LOGONA G'
'BEFORE SENDING IT PLEASE READ CAREFULLY THE INSTRUCTIONS BELOW AND IF YOU HAVE OTHER DOUBTS PLEASE REFER TO THE MANUAL OF DT80 ON THE DATALOGGER CAMBEEP PAGE'

'In order to have the CEM20 working the switch setting needs to be set according to the channel of the DT80 on which the CEM20 is connected. Please refer to pp 377 - 379 of the DT80 - CEM20 Manual, take a look at CEM20 addresses and switch setting'

'In order to send the program to the datalogger please connect to the DT80 with the USB cable, select "monitor datalogger", "command", click on "enable" and communicate with the logger using the windows "send" and "receive". Once the program has been sent it is automatically saved in "status", "program"'

'Please substitute the name of the sensor according to your requirements to the name of the sensor in the present example program (i.e. T_WALL wherever TT_1 is appearing)'

Brief explanation of the DT80 program syntax:
'BEGIN"configuration" indicates the beginning of a new program called "configuration"'
'RA"Schedule_1"2S indicates that the program contains a schedule A named "Name" that triggeres every 2 seconds (M for minutes)'
'more then 1 schedule can be in set in the same program'
'1* indicates the channel'
'101 indicates the first channel on CEM20 which is connected to channel 1 on DT80, for CEM20 connected to channel 2 on DT80 use 201,202,203....; for DT80 channel 3-CEM 20 use 301,302....; and so on; please refer to page 377-380 of DT80 manual for the connection of the CEM20 to the DT80 and to use the correct switch settings which are depending on the channel you are connecting the CEM20 to'
'TT indicates the type of sensor i.e. Type T Thermocouple'
'V indicates a voltage sensor as heatflux meters and pyranometers'
'("TT_1~degC" indicates the name of the sensor and the units'
'=1CV indicates that the measure is stored into a virtual channel 1CV'
'W indicates a working channel i.e. the measurement is not stored'
'in 1CV line the scaling/calibration of 1*TT is specified'
'FM3 indicates the number of decimal digits, 3 in this case'
'END indicates the end of the program'
'LOGONA indicates that schedule A must be sent to the logger'
'G indicates that the program must start'
'H is the Halt the program'
'For any other info consult the manual of DT80 on the Cambeep website https://www.cambeep.eng.cam.ac.uk/equipment/manuals/um-0085-b8-dt8x-users-manual.pdf
and in particular the Command Summary on pp 391-393 on the manual, and the Error Messages on page 402-407'

'with the calibration below the error related to a confidence interval of 95% is 0.2 degC for temperatures and 5 W/m2 for heat flux and solar radiation approximately, for a better specification of the accuracy of the sensors consult the data sheet of the sensor and the calibration file of the thermocouples'
'The thermocouples are calibrated on the exact channel detailed in the example program, the code of the channel can be found on the thermocouples provided with the CAMBEEP equipment. If the specific thermocouple is connected to another channel, the calibration coefficients change and the thermocouple needs to be re-calibrated on the new channel. Heat flux meters and pyra-nometers can be connected to any channel and their calibration coefficient is given on the cable of the sensor, or in the sensor related page on the CAMBEEP website'

'CONNECTION OF SENSOR TO THE DATATAKER:
the thermocouples can be connected "single ended" or "double ended". Despite the sense of the terms "double ended" means that one wire of the thermocouple goes in the (+) and one in (-) of the analogical channel of the DT80."Single ended" means that one wire of the thermocouple is connected alternatively to the (*), (+) or (-) of one channel, while the other wire plugs into the (#) of the analogical channel. With the "single ended" connection up to 3 thermocouples can be connected on the same channel. With the "double ended" connection only one thermocouple per channel could be connected.
Pyranometers and Heatflux meters are always connected with one end on the (+) and one on the (-) of the analogical channel of the DT80.
More details about thermocouple connections are given in part O of the manual pp 299, or specifically for thermocouples in  https://www.cambeep.eng.cam.ac.uk/References/TT_calib'  

'Example program'

DELJOB
DELD

/S 		   
P31=1
P28=0

BEGIN"configuration"

  
RA"Schedule_1"2S
    
	   
	1*TT("TT_1~degC",=1CV,W)
    	
	1CV("TT_1~degC",FM3)=1CV*1.022414-2.30043		'calibration on CV m,q'
	1+TT("TT_2~degC",=2CV,W)
  
  	2CV("TT_2~degC",FM3)=2CV*0.998339-1.07821	
	1-TT("TT_3~degC",=3CV,W)
    
	3CV("TT_3~degC",FM3)=3CV*1.170108-1.52114
	2*TT("TT_4~degC",=4CV,W)
    
	4CV("TT_4~degC",FM3)=4CV*1.018065-1.38457
	2+TT("TT_5~degC",=5CV,W)
       
	5CV("TT_5~degC",FM3)=5CV*1.014978-1.44127
	2-TT("TT_6~degC",=6CV,W)
    
	6CV("TT_6~degC",FM3)=6CV*0.995056-1.29357
	3*TT("TT_7~degC",=7CV,W)
    
	7CV("TT_7~degC",FM3)=7CV*0.96214+3.63688
	3+TT("TT_8~degC",=8CV,W)
    
	8CV("TT_8~degC",FM3)=8CV*0.973262-0.58396
	3-TT("TT_9~degC",=9CV,W)
    
	9CV("TT_9~degC",FM3)=9CV*1.072266-2.04803
	4*TT("TT_10~degC",=10CV,W)
    
	10CV("TT_10~degC",FM3)=10CV*0.980867-1.41147
	4+TT("TT_11~degC",=11CV,W)
    
	11CV("TT_11~degC",FM3)=11CV*0.971063-1.44009
	4-TT("TT_12~degC",=12CV,W)
	
	12CV("TT_12~degC",FM3)=12CV*1.0222-0.6495

        5V("HFM1~W/m2",=13CV,W)
        13CV("HFM1~W/m2",FM3)=13CV*1000/63.52           'HFP01-10 sn10208'
        101V("HFM2~W/m2",=14CV,W)
        14CV("HFM2~W/m2",FM3)=14CV*1000/63.75           'HFP01-10 sn10209'
        102V("PYR1~W/m2",=15CV,W)
        15CV("PYR1~W/m2",FM3)=15CV*1000/17.89           'L02-10 sn45109'
        103V("PYR2~W/m2",=16CV,W)
        16CV("PYR2~W/m2",FM3)=16CV*1000/18.36           'L02-10 sn45110'

END

LOGONA