Search found 7 matches

by Stefan Schmid
Thu May 16, 2019 1:21 pm
Forum: OpenSim
Topic: Modify expressions of ExpressionBasedBushingForce through MATLAB...
Replies: 4
Views: 149

Re: Modify expressions of ExpressionBasedBushingForce through MATLAB...

This is exactly what I was looking for and it works - thank you so much for your help Thomas!
-Stefan
by Stefan Schmid
Thu May 16, 2019 12:22 pm
Forum: OpenSim
Topic: Modify expressions of ExpressionBasedBushingForce through MATLAB...
Replies: 4
Views: 149

Re: Modify expressions of ExpressionBasedBushingForce through MATLAB...

Thanks for the reply Thomas! However, I could still not figure out how to do it. I have a model, which includes the expression-based bushing force "L5S1_Disc_forces". In the OpenSim GUI, I can see this force under Forces/Other Forces. And when I run the following code in MATLAB, I can "see" the forc...
by Stefan Schmid
Tue May 07, 2019 12:47 pm
Forum: OpenSim
Topic: Modify expressions of ExpressionBasedBushingForce through MATLAB...
Replies: 4
Views: 149

Modify expressions of ExpressionBasedBushingForce through MATLAB...

Hi

It seems that I'm not able to figure out how to modify the expressions (e.g. <Mx_expression>) of an ExpressionBasedBushingForce through MATLAB. Can anyone help me with that?

Thanks
-Stefan
by Stefan Schmid
Fri Nov 23, 2018 12:40 pm
Forum: OpenSim
Topic: Clear/delete out.log-file...
Replies: 1
Views: 84

Clear/delete out.log-file...

Hi all I'm running a list of static optimizations through MATLAB using a for-loop. Is there a way to clear/delete the out.log-file after each iteration? The following does not work (Error-message: "Warning: File not found or permission denied"): fclose('all') delete('out.log') Thanks for your help! ...
by Stefan Schmid
Tue Nov 20, 2018 12:41 pm
Forum: OpenSim
Topic: Adding actuators for static optimization through MATLAB
Replies: 3
Views: 217

Re: Adding actuators for static optimization through MATLAB

Hi James

I have been able to resolve the issue by adding the following line before writing the setup back to file:

statop.setModelFilename(modelfile);

Thanks again for your support!

All the best
-Stefan
by Stefan Schmid
Tue Nov 20, 2018 11:27 am
Forum: OpenSim
Topic: Adding actuators for static optimization through MATLAB
Replies: 3
Views: 217

Re: Adding actuators for static optimization through MATLAB

Hi James Thank you very much for your suggestion. What now happens is the following: When I write the setup back to file (statop.print(statopsetupfile_temp)), it does not include writing out the model file (i.e. the line where the the model file name should be remains <model_file />), which causes M...
by Stefan Schmid
Tue Nov 20, 2018 10:29 am
Forum: OpenSim
Topic: Adding actuators for static optimization through MATLAB
Replies: 3
Views: 217

Adding actuators for static optimization through MATLAB

Hi all We are trying to run a static optimization through MATLAB with an added set of residual actuators. According to a previous forum post (https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=91&t=8480&p=0&start=0&view=), we have added our actuator set using the follwing code (blue highlighted se...