Vaisala PTB210 SERIES Manuel d'instructions Page 46

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 137
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 45
4.5 Program - Main Scan
Aside from declarations and tables the CRBASIC program needs more instructions
in order to work properly and above all instructions to assign the variables with
the intended values. The executable code begins with BeginProg and ends with
EndProg.
Measurements, processing and calls to data tables within the Scan / NextScan loop
determine the sequence and timing of program functions.
BeginProg
Scan(5,Sec,0,0)
Therm107(T107_C(1),2,1,Vx1,0,_50Hz,1,0)
Count = Count + 1
N = Count
If TimeIntoInterval(0,60,sec) Then
Count = 0
EndIf
CallTable(Table_Indoor)
NextScan
EndProg
This simple example represent a temperature reading of two temperature values
out of the T107_C-Array and its assignement to the variabels T107_C(1) and
T107_C(2). The records will be called to the data table Table_Indoor as well as
the number of measured data N within a scan loop of 5 seconds. An average of 12
values and the number of measured data per interval is to be saved every minute
according to the declarations for the data tables .
The scan intruction has an interval parameter for setting the interval between scans,
a units parameter for which this interval is based on and some buffer and counter
options which are set to false, because no scan has to be hold in RAM and the scan
should continue looping forever.
The counter is a simple incrementing number assigned to the varibale N within the
scan loop. It is set to zero after a time into interval of 60 seconds.
46
Vue de la page 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 136 137

Commentaires sur ces manuels

Pas de commentaire