Search found 13 matches

by RoZi A
Fri Aug 10, 2018 9:45 am
Forum: OpenSim
Topic: Matlab crashes after running ForwardTool
Replies: 6
Views: 647

Re: Matlab crashes after running ForwardTool

Which lines did you add between when it was working yesterday and when it stopped working today? I didn't add or remove anything in the codes, I mean both codes are exactly the same (before getting an error and after getting an error). I removed lines 13 and the loop, but still getting the error. I...
by RoZi A
Fri Aug 10, 2018 12:13 am
Forum: OpenSim
Topic: Matlab crashes after running ForwardTool
Replies: 6
Views: 647

Matlab crashes after running ForwardTool

Hi all, I am trying to run ForwardTool in the Matlab. All of my codes was working perfectly yesterday and the codes were able to save analysis results in .sto file. But today I encountered a problem. When I am running Matlab codes, Matlab crashes and gives me this error: "Matlab has encountered an i...
by RoZi A
Wed Aug 08, 2018 7:35 pm
Forum: OpenSim
Topic: can not see changes in fiber_length after scaling
Replies: 4
Views: 577

Re: can not see changes in fiber_length after scaling

Hi Thomas, Thanks for your reply. You are right, fiber length has nothing to do with mass. I read documentation again and I have noticed it was my misunderstanding. Sorry. I have one more question and I will be thankful if you could answer that. Is there any way that I can see the length of each bod...
by RoZi A
Wed Aug 08, 2018 1:05 pm
Forum: OpenSim
Topic: can not see changes in fiber_length after scaling
Replies: 4
Views: 577

can not see changes in fiber_length after scaling

Hi all, I am trying to use a manual scaling for arm26.osim model. Actually, I have two questions. I scaled the model by changing the total mass and I could see how the OpenSim automatically scaled the mass of each body. I have read that after scaling, OpenSim automatically will scale each muscle opt...
by RoZi A
Tue Aug 07, 2018 10:50 am
Forum: OpenSim
Topic: How to assign setMaxIsometricForce in Matlab API
Replies: 5
Views: 510

Re: How to assign setMaxIsometricForce in Matlab API

Hi Nicos,

I really really appreciate it. No error anymore :)

Thanks,
RoZi
by RoZi A
Tue Aug 07, 2018 9:07 am
Forum: OpenSim
Topic: How to assign setMaxIsometricForce in Matlab API
Replies: 5
Views: 510

Re: How to assign setMaxIsometricForce in Matlab API

Hi Aaron, Thanks for your answer. Your codes work perfectly when I type them in Command window, one by one, but when I run the whole for loop, I got below error. Do you have any idea? ( my current folder is bin when I run the codes). Java exception occurred: java.lang.RuntimeException: ArrayPtrs.get...
by RoZi A
Mon Aug 06, 2018 7:51 pm
Forum: OpenSim
Topic: How to assign setMaxIsometricForce in Matlab API
Replies: 5
Views: 510

How to assign setMaxIsometricForce in Matlab API

Hi All, I am trying to assign Activation,maxIsometricForce, optimalFiberLength, tendonSlackLength and pennationAngle for each muscles of arm26.osim within Matlab. Below are my codes: import org.opensim.modeling.*; %Call the model model = Model('arm26.osim'); %Get initial state of the model state = m...
by RoZi A
Thu Jul 26, 2018 9:44 am
Forum: OpenSim
Topic: Forward Dynamics Analyses in Matlab
Replies: 14
Views: 2798

Re: Forward Dynamics Analyses in Matlab

Hi Tom,

I really appreciate it. That's what I want!

RoZi
by RoZi A
Wed Jul 25, 2018 10:12 am
Forum: OpenSim
Topic: Forward Dynamics Analyses in Matlab
Replies: 14
Views: 2798

Re: Forward Dynamics Analyses in Matlab

Hi Tom, Thanks for your help. I looked through the links you sent and also printResults() in API. My understanding is that to use this tool, we need to specify the directory where the results have been saved, and by using this command we can print that. My problem is that I don't know where the resu...