LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fuzzy Logic EMG Control Prosthesis

Hey people,

 

Im working on some EMG Interface project. So to keep it short, Im trying to use the EMG Signal as an Input , and via Fuzzy control to get a gesture recognition output.

I managed to get my EMG  signal (from 8 Sensors) displayed as graphs in LabVIEW, and now I want to put them through a Fuzzy system, and then as an output to get just text displayed (for example, I just want LabVIEW to display me the name of the Gesture).

 

I am working with a EMG Armband, the Myo from Thalmic labs. And everything on the topic Fuzzy systems for LabVIEW. I managed to define my Inputs, memberships and rules.

 

My question/problem is now, how to put everything together. Can someone explain me how to connect the inputs with the Fuzzy controller and how to get the output/gestures displayed?

 

I will upload my LabVIEW file so you can take look. I am very thankful for any kind of help

 

Lepina

 

PS. I will make an Tutorial on how to set all this up, so it would be a big help for other people if I manage to make it all work

 

 

 

 

 

Download All
0 Kudos
Message 1 of 6
(3,347 Views)

First, this sounds like an interesting, and challenging, project.  In my first glance at your code (which was a bit tricky, as I mostly work in LabVIEW 2016), I got "hung up" on the initial steps in processing the data, which looked clumsy to me.  I cooked up the attached Snippet that simulates the MyoBand by generating 8 channels of random data, each channel offset by 1 (so Channel 0 ranges from 0-1v, Channel 1 from 1-2v), converts it to a comma-delimited string, sends it "by wire" (no UDP needed in this simulation) to the "receiver" which turns the CSV string back into an array of numbers (much simpler than parsing and converting, which you do twice!), then plots all 8 channels on a single Chart (easier to compare) and assembles them into a 2D array of Samples.  Here it is ...

MyoSimulate.png

Then, of course, comes the Fuzzy Logic, which should be a separate topic.  Could you please describe what you are trying to do here?  You have two "dimensions" to your signal -- a temporal dimension governed by the sampling rate and number of samples and a "spatial" dimension governed by the location of the EMG leads and the number of EMG channels.  So what do you want to do with these data?  Are you interested in spatial processing, temporal processing, or spatio-temporal processing?

 

Bob Schor

0 Kudos
Message 2 of 6
(3,293 Views)

Hey Bob

 

first thanks for taking your time. The code I posted was taken from someone who already worked with the Myo Armband. Since I work only 2 weeks with LabVIEW I am still trying to figure out how it works, and how I can set up my idea.

 

I want to get the signals from the Myo Armband, and then translate the signals into recognized gestures. Someone told me that it is possible to do it with the Fuzzy System. My problem is, I know how to set up the rules and memberships in the Fuzzy designer, but I dont know how to connect it all together. Its maybe basic knowledge, but since Im new to LabVIEW I really have trouble with it.

I dont get it how to put the inputs in the Fuzzy Controller and how to get an output of the Fuzzy Controller, the output would be just displayed pictures or lit LEDs in my case.

 

 

I uploaded a flowchart what I am actually trying to do, I hope its easier now to understand.

 

0 Kudos
Message 3 of 6
(3,273 Views)

OK, thanks for the followup.  My area(s) of expertise are biosignals and LabVIEW data acquisition/processing.  I "know about" fuzzy logic, but have never actually worked with it.  I did find a number of references and tutorials on the Web by searching for LabVIEW Fuzzy Logic -- they may be useful to you in getting your biosignals into a Fuzzy Logic framework.

 

Bob Schor

0 Kudos
Message 4 of 6
(3,263 Views)

can you send me these links ? thanks in advance Bob

0 Kudos
Message 5 of 6
(3,260 Views)

Here's what I did:

  • Open Chrome (my Web browser).
  • In the Google Search Bar, type "LabVIEW Fuzzy Logic".
  • Look at the items returned and click on the ones that seem relevant.

What "seems relevant" to me might not be relevant to you, so I'd like you to "do it yourself", as you are the one with the Fuzzy Logic questions and (I presume) some Fuzzy Knowledge ...

 

Bob Schor

0 Kudos
Message 6 of 6
(3,258 Views)