1,847
edits
m (Add to Category:External Packages.) |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
== Installation == | == Installation == | ||
1. Install Octave version 4.0.0 or higher and Scilab v.5.5.2 | 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) | ||
2. Install sockets package in Octave by executing | 2. Install the `sockets` package in Octave by executing | ||
''pkg install -forge | ''pkg install -forge sockets'' | ||
3. Download sci_cosim package from https://github.com/amromanov/sci_cosim | 3. Download the `sci_cosim` package from https://github.com/amromanov/sci_cosim | ||
4. Install sci_cosim package in Octave by executing | 4. Install the `sci_cosim` package in Octave by executing | ||
''pkg install | ''pkg install sci_cosim_0.1.3.tar.gz'' | ||
5. Start Scilab GUI and install | 5. Start the Scilab GUI and install the `Backdoor` toolbox from the main menu: Applications → Module manager - ATOMS → Technical → Backdoor → Install | ||
6. Restart Scilab. If every thing was done | 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" | ||
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/demo.tar.gz | 1. Download demo from https://github.com/amromanov/sci_cosim/raw/master/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 31: | Line 33: | ||
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. Run sci_sim_example.m | 5. Load the two packages ''pkg load sockets'' and ''pkg load sci_cosim'' in octave. | ||
6. Run sci_sim_example.m | |||
== Function description == | == Function description == | ||
Line 91: | Line 95: | ||
2) Download examples from the GitHub | 2) Download examples from the GitHub | ||
https://github.com/amromanov/sci_cosim/demo.tar.gz | 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 170: | Line 174: | ||
Distributed under the New BSD License | Distributed under the New BSD License | ||
[[Category:External Packages]] |