Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
15
ATD/IDunit.m
Executable file
15
ATD/IDunit.m
Executable file
@@ -0,0 +1,15 @@
|
||||
function unitID = IDunit(IDcentralina,conn,FileName)
|
||||
|
||||
text = 'IDunit function started';
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
fprintf(fileID,fmt,text);
|
||||
|
||||
comando = ['select id from units where name like ''' IDcentralina ''' '];
|
||||
unitID = fetch(conn,comando);
|
||||
|
||||
text = 'Unit ID downloaded correctly, IDunit function closed';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user