Blame | Last modification | View Log | RSS feed
%ROTATIONSTAGE Matlab wrapper class for the RotationStage C++ class.
% Creates a connection to the Newmark Systems Inc. rotation stage
% controller.
%
% Jakob Wilm, DTU 2014
classdef RotationStage < handle
properties (SetAccess = private, Hidden = true)
objectHandle; % Handle to the underlying C++ class instance
end
methods
% Constructor - Create a new C++ class instance
function this = RotationStage()
this.objectHandle = RotationStageMex('new');
end
% Destructor - Destroy the C++ class instance
function delete(this)
RotationStageMex('delete', this.objectHandle);
end
% moveAbsolute
function varargout = moveAbsolute(this, angle)
[varargout{1:nargout}] = RotationStageMex('moveAbsolute', this.objectHandle, angle);
end
% moveRelative
function varargout = moveRelative(this, angle)
[varargout{1:nargout}] = RotationStageMex('moveRelative', this.objectHandle, angle);
end
% getAngle
function varargout = getAngle(this)
[varargout{1:nargout}] = RotationStageMex('getAngle', this.objectHandle);
end
% wait
function varargout = wait(this)
[varargout{1:nargout}] = RotationStageMex('wait', this.objectHandle);
end
end
end