Campbell CS106 Instrukcja Obsługi Strona 14

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 20
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 13
CS106 Barometric Pressure Sensor
4.2 Program Examples
4.2.1 Example 1 – Sample Program for CR1000 (CRBasic) Datalogger
'CR1000 Datalogger
Public CS106_temp, pressure
Units pressure = mbar
DataTable (met_data,True,-1)
DataInterval (0,60,min,10)
Sample (1,pressure,IEEE4)
EndTable
BeginProg
PipeLineMode
Scan (1,sec,3,0)
'Measurement is made every scan outside the "If" statement
VoltSe (CS106_temp,1,mV2500,1,False,0,_60Hz,0.240,500)
'Turn on CS106 one minute before the hour
If (IfTime (59,60,min)) Then WriteIO (&b1000,&b1000)
'Copy the correct value to a current variable called "pressure" at the top of the hour
'Turn off CS106 after the measurement
If (IfTime (0,60,min)) Then
pressure = CS106_temp
WriteIO (&b1000,&b0)
EndIf
CallTable met_data
NextScan
EndProg
4.2.2 Example 2 – Sample Program for CR10X (Edlog) Datalogger
;{CR10X}
*Table 1 Program
01: 1 Execution Interval (seconds)
;Turn on CS106 one minute before the hour
;
1: If time is (P92)
1: 59 Minutes (Seconds --) into a
2: 60 Interval (same units as above)
3: 41 Set Port 1 High
8
Przeglądanie stron 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 20

Komentarze do niniejszej Instrukcji

Brak uwag