add external force to model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
saeed aram
Posts: 20
Joined: Mon Oct 09, 2017 2:26 pm

add external force to model

Post by saeed aram » Mon Mar 04, 2019 5:31 pm

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...
Last edited by saeed aram on Wed Mar 06, 2019 3:54 am, edited 1 time in total.

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: add external force to model

Post by Dimitar Stanev » Tue Mar 05, 2019 1:42 am

The path to the .osim file is incorrect.

User avatar
saeed aram
Posts: 20
Joined: Mon Oct 09, 2017 2:26 pm

Re: add external force to model

Post by saeed aram » Wed Mar 06, 2019 5:39 am

thanks for your response now i faced to this error when i run my model after add external force
Attachments
Capture.PNG
Capture.PNG (65.81 KiB) Viewed 278 times

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: add external force to model

Post by jimmy d » Wed Mar 06, 2019 5:45 am

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

User avatar
saeed aram
Posts: 20
Joined: Mon Oct 09, 2017 2:26 pm

Re: add external force to model

Post by saeed aram » Wed Mar 06, 2019 6:19 am

jimmy wrote:
Wed Mar 06, 2019 5:45 am
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
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() ?

POST REPLY