No BSD License  

Highlights from
Force Feedback Toolbox for MATLAB/Simulink

3.14286

3.1 | 7 ratings Rate this file 5 Downloads (last 30 days) File Size: 197 KB File ID: #4939

Force Feedback Toolbox for MATLAB/Simulink

by Chet

 

17 May 2004 (Updated 19 May 2004)

Force Feedback Toolbox (FFB) can be used with FFB devices and can create FFB effect objects.

| Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB release MATLAB 6.5 (R13)
Other requirements DirectX 9
Tags for This File  
Everyone's Tags
ffb, force, force feedback, games, toolbox
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
24 Dec 2012 Dev  
24 May 2011 Renate

same error that was mentioned before:

Invalid MEX-file 'C:\Program
Files\...\DirectMToolbox\DirectM\directm.dll':
The specified module could not be found.

checked the directm.dll with dependency walker, which stated that the following files are missing:

MSVCP60D.DLL
IESHIMS.DLL

14 Oct 2010 Chris

getting the following error... any ideas?

>> directm('Matlab')
??? Invalid MEX-file 'C:\Program
Files\MATLAB\R2008a\toolbox\directm\directm\directm.dll': The specified module
could not be found.

thanks

10 Nov 2009 Bryan

Read my last comment. Create a figure window and then pass that to the function.

figure

directm('Figure 1')

One thing I noticed is that you need to rename the directm.dll file as it unzips as DirectM.dll and the functions are expecting the lower case naming.

24 Sep 2009 Hasitha Samarajeewa

hi,
I can't get it to work. Its saying

??? 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

26 Aug 2004 Tim S

Broken.

23 May 2004 Igor Manovic

Nice work, great utility!!!

23 May 2004 Rohit Thali  

Contact us