Search found 8 matches

by Stefan Schmid
Mon Sep 16, 2019 3:47 am
Forum: OpenSim
Topic: Undefined function or variable 'Storage'.
Replies: 1
Views: 42

Undefined function or variable 'Storage'.

Hi I suddenly get the error message "Undefined function or variable 'Storage'." when I run the following code: import org.opensim.modeling.* path = 'C:\Users\sms2\3_Simulations\ExtLoads\LoadCarrying\'; ExtLoadFile = Storage([path 'ExtLoad_BP_Basefile.mot']); The code used to run on my old computer w...
by Stefan Schmid
Thu May 16, 2019 1:21 pm
Forum: OpenSim
Topic: Modify expressions of ExpressionBasedBushingForce through MATLAB...
Replies: 4
Views: 192

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: 192

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: 192

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: 97

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: 243

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: 243

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: 243

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...