Control strategies for functional electrical stimulation (FES) cycling Public Forum

Functional Electrical Stimulation Cycling (FES Cycling) is a rehabilitation technique that allows a spinal cord injured (SCI) volunteer to ride a bicycle contracting his/her muscles. This project provides a model and several scripts to test and develop th
POST REPLY
User avatar
SimTK Admin
Site Admin
Posts: 334
Joined: Tue Mar 15, 2011 12:32 pm

Control strategies for functional electrical stimulation (FES) cycling Public Forum

Post by SimTK Admin » Fri Jul 20, 2018 3:23 pm

Welcome to the Control strategies for functional electrical stimulation (FES) cycling public forum. Feel free to browse or search the topics for helpful information, or post a topic of your own.

User avatar
Sam Kazemi
Posts: 1
Joined: Thu Apr 04, 2019 4:36 am

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Post by Sam Kazemi » Sun Apr 07, 2019 7:30 am

To whom it may concern
I am writing to inquire about getting help, because I am new in Opensim, and without your help, I could not solve my university project. With respect to you and your great file, could you please help me to change the situation of sitting and duration of FES pulse? I look forward to hearing from you
Sincerely

User avatar
Ana de Sousa
Posts: 15
Joined: Thu Apr 07, 2016 4:21 pm

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Post by Ana de Sousa » Fri Jun 14, 2019 2:09 pm

Hello Sam,

I did not understand what you mean by "sitting".

About the durantion of the pulse, this is a simulation in which we approximate the FES stimulation as the excitation of the muscle. In OpenSim this excitation goes from 0 to 1 (1 being the maximum force that the muscle generates). Therefore, we do not specifically change pulse width.

We change the excitation in cycling_control.m:

Code: Select all

    % assing excitation to muscles
    for i = 1:length(musclesNames)
        if strcmp(musclesNames{i},'rect_fem_r')
            thisExcitation = Vector(1, quadRight);
        elseif strcmp(musclesNames{i},'vas_int_r')
            thisExcitation = Vector(1, quadRight);
        elseif strcmp(musclesNames{i},'rect_fem_l')
            thisExcitation = Vector(1, quadLeft);
        elseif strcmp(musclesNames{i},'vas_int_l')
            thisExcitation = Vector(1, quadLeft);
		elseif strcmp(musclesNames{i},'hamstrings_l')
            thisExcitation = Vector(1, hamsLeft);		
		elseif strcmp(musclesNames{i},'hamstrings_r')
            thisExcitation = Vector(1, hamsRight);
		elseif strcmp(musclesNames{i},'glut_max_r')
            thisExcitation = Vector(1, glutRight);		
		elseif strcmp(musclesNames{i},'glut_max_l')
            thisExcitation = Vector(1, glutLeft);
        else
            thisExcitation = Vector(1, ZERO);
        end
        % update modelControls with the new values
        if thisExcitation ~= ZERO
            osimModel.updActuators().get(musclesNames{i}).addInControls(thisExcitation, modelControls);
        end
    end
We look the for muscle and add the control signal related to that muscle.

User avatar
TARUN KARAK
Posts: 2
Joined: Mon Dec 10, 2018 2:54 am

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Post by TARUN KARAK » Mon Jun 24, 2019 12:30 am

Dear sir/mam,
can you please guide me in step by step how to use or run this model as I am very new in OpenSim.
Thank Regards
Tarun Karak

User avatar
Ana de Sousa
Posts: 15
Joined: Thu Apr 07, 2016 4:21 pm

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Post by Ana de Sousa » Tue Jun 25, 2019 12:43 pm

Hello Tarun Karak, the first step is to follow the instructions to script with Matlab available at https://simtk-confluence.stanford.edu:8 ... ith+Matlab.

And after downloading our package, you should follow the steps in README.txt.

In case you have any specific problems, we could look for solutions.

POST REPLY