Difference between revisions of "Single-Board-Heater-System/C2/Using-SBHS-Virtual-Labs-on-Windows/English"
Rupakrokade (Talk | contribs) |
Rupakrokade (Talk | contribs) |
||
Line 29: | Line 29: | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show Slide | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show Slide | ||
− | + | Pre-requisite | |
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| As a pre-requisite, watch the following tutorials | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| As a pre-requisite, watch the following tutorials | ||
Line 49: | Line 49: | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show Slide | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show Slide | ||
− | + | Pre-requisite | |
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Ensure that '''Scilab | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Ensure that '''Scilab '''is installed on your computer. |
− | '''Scilab | + | '''Scilab '''can be downloaded from |
− | '''sbhs.os-hardware.in/downloads''' | + | '''sbhs.os-hardware.in/downloads '''OR |
+ | |||
+ | '''www.scilab.org''' | ||
Line 62: | Line 64: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show slide | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show slide | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| All I added SBHS here. Is this correct?'''SBHS '''experiment '''Scilab''' codes are written using '''Scilab 5.3.3 '''and is the recommended version |
+ | |||
+ | A higher version of Scilab will work equally well | ||
− | |||
− | + | However, <nowiki><!--StartFragment--></nowiki>code modified in a higher version of scilab cannot be re-used in lower version<nowiki><!--EndFragment--></nowiki> | |
Line 98: | Line 101: | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Demo as per narration | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Demo as per narration | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Click on the download link for '''SBHS Scilab codes for windows''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Click on the download link for '''SBHS Scilab codes for windows''' | ||
+ | |||
It will download the '''Scilab''' code. | It will download the '''Scilab''' code. | ||
Line 129: | Line 133: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| <<PAUSE>> | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| <nowiki><<PAUSE>></nowiki> |
|- | |- | ||
Line 183: | Line 187: | ||
A slot is the time duration in which you can perform an experiment. | A slot is the time duration in which you can perform an experiment. | ||
+ | |||
In our case, a slot lasts for 55 minutes of every hour | In our case, a slot lasts for 55 minutes of every hour | ||
Line 196: | Line 201: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point to '''Book Now '''and then to '''Book future slot''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point to '''Book Now '''and then to '''Book future slot''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| '''Book Now''' option will appear only if the current slot is vacant | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| '''Book Now''' option will appear only if the current slot is vacant |
+ | |||
'''Book future slot''' option will always be available. | '''Book future slot''' option will always be available. | ||
+ | |||
It will allow two non-consecutive slots to be booked, each day. | It will allow two non-consecutive slots to be booked, each day. | ||
Line 208: | Line 215: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| You will receive an acknowledgement, with your booking details appearing on the top side. |
Line 258: | Line 265: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Switch to Slides | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Switch to Slides | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Do not change the contents of | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Do not change the contents of config file if |
− | |||
− | You are | + | You are inside IIT Bombay. OR |
− | + | ||
− | + | ||
− | + | ||
+ | You are outside IIT Bombay and using an open network. | ||
For example, at home or using a mobile internet | For example, at home or using a mobile internet | ||
+ | Change the contents of config file if | ||
− | + | You are outside IIT Bombay and using a proxy network. | |
− | + | ||
− | + | ||
− | You are | + | |
− | + | ||
− | For example at an institute, office etc. | + | For example, at an institute, office etc. |
Line 314: | Line 315: | ||
− | It will show various parameters of the experiment like | + | It will show various parameters of the experiment like |
Line 323: | Line 324: | ||
− | It | + | It also shows that the client version I am using is the latest. |
− | + | User login and Experiment status is red because I have still not logged in and the experiment is not running. | |
|- | |- | ||
Line 387: | Line 388: | ||
− | Just check the case for the bold textOn the | + | Just check the case for the bold textOn the Menu bar, lick on '''Execute '''option and then click on '''File with echo ''' |
− | If the network is working properly, it will open an '''Xcos''' diagram. | + | If the network is working properly, it will open an '''Xcos''' diagram. |
− | If | + | If it doesnt, it will show error on the '''Scilab''' console. |
|- | |- | ||
Line 401: | Line 402: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| '''step test''' '''Xocs''' diagram opens up >> Point to '''Heat '''and '''Fan''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| '''step test''' '''Xocs''' diagram opens up >> Point to '''Heat '''and '''Fan''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Using the '''step test''' '''Xocs''' diagram, we can set the experiment parameters such as '''Heat''' and '''Fan.''' |
|- | |- | ||
Line 433: | Line 434: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point as per narration | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point as per narration | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| It shows the values of '''current''' '''iteration''', '''heat''', '''fan''', '''temperature''' and '''time''' '''left''' for '''experimentation'''. |
|- | |- |
Revision as of 18:02, 16 January 2015
Title of script: Using SBHS virtual laboratory
Author: Rupak Rokade
Keywords: SBHS, Virtual labs, tutorial
| |
---|---|
Show Slide | Welcome to the spoken tutorial on Using Single Board heater System Virtual labs on Windows OS |
Show Slide | In this spoken tutorial we will learn about:
|
Show Slide
Pre-requisite |
As a pre-requisite, watch the following tutorials
1. Introduction to SBHS and 2. Introduction to Xcos.
|
Show Slide
Pre-requisite |
Ensure that Scilab is installed on your computer.
sbhs.os-hardware.in/downloads OR www.scilab.org
|
Show slide | All I added SBHS here. Is this correct?SBHS experiment Scilab codes are written using Scilab 5.3.3 and is the recommended version
|
Demo as per narration | Open a web browser.
In the address bar, type os-hardware.in This is the website for opensource hardware |
click on SBHS image | Click on the project SBHS. |
Click on Downloads | On the left hand side, click on Downloads |
Demo as per narration | Click on the download link for SBHS Scilab codes for windows
|
Go to the Desktop and point to the file. | Save it on the Desktop.
Here it is. |
Right-click on it >> show Extract here. | The file downloaded will be in zip format.
|
<<PAUSE>> | |
Now let us see the SBHS Virtual labs website. | |
Switch to browser | Switch to the web browser again.
|
Click on Virtual Labs | On the left hand side, click on the link Virtual Labs. |
This is the interface from where one can gain access to do remote experiments on SBHS. | |
Point to Login/Register | A first time user needs to register once, by clicking on Login/Register option. |
Show the registration form | After this, a form has to be filled and submitted.
It may take a few minutes |
Enter username
Enter Password |
I will now login with an already registered account.
I will enter my username and password. |
Point to “Book Slot”, “View/Delete Slot” | After a successful login, a user has access to Book Slot, View/Delete Slot etc.
|
Click on Book Slot option | After clicking on the Book Slot option, the client will have two choices. |
Point to Current Slot and Future Slot | One can either book Current Slot or a Future Slot |
Point to Book Now and then to Book future slot | Book Now option will appear only if the current slot is vacant
|
Click on Book Current Slot | I will click on Book Now option |
You will receive an acknowledgement, with your booking details appearing on the top side.
| |
Switch to the Desktop >> open the downloaded folder | Open the folder you downloaded and saved on the Desktop. |
Point to the folders: StepTest and common_files | You can see that there is a StepTest folder and common_files folder
|
Switch to Slides | Do not change the contents of config file if
You are outside IIT Bombay and using an open network. For example, at home or using a mobile internet Change the contents of config file if You are outside IIT Bombay and using a proxy network. For example, at an institute, office etc.
|
Switch to config file | Put the value of use proxy as Yes with Y capital
|
Open StepTest folder | Open the StepTest folder.
|
Open run.vbs | Locate and double click on the file run
|
Point to the various parameters | It will open the python based SBHS client application.
|
Point to Login >>
type username type password click on login |
It will also give you an option to login.
This username and password is the same you used to book a slot. Click on login.
|
Switch to StepTest folder | Switch to the StepTest folder which has the experiment files. |
Double-click on “stepc.sce” | Double-click on the stepc file.
it should also open the file in Scilab editor. |
Switch to Scilab console >> Type getd ../common_files | Switch to the Scilab console.
|
Switch to Scilab editor >> Click on Execute >> click on File with echo | Switch to the scilab editor.
|
step test Xocs diagram opens up >> Point to Heat and Fan | Using the step test Xocs diagram, we can set the experiment parameters such as Heat and Fan. |
Demo | I will set the heat to vary from 30% to 45% after 300 seconds.
|
Save and execute | Now let us save and execute the xcos diagram.
To execute, click on the start button on the menu bar |
If there is no error, it will open a plot window. | |
Point to the 3 graphs | It will consist of three graphs, Heat, Fan and Temperature from top to bottom. |
Switch to SBHS client | Switch to the SBHS client. |
Point as per narration | It shows the values of current iteration, heat, fan, temperature and time left for experimentation. |
Point to the log file name | It shows the log file name it has created for this experiment. |
Switch to the web browser
click on show video |
Switch to the browser
click on show video option It will give a live video feed of the SBHS you are currently accessing. |
Pause the recording | This is a real experiment and will take some time to complete.
|
Resume the recording >> Point to the graph shown | After sufficient time of experiment, the graph obtained is as shown.
|
Click on Stop button on xcos window | I will stop the simulation by clicking on the stop button on Xcos window. |
Close SBHS client | Close the SBHS client window after the experiment is over. |
switch to the experiment folder >> open logs folder >> point to your username folder | Now, switch to the experiment folder and open the logs folder.
|
Open username folder >> locate log file
|
Open this folder and locate your log file.
|
Show slide | Let us summarise.
In this tutorial we learnt What are the software installations required to do a remote experiment on SBHS
|
Show slide | Watch the video available at the following link
|
Show slide | The Spoken Tutorial Project Team
|
Show slide | Spoken Tutorial Project is a part of the Talk to a Teacher project.
|