Editing Sci cosim
Jump to navigation
Jump to search
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 | 1. Install Octave version 4.0.0 or higher and Scilab v.5.5.2 or higher | ||
2. Install | 2. Install sockets package in Octave by executing | ||
''pkg install -forge sockets'' | ''pkg install -forge -auto sockets'' | ||
3. Download | 3. Download sci_cosim package from https://github.com/amromanov/sci_cosim | ||
4. Install | 4. Install sci_cosim package in Octave by executing | ||
''pkg install sci_cosim_0.1. | ''pkg install -auto sci_cosim_0.1.2.tar.gz'' | ||
5. Start | 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 | 6. Restart Scilab. If every thing was done correct, after restart there will message in command window "BackDoor: listening to connections on TCP port" | ||
== Running demo == | == Running demo == | ||
1. Download demo from https://github.com/amromanov/sci_cosim | 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 | 5. Run sci_sim_example.m | ||
== Function description == | == Function description == | ||
Line 48: | Line 44: | ||
''sci_cmd'' - executes single command in Scilab. | ''sci_cmd'' - executes single command in Scilab. | ||
''sci_sim'' - starts xcos simulation in Scilab. In the most cases, .xcos file should be in the Octave current directory. To set simulation duration use End block in Xcos and transfer its parameter as variable from Octave, using sci_setvar. | |||
== Author and Licensing == | == Author and Licensing == | ||