
Science SPORE Prize
November 2011

The Open Source Physics Project is supported by NSF DUE-0442581.
|
Question about buttons in EJS-->Search and "translate the simulation interface" buttons
post and replies
Return to the Question about buttons in EJS-->Search and "translate the simulation interface" buttons thread
Login to post to this thread
|
Search and "translate the simulation interface" buttons
- Jun 13, 2012 at 10:11AM
|
Eduardo Garcia
13 Posts
|
Hello:
I have seen that EJS has a "translate the simulation interface" button which I do not know how to use, and I haven't found it referenced in any guide I have found available on the internet. I see it is for defining string in another language, but how does it work? How can the user change language if different language are available? Does someone know the functionality of this button?
Also, when I right-click the "Search" button on the toolbar to the right I get the following search options:
Search String Search for inspectors with errors Show property inspector when errors occur
What are the two last options for?
Thank you for your time,
Eduardo Garcia.
|
|
Re: Re: Search and "translate the simulation interface" buttons - Jun 13 2012 10:25AM
|
Eduardo Garcia
13 Posts
|
I feel a little silly I did not see that video when I searched this site! Thank you!
Now the only thing I do not understand is the search button options I mentioned in the opening post. If someone can explain them to me I will be very thankful!
Thank you,
Eduardo Garcia
|
|
Re: Search and "translate the simulation interface" buttons - Jun 13 2012 6:01PM
|
Francisco Esquembre
71 Posts
|
Eduardo,
If you use a Model variable to link it to a property of a View element and then change the name of this variable, this immediately causes a side-effect error in the View because the original variable does not exist.
EJS will complain and display all the property inspectors where this variable is used and show the variable with a pink background, for you to know.
This can be a nuisance if you are renaming many of your variables. So, you can switch off this feature unchecking the "Show property when errors occur". Then, EJS will not display the inspector at each error.
When you are done changing all the names, you may wonder what old variables are still there. You then choose "Search for inspectors with errors" and this will bring in all the property inspectors with variables that are no defined in the Model.
(Notice, however, that it is legal to use variables in the view that are NOT defines in the model... This seemed to me a good idea when I first designed EJS, but I discourage it!)
Paco
|
|
Re: Re: Search and "translate the simulation interface" buttons - Jun 15 2012 4:39AM
|
Eduardo Garcia
13 Posts
|
Ok, now I understand, thank you very much!
|
|
Re: Re: Search and "translate the simulation interface" buttons - Jun 15 2012 5:29AM
|
Eduardo Garcia
13 Posts
|
Hello, I have another quick question:
I was seeing the EJS options tab and there is a option, "Show the experiments panel", which makes an experiments panel appear on the main EJS program window. I wanted to ask you, what is this panel for? I have never noticed this panel before...I searched for it in google and in the EJS wiki, but found nothing about it...can you explain to me what this page can do please?
Thank you,
Eduardo Garcia
|
|
Re: Re: Re: Search and "translate the simulation interface" buttons - Jun 15 2012 6:07AM
|
Francisco Esquembre
71 Posts
|
Oops! You were not supposed to see this option!
This is part of a hidden part of EJS which is still under development. We are resuming this work which will allow to use a simulation as a complete subroutine.
For instance, suppose you want to run a simulation 100 times with different initial conditions and then compare the results. This "Experiments" panel should allow you to do this...
But, as I say, it is still under development. I'll try to hide this option. Please ignore this option.
Paco
|
|
Re: Re: Re: Re: Search and "translate the simulation interface" buttons - Jun 15 2012 7:06AM
|
Eduardo Garcia
13 Posts
|
Haha, I understand, I will keep the secret ;)
Thank you for your time,
Eduardo Garcia
|
|