-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot perform simulation in Matlab, (version 7.4.0), error while setting the Trees #96
Comments
There was another thread with an issue with Matlab 2018b and reinstall helped. Nevertheless: do any other xml files work when trying the same workflow? As a note: if you have any questions on the GIM, you can reach out to me ([email protected]) in case you are also looking for preclinical GIM models or other extensions. |
Thanks for your reply, but unfortunately I've already tryied to reinstall Matlab and to open other .xml files with the Gui of generateMatlabCodeForXML.m and I have still the same problem with Matlab (I need it to perform a simulation of an OGTT with the specific values of a particular individual developed with pk-sim, to check how much his blood values are different from the original ones). |
Can you run some scripts without using the UI? The UI does nothing more than generating some Matlab scripts on your behalf. |
Yes, I can run and plot .m scripts |
I am not sure what this plot.m is. Does this script initiate some calls to the toolbox? E.g.load a simulation, set parameters etc? If yes, then yiuycan for the time being bypass the UI all together and simply reuse a previous script and adapt it for your need. Does it make sense? |
Sorry maybe I misunderstood the previous question, what I meant is that at the moment I am using Matlab to run .m scripts (none of these uses some functions or similar related to Mobi toolbox), and they work perfectly (just to say that for the rest Matlab seems to work fine), I have problems only when I run generateMatlabCodeForXML.m and I try to open a xml file using the Ui |
@Dictatrix In your very first message one can see some error messages (unfortunately partly hidden). Can you please:
|
Did you install the Matlab-Toolbox as part of the OSP-Suite setup?
|
The script ( To correct this, you will have to edit |
So if I understand you correct, you were able to execute |
So how did you manage to run
|
Your Matlab path is totally messed up. As already told: remove all of this except |
@ALL: I moved the issue to the Matlab Toolbox repo to avoid unnecessary notifications in the forum as this seems to be either an issue with the toolbox or a configuration issue. |
@Yuri05 For example it would be great if the message "SimModel.xsd" not found would tell us in which folders the schema was being searched (or which Schema paths were attempted). At least it would be much clearer for the user to realize that something is missing and easier for us to spot what is missing |
I've already tried to remove all except this C:\Program Files\Open Systems Pharmacology\MoBi Toolbox for Matlab 7.4 (and its subfolders), but I still have that error, I just can try to uninstall and reinstall all again |
Now you can save your Matlab path permanently (no need for addpath in every new session) and try initSimulation with e.g. the GIM model. |
Hi, Thank you for the detailed explanation on the debugging. I recently encountered this error on one of my model files files in matlab. I am not really sure what variableParameters is it referring to? initSimulation('C:\temp\28032019_BM_noRenal.xml')
|
@PriKalra Please open new GitHub-issues for new topics, thanks. |
Hi all, I'm trying to use Matlab 2018b (academic license) 64 bit on Windows 10, the OSP version I am currently using is the 7.4.0, and as showed in the picture I posted below, I'm having problems to perform simulation using Matlab.
I've already noticed that in this forum there is a similar post about this problem, but even reading that one, I don't understand what is the reason why I cannot perform any simulation (maybe the problem is different because that one was about an old version), and I have no idea what exactly I have to do to solve my problem.
I need to plot GIM_Healthy.xml model, but I'm stucked since days and I don't know what else I can do to solve.
Could please someone try to explain me step by step, what are the files/folders that I must locate in some certain Matlab folders to allow my simulation to be performed without errors?
Please if you can try to explain in a simply and specific way.
Any help and advice will be very appreciate.
Thanks in advance.
Edit: When I try to open the same xml file for the second time (exactly the second time, cause the first time I always have the error 1) in the GUI to perform the simulation, I don't get the error 1 while setting the Tree, I get "please wait, model is getting initialized" or something like that, but after a few of seconds Matlab get closed without showing any error (I suppose that it crashes, but I don't have idea why is this happening).
The text was updated successfully, but these errors were encountered: