%% MoveAbsolute & get datadata_file_prefix = 'F:\Matlab2017a\bin\data';
data_number=1;
for j = -20 :10:130
m_Abs=j;
[err_AbsMove,errstring11] = SMC100.PA_Set(controllerAdd2,m_Abs) ;
if (err_AbsMove ~= 0)
disp (['Error ' num2str(err_AbsMove) ' occurred while doing MoveAbsolute ! ']) ;
return ;
end
% 监测PA_Set执行完成
[err_StatusGet,ErrorCode12,OR_status,errstring12] = SMC100.TS(controllerAdd2);
while OR_status ~= '33'
disp (['Status ' num2str(err_StatusGet) ' Doing MoveAbsolute! ']) ;
[err_StatusGet,ErrorCode12,OR_status,errstring12] = SMC100.TS(controllerAdd2);
end
pause(2)
% get data
imaqhwinfo; % returns information about all the adaptors available on the system
win_info = imaqhwinfo('winvideo');