Difference between revisions of "Single-Board-Heater-System/C2/Accessing-SBHS-through-Scilab-on-Windows/English"
Rupakrokade (Talk | contribs) |
Nancyvarkey (Talk | contribs) |
||
Line 7: | Line 7: | ||
− | {| | + | {| border=1; |
! <center>Visual Cue</center> | ! <center>Visual Cue</center> | ||
! <center>Narration</center> | ! <center>Narration</center> | ||
Line 20: | Line 20: | ||
|- | |- | ||
| 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;"| In this spoken tutorial, | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In this spoken tutorial, we will learn: |
− | + | ||
# To set up '''serial''' communication between '''Scilab''' and '''SBHS'''. | # To set up '''serial''' communication between '''Scilab''' and '''SBHS'''. | ||
# To perform a '''Step Test''' experiment. | # To perform a '''Step Test''' experiment. | ||
− | |||
− | |||
|- | |- | ||
| 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;"| For this tutorial, I am using |
− | + | * '''Windows-7''' Operating System and | |
− | * '''Windows-7''' | + | |
* '''Scilab''' 5.3.3 | * '''Scilab''' 5.3.3 | ||
− | |||
− | |||
|- | |- | ||
Line 43: | Line 37: | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| You may download '''Scilab''' from | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| You may download '''Scilab''' from |
− | + | ||
www.scilab.org | www.scilab.org | ||
− | To install '''Scilab''', watch the Scilab spoken tutorial series on http:/ | + | To install '''Scilab''', watch the '''Scilab''' spoken tutorial series on http://spoken-tutorial.org |
|- | |- | ||
| 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;"| Before proceeding with this tutorial, you should watch- | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Before proceeding with this tutorial, you should watch- | ||
− | |||
# '''Introduction to Xcos''' | # '''Introduction to Xcos''' | ||
− | |||
# '''Connecting SBHS to computer''' | # '''Connecting SBHS to computer''' | ||
− | The relevant tutorials for these, are available in this series, on the spoken tutorial website | + | The relevant tutorials for these, are available in this series, on the '''spoken tutorial''' website. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show''' os-hardware.in''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show''' os-hardware.in''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| To | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| To begin, we have to download the '''Scilab Step Test''' code. |
Line 69: | Line 60: | ||
− | In the address bar type, '''os-hardware.in''' | + | In the address bar, type, '''os-hardware.in''' |
|- | |- | ||
Line 77: | Line 68: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Select '''SBHS Local Code '''>> Save on '''Desktop''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Select '''SBHS Local Code '''>> Save on '''Desktop''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Download the file available under the section '''SBHS Local Code''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Download the file available under the section '''SBHS Local Code'''. |
− | + | And save this file on the '''Desktop.''' | |
|- | |- | ||
Line 114: | Line 105: | ||
− | In this window, click on '''Device Manager'''. | + | In this window, click on the '''Device Manager'''. |
Line 120: | Line 111: | ||
− | You may also need to vary the steps that I demonstrate here to suit your Windows version. | + | You may also need to vary the steps that I demonstrate here to suit your '''Windows''' version. |
|- | |- | ||
Line 130: | Line 121: | ||
− | Here it is | + | Here it is. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Double click on the '''Ports(COM & LPT)''' option | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Double click on the '''Ports(COM & LPT)''' option | ||
− | | 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;"| Double-click on this option to open it. |
|- | |- | ||
Line 147: | Line 138: | ||
− | For '''USB''' connection, it may change to some other number. | + | For a '''USB''' connection, it may change to some other number. |
Line 154: | Line 145: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the identified COM port number | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the identified COM port number | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In my case it is ''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In my case it is '''COM14.''' |
− | Sometimes the '''COM''' port number you get after connecting a '''USB''' cable is a two-digit number. | + | Sometimes the '''COM''' port number you get after connecting a '''USB''' cable, is a two-digit number. |
Line 203: | Line 194: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the close option on the '''Device Manager''' | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the close option on the '''Device Manager''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Close the '''Device Manager''' and the remaining | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Close the '''Device Manager''' and the remaining windows. |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
Line 230: | Line 218: | ||
Choose '''ser underscore init.sce >> '''click on '''Open.''' | Choose '''ser underscore init.sce >> '''click on '''Open.''' | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| If it doesn't open the file, click on '''File''' menu then on '''Open a file.''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| If it doesn't open the file, click on '''File''' menu, then on '''Open a file.''' |
Line 247: | Line 235: | ||
Type | Type | ||
− | + | '''get d space ../common_files/ '''and press '''Enter.''' | |
− | ''' | + | |
Line 272: | Line 259: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Change the port number | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Change the port number | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Change the '''port''' number to the one you identified a few minutes back. | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Change the '''port''' number to the one you identified just a few minutes back. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point accordingly | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point accordingly | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Make sure | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Make sure this is in single quotes. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Save the file | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Save the file | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Do not make any other changes to the content 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 make any other changes to the content of this file. |
Line 291: | Line 278: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point to the message | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point to the message | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| On the '''Scilab''' '''workspace '''you will get a message '''COM | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| On the '''Scilab''' '''workspace '''you will get a message '''COM Port Opened''' |
− | However, it is also possible that you get an error message | + | However, it is also possible that you get an error message. |
− | Let me explain using slides, how do you handle a typical error | + | Let me explain using slides, how do you handle a typical error. |
− | Let me switch to slides | + | Let me switch to slides. |
|- | |- | ||
| 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;"| In case a '''TCL/TK''' related error is displayed, | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In case a '''TCL/TK''' related error is displayed, |
− | + | *Reconnect the '''USB''' cable connected to the '''SBHS''' and execute this file again. | |
− | + | *Check once if the '''COM''' port number has changed. | |
− | Check once if the '''COM''' port number has changed. | + | *If it still doesn't work, restart '''Scilab''' and repeat the process. |
− | + | ||
− | + | ||
− | If it still | + | |
|- | |- | ||
Line 326: | Line 310: | ||
'''xcos space step_test.xcos''' | '''xcos space step_test.xcos''' | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In the '''Scilab '''workspace, execute the following commands - | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In the '''Scilab '''workspace, execute the following commands - | ||
− | |||
Type | Type | ||
− | |||
− | |||
'''exec space step_test.sci''' and press '''Enter.''' | '''exec space step_test.sci''' and press '''Enter.''' | ||
− | + | Then type | |
− | + | ||
'''xcos space step_test.xcos''' and press '''Enter.''' | '''xcos space step_test.xcos''' and press '''Enter.''' | ||
Line 341: | Line 321: | ||
|- | |- | ||
| 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;"| This will launch the '''xcos interface '''made for '''step test '''experiment. | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| This will launch the '''xcos interface ''' made for '''step test '''experiment. |
|- | |- | ||
Line 352: | Line 332: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| click on the '''simulation''' tab | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| click on the '''simulation''' tab | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In the '''menubar''' of the '''Xcos''' window, click on the '''Simulation''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| In the '''menubar''' of the '''Xcos''' window, click on the '''Simulation''' option. |
|- | |- | ||
Line 367: | Line 347: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point at the second plot | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point at the second plot | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The second graph is of '''Fan in percentage''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The second graph is of '''Fan in percentage'''. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point at the third plot | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Point at the third plot | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The third graph is of '''Temperature in degree Celsius''' | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The third graph is of '''Temperature in degree Celsius'''. |
|- | |- | ||
| 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;"| There are some things to be noted | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| There are some things to be noted. |
Line 395: | Line 375: | ||
− | You will find these '''LEDs '''next to the '''USB''' connector on the '''SBHS '''as shown in this image | + | You will find these '''LEDs '''next to the '''USB''' connector on the '''SBHS, '''as shown in this image |
|- | |- | ||
Line 402: | Line 382: | ||
− | I will now pause the recording for | + | I will now pause the recording for some time. |
|- | |- | ||
Line 409: | Line 389: | ||
− | We can see that the temperature has responded to the '''step change '''in the heat value. | + | We can see that the temperature has responded to the '''step change '''in the '''heat''' value. |
|- | |- | ||
Line 430: | Line 410: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show slides | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Show slides | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Let me 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;"| Let me switch to slides. |
Line 436: | Line 416: | ||
− | This file assumes that the '''port''' number provided in '''ser underscore init.sce '''file is correct. | + | This file assumes that the '''port''' number provided in the '''ser underscore init.sce '''file is correct. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the S'''top''' option | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click on the S'''top''' option | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| To stop the experiment, click on | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| To stop the experiment, click on the '''Stop''' option available in the menu bar of the '''Xcos''' window. |
Line 453: | Line 433: | ||
− | To | + | To reset, press the '''Reset''' button for 1 or 2 seconds and then release it. |
Line 463: | Line 443: | ||
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Go to the '''Step test''' folder and point to the file | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Go to the '''Step test''' folder and point to the file | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The '''data file''' for this experiment is saved in '''Step test''' folder. | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| The '''data file''' for this experiment is saved in the '''Step test''' folder. |
+ | Let me show you this file. | ||
The name of the '''data file''' is in the format of a time stamp. | The name of the '''data file''' is in the format of a time stamp. | ||
− | Read the '''data file''' name as Year Month Date Hours Minutes Seconds. | + | Read the '''data file''' name as Year Month Date Hours Minutes Seconds dot txt. |
|- | |- | ||
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click and open the file. | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.097cm;"| Click and open the file. | ||
− | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Let me open and show you the content of the data file | + | | style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.097cm;"| Let me open and show you the content of the data file. |
− | It has values of '''heat fan '''and''' temperature''' for every sample. | + | It has values of '''heat, fan '''and''' temperature''' for every sample. |
Line 483: | Line 464: | ||
|- | |- | ||
| 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;"| Now, let us summarise. |
Line 489: | Line 470: | ||
# Set up serial communication between the '''Scilab''' and '''SBHS''' | # Set up serial communication between the '''Scilab''' and '''SBHS''' | ||
− | # Perform '''Step Test''' experiment | + | # Perform a '''Step Test''' experiment. |
− | + | ||
− | + | ||
|- | |- |
Latest revision as of 10:59, 28 April 2015
Title of script: Accessing SBHS through Scilab on windows
Author: Rupak Rokade
Keywords: Scilab, SBHS, video tutorial
|
|
---|---|
Show Slide | Welcome to this Spoken tutorial on “Accessing SBHS through Scilab on Windows”.
|
Show Slide | In this spoken tutorial, we will learn:
|
Show Slide | For this tutorial, I am using
|
Show Slide
|
You may download Scilab from
www.scilab.org
|
Show Slide | Before proceeding with this tutorial, you should watch-
The relevant tutorials for these, are available in this series, on the spoken tutorial website. |
Show os-hardware.in | To begin, we have to download the Scilab Step Test code.
|
click on Single Board Heater System link >> Downloads link | Click on the project SBHS and then on the Downloads link. |
Select SBHS Local Code >> Save on Desktop | Download the file available under the section SBHS Local Code.
And save this file on the Desktop. |
Switch to Desktop >> Point to the zip file | Notice that the downloaded file will be in zip format. |
Right-click >> choose Extract here.
Point to scilab codes local |
Right-click on the file and choose Extract here.
|
We are now ready to begin our experiment. | |
Make sure the SBHS is connected to your computer and it is powered ON. | |
Right click on My Computer >> Properties | First, we will check the communication port number assigned to the SBHS.
|
Click on Device Manager | A window will open up.
|
Point to the list displayed >> point to ports (COM & LPT) option. | The device manager will show you a list of hardware devices on your computer.
|
Double click on the Ports(COM & LPT) option | Double-click on this option to open it. |
Show the options under Ports(COM & LPT) | If you have connected RS232 cable, then look for communications Port COM1.
|
Click on the identified COM port number | In my case it is COM14.
|
Double-click on the COM port | Let me show you the procedure to change the COM port number.
|
Click on the Port Settings tab | Click on the Port Settings tab. |
Click on Advanced. | Then click on Advanced. |
In COM port number dropdown >> choose any single-digit number. | In the COM port number dropdown menu, choose the port number to any other single-digit number.
|
Click on OK | Click on OK to apply these settings. |
Click on OK | Click on OK to close the Properties window. |
Click on the close option on the Device Manager | Close the Device Manager and the remaining windows. |
Now, let us learn how to configure Scilab, to perform a Step Test using SBHS. | |
Switch to the Desktop >> Open Step test folder | Open the Scilab local codes folder that we saved on the Desktop.
|
Double-click ser underscore init.sce | Locate and double-click on the file ser underscore init.sce
|
Click on File >> Open a file >>
Choose ser underscore init.sce >> click on Open. |
If it doesn't open the file, click on File menu, then on Open a file.
|
Switch to scilab >>
Type getd space ../common_files/
|
Switch to the scilab workspace and execute the following commands.
get d space ../common_files/ and press Enter.
|
Point to message | You can see that it gives a message that it has loaded the serial port toolbox. |
Switch to scilab >> locate variable port2 | Switch to the scilab editor.
|
Change the port number | Change the port number to the one you identified just a few minutes back. |
Point accordingly | Make sure this is in single quotes. |
Save the file | Do not make any other changes to the content of this file.
|
Click on Execute | On the menu bar, click on the Execute button to execute this file. |
Point to the message | On the Scilab workspace you will get a message COM Port Opened
|
Show Slide | In case a TCL/TK related error is displayed,
|
In Scilab >>
Type exec space step_test.sci >> Type
|
In the Scilab workspace, execute the following commands -
Type exec space step_test.sci and press Enter.
xcos space step_test.xcos and press Enter. |
This will launch the xcos interface made for step test experiment. | |
Double click on the Heater Input block | You can change the block parameters by double-clicking on the blocks.
|
click on the simulation tab | In the menubar of the Xcos window, click on the Simulation option. |
Click on the Start option | Now select the Start option |
Point at the first plot | After we have executed the Xcos file successfully, a plot window with three graphs will be displayed.
|
Point at the second plot | The second graph is of Fan in percentage. |
Point at the third plot | The third graph is of Temperature in degree Celsius. |
Show Slide | There are some things to be noted.
|
Show Slide | Please note that the values shown in the graph should be the same as displayed on the SBHS display.
|
Show Slide | You can also check if the communication LEDs are flashing periodically.
|
This is a real experiment and will take some time to produce results.
| |
Point at the plots | After running the experiment for sufficient time, the final graphs will be as shown here.
|
<PAUSE> | |
Switch to the step test folder. | Most of the process that we went through, can be completed by just executing one file.
|
Show slides | Let me switch to slides.
|
Click on the Stop option | To stop the experiment, click on the Stop option available in the menu bar of the Xcos window.
|
Show the Slide | A reset push button is provided on the SBHS, as shown in the picture.
|
Go to the Step test folder and point to the file | The data file for this experiment is saved in the Step test folder.
Let me show you this file. The name of the data file is in the format of a time stamp.
|
Click and open the file. | Let me open and show you the content of the data file.
|
Show slide | Now, let us summarise.
|
Show slide | The video available at the following link summarises the Spoken Tutorial project.
|
Show slide | The Spoken Tutorial Project Team conducts workshops and gives certificates to those who pass online tests.
|
Show slide | Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.
|