Search found 52 matches

by Julian Atkinson
Wed Feb 22, 2017 1:02 am
Forum: OpenSim
Topic: Forward Dynamics Analyses in Matlab
Replies: 14
Views: 1998

Re: Forward Dynamics Analyses in Matlab

Update: So I have found a solution to my Muscle Analysis API problems. It is not the prettiest solution but I am now using the xml_read and xml_write functions to read a template xml file, update the tree in matlab, then print the updated tree as an xml file, then run it using the system function. T...
by Julian Atkinson
Fri Feb 17, 2017 4:35 am
Forum: OpenSim
Topic: Forward Dynamics Analyses in Matlab
Replies: 14
Views: 1998

Re: Forward Dynamics Analyses in Matlab

Hi there

I am trying something similar with the AnalyzeTool.

When I print the setup file (analyzeTool.print) after adding an analysis and setting the model, as shown above, the AnalysisSet in the xml file is totally empty.

Thanks
Julian
by Julian Atkinson
Mon Feb 13, 2017 11:40 pm
Forum: OpenSim
Topic: Set compute_moments to 'True'
Replies: 3
Views: 275

Re: Set compute_moments to 'True'

Thanks for your help James.

I was writing mine using the BOPS (https://simtk.org/projects/bops) as a guide, editing where necessary. They use the AnalyzeTool.h file. What is the difference between the two?

Thanks,
Julian
by Julian Atkinson
Mon Feb 13, 2017 12:08 am
Forum: OpenSim
Topic: Set compute_moments to 'True'
Replies: 3
Views: 275

Set compute_moments to 'True'

Hi there I am trying to use the Muscle analysis tool through the API using matlab. I am trying to set the compute_moments value to true but I cannot find the setComputeMoments setter anywhere? Alternatively I tried to pass in a template xml file however matlab would crash and shut down when I attemp...
by Julian Atkinson
Thu Feb 09, 2017 3:26 am
Forum: OpenSim
Topic: Analyze API problems
Replies: 2
Views: 281

Re: Analyze API problems

Thanks Dimitar I have tested it a number of times, even with xml files that I have run with the OpenSim GUI. I have made sure my path is correct, however it still crashes. Perhaps it is an xml version issue? Anyway, my alternative if I cannot use an xmlTemplate to set some of the values, I could pas...
by Julian Atkinson
Thu Feb 09, 2017 1:30 am
Forum: OpenSim
Topic: Analyze API problems
Replies: 2
Views: 281

Analyze API problems

Hi there I am using matlab to run the API for analysis. If I try and pass a xmltemplate file into the analyze tool it does not work. It is clear that it does not like the placeholder files that I have placed in my template. I have seen this error in other forums, but in those cases it seems to be wh...
by Julian Atkinson
Thu Feb 02, 2017 12:20 am
Forum: OpenSim
Topic: ScaleTool API execution and outputs
Replies: 1
Views: 384

ScaleTool API execution and outputs

Hi all I have been struggling with the scaleTool API for some time now. I am writing this post to both help others that have struggled with the scaleTool API, and to ask a few more questions. I have managed to now get it running with the help of the following forums: Help with execution - https://si...
by Julian Atkinson
Wed Feb 01, 2017 11:53 pm
Forum: OpenSim
Topic: Do I rerun ik & id after rra?
Replies: 2
Views: 307

Re: Do I rerun ik & id after rra?

Hi Dimitar

Thank you for your help. Yes, that makes sense!

Julian
by Julian Atkinson
Tue Jan 31, 2017 5:21 am
Forum: OpenSim
Topic: Do I rerun ik & id after rra?
Replies: 2
Views: 307

Do I rerun ik & id after rra?

Good day Once I have run ik, id and rra and I have my adjusted model calculated by rra, do I then use that model to rerun ik and id? Also, would it then be better to use the adjusted model to run ik and id on different trials from the same session, or create an adjusted model for each and select the...