Campbell CCFC Instruction Manual - page 112
CCFC Field Camera
A-1
Following is an example of the CRBasic command that will shut
down a camera with PakBus address 55:
SendVariables (SendVarResult,Com1,0,55,0000,400, “Public”,
“CCFCShutdown”,1,1)
15.3.3 Example Program
– SendVariable Instruction – CR1000
The following example illustrates the use of the SendVariable
instruction to alter Still Photo Banner #2, as well as toggle the
camera window defroster.
Please download the program directly from:
http://www.campbellsci.ca/ccfc
.
'CR1000 Series Datalogger
'Declare Public Variables
Public PTemp, batt_volt
Public TurnDefrosterOn As Boolean
Public TurnDefrosterVal As Long
Public SendVarResult As Long
Public BannerString As String * 60
Public tempstring As String * 60
'Define Data Tables
DataTable (Test,1,-1)
DataInterval (0,60,Sec,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable
'Main Program
BeginProg
SerialOpen (Com1,115200,4,0,2000)
Scan (10,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
'Enter other measurement instructions
tempstring = FormatFloat(PTemp,"%2.2f")
BannerString = "Panel Temp " + tempstring
If TimeIntoInterval (0,5,Min) Then
SendVariables(SendVarResult,Com1,0,55,0000,400,"Public","CCFCStillBanner2",BannerStr
ing,1)
EndIf
If TurnDefrosterOn = true Then
TurnDefrosterVal = 1
Note