hello
i want to add an external force to my model through matlab script but i faced this error
(Java exception occurred:
java.io.IOException: Object: Cannot open file
[].OSIM. It may not exist or you do not have
permission to read it.
Thrown at object.cpp:105 in Object().
at
org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_1(Native
Method)
at org.opensim.modeling.Model.<init>(Model.java:783) )
while my OSIM file exist...
add external force to model
- saeed aram
- Posts: 20
- Joined: Mon Oct 09, 2017 2:26 pm
add external force to model
Last edited by saeed aram on Wed Mar 06, 2019 3:54 am, edited 1 time in total.
Tags:
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: add external force to model
The path to the .osim file is incorrect.
- saeed aram
- Posts: 20
- Joined: Mon Oct 09, 2017 2:26 pm
Re: add external force to model
thanks for your response now i faced to this error when i run my model after add external force
- Attachments
-
- Capture.PNG (65.81 KiB) Viewed 298 times
Re: add external force to model
Did you follow what the exception suggested-- invoke finalizeFromPrroperties() before writing the model to file?
You have to connect the force to something and this error suggests that the connections were not properly satisfied when you were constructing the model.
It may be useful to read through the API guide
You have to connect the force to something and this error suggests that the connections were not properly satisfied when you were constructing the model.
It may be useful to read through the API guide
- saeed aram
- Posts: 20
- Joined: Mon Oct 09, 2017 2:26 pm
Re: add external force to model
hello...no i didnt invoke finalizefromproperties...i will invoke that...but what the exception suggested relate to finalizeconnection()...i want to know both finalizefromproperties() and finalizeconnection() must invoke before model.print() ?jimmy wrote: ↑Wed Mar 06, 2019 5:45 amDid you follow what the exception suggested-- invoke finalizeFromPrroperties() before writing the model to file?
You have to connect the force to something and this error suggests that the connections were not properly satisfied when you were constructing the model.
It may be useful to read through the API guide