fix classe ThermoCamController x live, da testare dll FLIR
This commit is contained in:
@@ -324,6 +324,7 @@ public static class ThreadsFunctions
|
||||
public static void ManageFlirCamera()
|
||||
{
|
||||
NcAdapter ncAdapter = new NcAdapter();
|
||||
ThermoCamComunicator TCCom = new ThermoCamComunicator(true);
|
||||
Stopwatch sw = new Stopwatch();
|
||||
try
|
||||
{
|
||||
@@ -351,7 +352,7 @@ public static class ThreadsFunctions
|
||||
// if requested --> give ack!
|
||||
ncAdapter.ManageFlirStrobe();
|
||||
// requesto photo from library
|
||||
ncAdapter.lastThermoImage = ThermoCamComunicator.getIstance().takePicture();
|
||||
ncAdapter.lastThermoImage = TCCom.takePicture();
|
||||
done = !string.IsNullOrEmpty(ncAdapter.lastThermoImage);
|
||||
if (done)
|
||||
{
|
||||
@@ -361,7 +362,7 @@ public static class ThreadsFunctions
|
||||
// recupero punti centrali resistenze
|
||||
ncAdapter.GetWarmersChannelCenterPoints(out chPoints);
|
||||
// richiesta temperature per i punti
|
||||
done = ThermoCamComunicator.getIstance().readMultiTemperatures("", chPoints, out actualTemp);
|
||||
done = TCCom.readMultiTemperatures("", chPoints, out actualTemp);
|
||||
// salvo dati temp sul PLC
|
||||
ncAdapter.WriteRecipeWarmChTCamTempAct(actualTemp);
|
||||
// give PLC strobe for uploaded Actual TEMP from image
|
||||
|
||||
Reference in New Issue
Block a user