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