Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
23
Tilt/conv_grezziPT100.m
Executable file
23
Tilt/conv_grezziPT100.m
Executable file
@@ -0,0 +1,23 @@
|
||||
% Funzione che converte i dati grezzi dei Therm Link
|
||||
|
||||
function val_PT100 = conv_grezziPT100(val_PT100,rPT100,DCalPT100Tot,FileName)
|
||||
|
||||
text = 'conv_grezziPT100 function started';
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
fprintf(fileID,fmt,text);
|
||||
|
||||
ca_PT100 = DCalPT100Tot(:,1);
|
||||
int_PT100 = DCalPT100Tot(:,2);
|
||||
i = 1;
|
||||
% Contatore dei nodi, converte i punti ADC con le calibrazioni in valori angolari
|
||||
while i <= rPT100 % nodo
|
||||
val_PT100(:,i) = val_PT100(:,i)*ca_PT100(i,1)+int_PT100(i,1);
|
||||
i = i+1;
|
||||
end
|
||||
|
||||
text = 'Raw Data of PT100 Link converted into physical units correctly. conv_grezziPT100 function closed';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user