Sync from remote server: 2025-10-12 20:06:15
This commit is contained in:
@@ -19,14 +19,14 @@ if strcmp(IDcentralina,'ID0081') && strcmp(DTcatena,'DT0009') % Varazze - Casano
|
|||||||
for s = 1:rLL
|
for s = 1:rLL
|
||||||
for n = 1:numDate
|
for n = 1:numDate
|
||||||
if DatiLoad(n,s) > 588.4 % kN
|
if DatiLoad(n,s) > 588.4 % kN
|
||||||
if ErrLoadLink(n,s) == 0 || ErrLoadLink(n,s) == 0.5 % Il nodo non <EFBFBD> in errore
|
if ErrLoadLink(n,s) == 0 || ErrLoadLink(n,s) == 0.5 % Il nodo non è in errore
|
||||||
alarm = 1;
|
alarm = 1;
|
||||||
indexALA(cI,1) = n; % Data
|
indexALA(cI,1) = n; % Data
|
||||||
indexALA(cI,2) = s; % sensore
|
indexALA(cI,2) = s; % sensore
|
||||||
cI = cI+1;
|
cI = cI+1;
|
||||||
end
|
end
|
||||||
% elseif DatiLoad(n,s)-DatiLoad(n-1,s) > 0.3 % mm
|
% elseif DatiLoad(n,s)-DatiLoad(n-1,s) > 0.3 % mm
|
||||||
% if ErrLoadLink(n,s) == 0 || ErrLoadLink(n,s) == 0.5 % Il nodo non <EFBFBD> in errore
|
% if ErrLoadLink(n,s) == 0 || ErrLoadLink(n,s) == 0.5 % Il nodo non è in errore
|
||||||
% alert = 1;
|
% alert = 1;
|
||||||
% indexALE(cI2,1) = n; % Data
|
% indexALE(cI2,1) = n; % Data
|
||||||
% indexALE(cI2,2) = s; % fessurimetro
|
% indexALE(cI2,2) = s; % fessurimetro
|
||||||
@@ -198,7 +198,7 @@ if alert == 1 || alarm == 1
|
|||||||
DataWriteALE = DataRifALE;
|
DataWriteALE = DataRifALE;
|
||||||
end
|
end
|
||||||
|
|
||||||
if DATA_rif >= DATA % Mail gi<EFBFBD> inviata
|
if DATA_rif >= DATA % Mail già inviata
|
||||||
Mail = 0;
|
Mail = 0;
|
||||||
else
|
else
|
||||||
Mail = 1;
|
Mail = 1;
|
||||||
@@ -254,7 +254,7 @@ if alert == 1 || alarm == 1
|
|||||||
if allarme == 1
|
if allarme == 1
|
||||||
AL = AL-1; % Numero totale di allarmi
|
AL = AL-1; % Numero totale di allarmi
|
||||||
for a = 1:AL
|
for a = 1:AL
|
||||||
% Cerco se il dato <EFBFBD> gi<EFBFBD> presente
|
% Cerco se il dato è già presente
|
||||||
Data = DATAinsert{a,5};
|
Data = DATAinsert{a,5};
|
||||||
nNodo = num2str(DATAinsert{a,4}); % Numero nodo
|
nNodo = num2str(DATAinsert{a,4}); % Numero nodo
|
||||||
type = num2str(DATAinsert{a,1}); % tipologia
|
type = num2str(DATAinsert{a,1}); % tipologia
|
||||||
@@ -270,7 +270,7 @@ if alert == 1 || alarm == 1
|
|||||||
curs = fetch(curs);
|
curs = fetch(curs);
|
||||||
idDate = curs.Data;
|
idDate = curs.Data;
|
||||||
if idDate == 0 || strcmp(idDate,'No Data') == 1
|
if idDate == 0 || strcmp(idDate,'No Data') == 1
|
||||||
idElabData = 0; % 0 indica che il dato non <EFBFBD> presente su DB
|
idElabData = 0; % 0 indica che il dato non è presente su DB
|
||||||
else
|
else
|
||||||
idElabData = cell2mat(idDate(:,1));
|
idElabData = cell2mat(idDate(:,1));
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user