A user can create a force feedback effect object in MATLAB workspace. Parameters used to define such objects are similar to those used in DirectX FFB effect structure. MATLAB maintains these FFB objects in its workspace and also the corresponding DirectX FFB effect structure using a DLL (C++ mex-function). This DLL incorporates DirectX functions and creates a linked list of DirectX effect structures. The effect objects in MATLAB can be manipulated within MATLAB and the changes are reflected in the corresponding effect structure in DLL. Toolbox contains commands to start, stop, and modify an effect. Presently, this toolbox can create eleven types of DirectX force feedback effects with envelope structure.
Additionally, the toolbox can read the X and Y angles of the device axis along with time stamp. Time information has adequate resolution to calculate time steps in microseconds. The time step can be used to estimate velocities and acceleration of the device axis.
>> directm('Matlab')
??? Invalid MEX-file 'C:\Program
Files\MATLAB\R2008a\toolbox\directm\directm\directm.dll': The specified module
could not be found.
??? Error using ==> directm at 29
Missing MEX-file directm.DLL
Error in ==> t at 1
directm('matlab');
thanks
13 Sep 2008
Bryan Paton
The toolbox works fine it is just the documentation that is a little poor. You just need to pass the initialisation function an actual window name. The easiest way to do this is to call "figure" which creates a blank figure window before initialising the toolbox. The name of the newly created window will be "figure x" where is 1, 2, 3 etc depending on how many figure windows you have open. Once this is done you just create a new effect and start it. Very easy to control and gives you access to all the force feedback parameters.
02 Dec 2006
kumar swamy
try it with tmas3206416DSK
26 May 2006
amine hadj
There is problem within the file DirectM.m !! it does not work properly