mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
修改php 以适应唐超修改
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$position=$_GET["p"];
|
||||
$sensorType=$_GET["sensor"];
|
||||
|
||||
$nite=$_GET['nite'];
|
||||
if ($position==0)
|
||||
{
|
||||
echo "error";
|
||||
@ -45,13 +45,13 @@ if ($position==1)
|
||||
{
|
||||
if($sensorType=="OSIFAlpha"||$sensorType=="OSIFBeta")
|
||||
{
|
||||
$cmd = 'sudo /home/pi/bin/ocean_optics_calibration_console --deviceType OceanOptics -t 30 -slfs ocean_optics.lmp --cfon FSN'.sensorType.$position.'.data --position '.$position;
|
||||
$cmd = 'sudo /home/pi/bin/ocean_optics_calibration_console --deviceType OceanOptics -t 30 -slfs ocean_optics.lmp --cfon FSN'.sensorType.$position.'.data --position '.$position.' --integratingSphereDetectorValue '.$nite;
|
||||
}
|
||||
else{
|
||||
$port=$ini['FS'.$i+1]['Port'];
|
||||
getonestring($port,'/');
|
||||
getonestring($port,'/');
|
||||
$cmd = 'sudo /home/pi/bin/ocean_optics_calibration_console --deviceType OPTOSKY --serialPort '.$port.' -t 30 -slfs ocean_optics.lmp --cfon FSN'.sensorType.$position.'.data --position '.$position;
|
||||
$cmd = 'sudo /home/pi/bin/ocean_optics_calibration_console --deviceType OPTOSKY --serialPort '.$port.' -t 30 -slfs ocean_optics.lmp --cfon FSN'.sensorType.$position.'.data --position '.$position.' --integratingSphereDetectorValue '.$nite;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user