Five Mile Hill back scatter lidar system is operated during HiRes1 runtime, which means only in Clear Moonless Night. The laser tower top cover and the building door will be controlled by HiRes1 operators. The operation process for HiRes1 Steerable Laser System will start and stop by HiRes1 operators, and the operation processes for HiRes1 Back Scatter Receiver System will start and stop automatically as cron job.
loop day
{
start process0 (main)
start process1 (timing check)
( manually start process2 (command prompt) )
loop time check
{
if(runtime)
{
noise check
if(beginning of runtime) LED flash
loop hour
{
loop laser direction
{
laser shot
}
check the newest data
}
}
}
noise check
stop process0
stop process1
( manually stop command prompt(process2) )
compress data
}
start process0 (hr1bsl)
{
set HV to 0V
check all status
open communication port as server
open today's data file "yYYYYmMMdDDpXX.hr1bsl.dat"
}
return
start process1 (hr1bsl_client1)
{
open communication port as client
check runtime table
check time
}
return
start process2 (hr1bsl_client2)
{
open communication port as client
show command prompt
}
return
noise check
{
set osillo
set HV
trigger force for 10 events
record oscillo waveform data
}
return
LED flash
{
set osillo
set HV
flash UV LED for 100 events
record oscillo waveform data
}
return
laser direction
{
receive laser direction data from hr1sls
receive laser #shot data from hr1sls
set osillo
set HV
wait for the bunch of laser shots
}
return
laser shot
{
receive laser trigger pulse
record time by hr1lidar CPU clock
record oscillo waveform data for #shot
}
return
stop process0 (hr1bsl)
{
set HV to 0V
check all status
close today's data file "yYYYYmMMdDDpXX.hr1bsl.dat"
}
return
00:01(UT) start (hr1bsl) process (main program)
00:02(UT) start (hr1bslc1) process (timing check program)
set HV to GND for every minit...
01:00(UT) repeat timer switch(for HV AC) ON
-------------------------------------------------------------------
StartTime - 01:00 HiRes1 Operators put HV/Light switch down
(HV Enable)
HV AC swiches show Red LED light...
StartTime - 00:30 (hr1bslc1) send "ini_hr1bsl" to (hr1bsl)
(Initialize)
(If failed, maximum trial period is 3 min.
and after that, disable to flash LED)
wait 5 min. for HV to stabilize.
StartTime - 00:25 Flash UV LED for 100 shots (<45 sec.)
StartTime - 00:20 (hr1sls) bsl_diag
(hal) Noise, YAG
StartTime open Building-22 Door
(hal) Noise_Open, YAG_Open
(hr1sls) run
-------------------------------------------------------------------
HH:00(UT) (hr1sls) start shooting with "lidar_loop.dat"
shooting patern
HH:30-40(UT) (hr1sls) shoot laser toward bsl FOV.
(hr1bsl) receive laser direction data,
data taking(#shot, #rate)
HH:45(UT) check the newest data and plot
-------------------------------------------------------------------
EndTime - 00:10 (hr1bslc1) send "cls_hr1bsl" to (hr1bsl)
(Close procesure)
(hr1sls) stop, shutdown
EndTime - 00:05 (hal) Noise_Open, YAG_Open
EndTime close Building-22 Door
(hal) Noise, YAG
EndTime + 00:30 HiRes1 Operators put HV/Light switch middle
(HV Disable)
HV AC swiches show No red LED light.
-------------------------------------------------------------------
14:00(UT) kill (hr1bslc1) process if it's still running
14:01(UT) kill (hr1bsl) process if it's still running
14:02(UT) set HV to Ground level if it's still On
19:00(UT) rename log file
19:01(UT) compress data file