10-20-2010 04:04 PM
Dear Experts,
I have a project trying to use Muscle signal to move a mouse cursor on computer screen. Basically, if the signal is positive, it moves to the right, and if it is negative it moves the cursor to the left.
I've seen a friend did it before way back, but don't remember how. I've been spending a lot of time trying stuffs, but none works.
It will be nice if someone can post a simple example or give me tips on how to do it
Thanks!
Solved! Go to Solution.
10-20-2010 04:55 PM
Moving the mouse on the cursor can be done using operating system calls. On Windows you can use the Windows API, and examples of doing this have been posted before, though you can see the attached VI.
The other part of this is how are you gettting the signal? Do you have some sort of DAQ hardware?
10-20-2010 04:56 PM
Do a search for "SetCursorPos". You should find some examples which use this Windows API function to control the cursor's position.
10-20-2010 05:33 PM
You can also find VI's for EMG processing and analysis in our free NI Biomedical Starter Kit. More information can be found on our Biomedical User Group at www.ni.com/biomedusers
10-21-2010 02:13 AM
Another point is that it may be better to move something other than the cursor, such as an element on a graph or a control. This can allow you to create a much nicer UI.
10-21-2010 09:55 AM
Don't give the mouse cursor the functionality of clicking, it may just "Try to take over the world!" Or at least your PC.
-AK2DM
11-17-2010 10:52 PM
Thanks. It works!
07-31-2014 07:44 AM
What if I also wanted to press a button?
07-31-2014 09:31 AM
@Steve_Block wrote:
What if I also wanted to press a button?
http://digital.ni.com/public.nsf/allkb/9BB3211F3469623649257360000E272C
Use search next time please.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord