LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force Feedback Joystick (FFJ) control through LabView?

I have been trying to use a DLL (through the Call Library Function) that contains functions to read/write to a FFJ through DirectInput (DirectX). I can read information from the joystick just fine. But when I try to tell it to set up an effect it does nothing. Has anyone had any luck in creating a VI that will write a force to a FFJ? I have not found anyone that has done this successfully, so any help will be appreciated by many I'm sure.
-Ray
0 Kudos
Message 1 of 2
(2,815 Views)
Ray, I have never tried however I'll help if I can.
Are you getting errors from the dll or the VI? Or is the joystick just doing nothing with the commands you are sending it?

Have you been able to do it with another language like straight C? I am asking because I wonder if the issue is just transferring the data to the dll. I would suggest looking at the External Code in LabVIEW manual that can be found in help>>Search the LabVIEW Bookshelf. In addition there is a great example that shows how to send all sorts of data types to dlls. The example is in example finder, view by directory structure. Dll>>Data Passing>>Native Source Code.llb>>Call DLL.vi
0 Kudos
Message 2 of 2
(2,815 Views)