CC5MPX Digital Camera
83
The defroster commands should be sent to the camera every 60 seconds or
more to ensure continuous operation.
The defroster will be allowed to turn on only once for 65 seconds at internal
temperatures between 25 and 50 °C. This flag will only be reset again once the
internal temperature drops below 25 °C, or the camera is reset. Full, continuous
operation is only allowed at temperatures of 25 °C or less. At internal
temperatures above 50 °C, the defroster will not turn on.
8.8.3.2 PakBus Control of CC5MPX Power
The ability to shut down the camera safely using a PakBus command is
available in the CC5MPX. By writing a value of 1 (or any value not equaling
zero) to the public Boolean variable
CC5MPXShutdown
, the camera initiates a
shutdown. The shutdown process can take up to 30 seconds. The camera will
turn back on after 10 minutes, or can be externally triggered.
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”, “CC5MPXShutdown”,1,1
)
8.8.3.3 Example Program – SendVariable Instruction
The following example illustrates the use of the
SendVariable
instruction to
alter Still Image Banner #2, as well as toggle the camera window defroster.
CRBasic Example 8-2. SendVariable Instruction
'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
Data
(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","CC5MPXStillBanner2",BannerString,1)
EndIf
Summary of Contents for CC5MPXWD
Page 2: ......
Page 6: ......
Page 12: ...Table of Contents vi...
Page 74: ...CC5MPX Digital Camera 62 FIGURE 8 34 External Trigger Setup Page...
Page 118: ...CC5MPX Digital Camera 106...
Page 125: ......