Editing Sci cosim

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:


== Installation ==
== Installation ==
1. Install Octave (version 4.0.0 or higher) and Scilab v.5.5.2 _specifically_ (note: the BackDoor module is currently not supported for the new SciLab v6.0.0 version)
1. Install Octave version 4.0.0 or higher and Scilab v.5.5.2 or higher


2. Install the `sockets` package in Octave by executing  
2. Install sockets package in Octave by executing  


''pkg install -forge sockets''
''pkg install -forge -auto sockets''


3. Download the `sci_cosim` package from  https://github.com/amromanov/sci_cosim  
3. Download sci_cosim package from  https://github.com/amromanov/sci_cosim  


4. Install the `sci_cosim` package in Octave by executing  
4. Install sci_cosim package in Octave by executing  


''pkg install sci_cosim_0.1.3.tar.gz''
''pkg install -auto sci_cosim_0.1.3.tar.gz''


5. Start the Scilab GUI and install the `Backdoor` toolbox from the main menu: Applications → Module manager - ATOMS → Technical → Backdoor → Install
5. Start Scilab GUI and install Toolbox Backdoor by pressing in main menu Applications → Module manager - ATOMS → Technical → Backdoor → Install


6. Restart Scilab. If every thing was done correctly, after restarting there will be a message in the command window "BackDoor: listening to connections on TCP port"
6. Restart Scilab. If every thing was done correct, after restart there will message in command window "BackDoor: listening to connections on TCP port"
 
You _may_ encounter an error that the files "backdoor.start" / "backdoor.quit" cannot be found. This occurs if the files are named e.g. "BackDoor.start" on the disk (i.e. case-sensitive). Simply rename the files to lowercase and restart SciLab.


== Running demo ==
== Running demo ==


1. Download demo from https://github.com/amromanov/sci_cosim/raw/master/demo.tar.gz
1. Download demo from https://github.com/amromanov/sci_cosim/demo.tar.gz


2. Extract it to any folder, where your user has read/write rights
2. Extract it to any folder, where your user has read/write rights
Line 33: Line 31:
4. Run Octave and change folder to the one, where you have extracted demo
4. Run Octave and change folder to the one, where you have extracted demo


5. Load the two packages ''pkg load sockets'' and ''pkg load sci_cosim'' in octave.
5. Run sci_sim_example.m
 
6. Run sci_sim_example.m


== Function description ==
== Function description ==
Line 53: Line 49:


== Usage cases ==
== Usage cases ==
In all usage case, described below, user doesn't need to have any knowledge about using Scilab interface and in the most cases they don't have to know Scilab scripting language. You can use only Xcos and do the rest of things in Octave.  
In all usage case, described below, user doesn't need to have any knowledge about using Scilab interface and in the most cases he doesn't have to know Scilab scripting language. You can use only Xcos and do the rest of things in Octave.  


1. Simple dynamic systems rapid prototyping.  
1. Simple dynamic systems rapid prototyping.  
Line 92: Line 88:
== How to Run and Change an Xcos diagram ==
== How to Run and Change an Xcos diagram ==


1) After installing Scilab and and the sci_cosim package and getting the Toolbox Backdoor for Scilab to work, then you can try this help section.
1) After installing Scilab and and the sci_cosim package and getting the "backdoor" to work, then you can try this help section.
 
2) Get these 2 files from Dropbox and put them in your PWD.


2) Download examples from the GitHub
https://github.com/amromanov/sci_cosim/raw/master/demo.tar.gz


3) Click in the sci_pid_model.zcos file to start Scilab and Xcos You should see a diagram of the control system.
3) Click in the sci_pid_model.zcos file to start Scilab and Xcos You should see a diagram of the control system.
Line 174: Line 170:


Distributed under the New BSD License
Distributed under the New BSD License
[[Category:Packages]]
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)