Files
matlab-python/Tilt/IDunit.m

15 lines
388 B
Matlab
Executable File

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