Scilab/C4/Calling-User-Defined-Functions-in-XCOS/Khasi

From Script | Spoken-Tutorial
Revision as of 22:45, 12 September 2017 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka spoken tutorial halor ka Calling user-defined functions in Xcos.
00:07 Ha kane ka jinghikai ngin sa pule
00:09 * Ban thoh ia ka squaring function ha Scilab
00:12 *Ban pyndonkam ia ka scifunc block ha Xcos
00:15 *Ban pyndonkam ia ka MUX block ban draw ia bun tylli ki plots
00:19 *Ban call ia ki functions ba don bun tylli ki inputs bad outputs.
00:24 Ubuntu 12.04 kadei ka operating system ryngkat bad ka Scilab version 5.3.3 ba la dep install.
00:32 Phi dei ban don ia ka jingtip ba donkam jong ka Scilab,
00:35 Jingtip jong ka Xcos.
00:38 Lada phim don, na ka bynta ki jinghikai ba iadei , sngewbha leit sha spoken hyphen tutorial dot org.
00:44 Plie ia ka Scilab ha ka computer jong phi.
00:47 Ha ka Scilab console, type editor bad nion Enter.
00:53 Nangta type ia u code harum:
00:55 function space y is equal to squareit open bracket a close bracket.
01:07 Nion ia u Enter key bad type:
01:10 y is equal to a raise to 2
01:14 Buh ia u semicolon ha kaba kut.
01:17 Ka function kadon uwei u input variable a bad uwei u output variable y.
01:24 Ka kyrteng jong ka function kadei squareit.
01:27 Kane ka function kan leh ia ka kam ban square ia u variable a.
01:31 Kan buh ia ka result ha u y.
01:34 To ngin save ia kane ka file ha ka directory kaba ngi kwah.
01:38 Ngan save ia kane ka file da ka file name squareit bad u extension .sci.
01:44 Hangne ngi bud ia ka rukom save jong ki functions ha ka .sci format.
01:50 Phai sha ka Scilab console.
01:53 Mynta type Xcos bad nion Enter.
01:57 Artylli ki windows kin sa plie.
01:59 Ka Palette browser bad kaUntitled Xcos window.
02:04 Mynta ngin shna ia ka Xcos diagram.
02:06 Kane kan access ia ka function squareit ba dang shu dep shna myntan.
02:10 Kane lah ban leh da kaba pyndonkam ia ka scifunc block.
02:14 Phai sha ka Palette browser window.
02:17 Nion ha ka User-Defined function ha ka pallet browser.
02:21 Wad ia ka block scifunc_block_m ha kane ka section.
02:27 Tan bad pynhap ia u ha ka untitled Xcos window.
02:32 Ngan pynheh ia ka untitled Xcos window na ka bynta ban iohi shai bha.
02:36 Ngan pyndonkam ia u Zoom button kumba phi iohi.
02:40 Mynta nion arsien ha ka scifunc block ban configure ia ka.
02:44 Ka window ba kyrteng Scilab Multiple Values Request kan sa plie.
02:49 Kane ka window kan ailad ia phi ban pynkylla ia u number jong ki input bad output ports jong ka scifunc block.
02:56 Ka function squareit jong ngi ka don tang uwei u input bad output variable.
03:00 Kumta, ngin buh ia ki settings khlem jingpynkylla.
03:03 Nion ha OK.
03:05 Ka Scilab Input Value Request window ba thymmai kan sa plie.
03:09 Ha ka text box, type ia ka kyrteng jong ka function ryngkat bad ki input bad output variables.
03:14 Kane ka function kan sa shah call da ka scifunc block.
03:18 Ha ka text box ba don,
03:20 Pynkylla ia ka kyrteng jong ka function.
03:22 Type y1 equal to squareit open bracket u1 khang noh ia u bracket.
03:31 Phi iohi hangne ba ki input bad output variables kidei u1 bad y1
03:37 Kine ki dei ban don pyrkhing beit ha ka form u bad y bad ym katkum ki kyrteng jong ki variables ba pyndonkam ha ka actual function.
03:45 Nion ha OK.
03:47 Sa kawei ka Scilab Input Value Request window kan sa plie.
03:51 Iai ion ha u OK ha ki lai tylli ki windows kiban sa paw.
03:56 Ka scifunc block mynta ka la dep configure.
04:00 Nangta ngin kynthup ia u sinusoid generator block.
04:04 Ha ka Palette browser window, nion ha Sources section.
04:08 Tan bad pynhap ia u Sinusoid generator block ha ka Untitled Xcos window.
04:14 Buh ia u block sha ka liang ka diang jong ka scifunc block, na ka bynta ban kham suk.
04:20 Mynta ngi donkam ia u block ban plot ia u output variable.
04:23 Ha ka Palette browser window, nion ha ka Sinks section.
04:29 Tan bad pynhap ia u CScope block ha ka Untitled Xcos window.
04:34 Buh ia u block sha ka liang ka mon jong ka scifunc block.
04:38 Buh ia u jngai na ka scifunc block, na ka bynta ban kham suk.
04:43 Phin iohi ba ka CScope block kadon ia u input port ba saw.
04:47 Kane kadei ka event input.
04:49 Ngi donkam ia ka event generator block.
04:52 Ha ka Palette browser window, nion ha Sources section.
04:57 Tan bad pynhap ia ka CLOCK underscore c block ha ka Untitled Xcos window.
05:05 Buh ia u hajrong jong ka CScope block.
05:08 Phin iohi ba ka CScope block ka don tang uwei u input port.
05:13 Tangba ngi kwah ban plot ia baroh artylli ki input bad output variables ha kawei ka plot window.
05:18 Kumta, ngi donkam ia ka multiplexer block.
05:22 Kane ka block kan multiplex ia artylli ki inputs bad pynmih output ha kawei ka output port.
05:28 Ha ka Palette browser window, nion ha ka Signal Routing section.
05:33 Tan bad pynhap ia ka MUX block ha ka Untitled Xcos window.
05:39 Buh ia ka block hapdeng ka scifunc block bad CScope block.
05:43 To ngan resize bad realign ia ka Mux block.
05:47 Mynta, to ngin pyniasnoh ia ki blocks hajuh.
05:51 Connect ia ka output port jong ka Sinusoid generator block sha ka input port jong ka scifunc block.
05:57 Mynta pyniasnoh ia ka output port jong ka scifunc block sha ka input port ba shapoh jong ka MUX.
06:04 Pyniasnoh ia ka output port jong ka MUX block sha ka input port jong ka CScope block.
06:10 Pyniasnoh ia ka output port jong u CLOCK underscore c block sha u event input port jong u CScope block.
06:19 Ngi donkam ruh ban plot ia ka sine input.
06:22 Ngi hap ban pyniasnoh ia ka Sinusoid generator block sha ka MUX.
06:26 Nion ha ka input port ba hajrong jong ka MUX block.
06:30 Nangta khlem da pyllait, pyniaid ia u mouse pointer sha ka liang hapdeng ka Sinusoid generator block and scifunc block.
06:39 Ban bend ia ka link, pyllait ia u mouse button lane nion ha ki jaka.
06:44 Katba phi wanrah ia u pointer ha ka link, ka link ka kylla rong jyrngam.
06:49 Pyllait ia u mouse button lane nion shisien ban shna ia ka link hapdeng kine ki blocks.
06:55 Mynta to ngin peit ia ka configuration jong kiwei ki blocks.
06:59 Ngi lah ban pynkylla ia ka frequency, magnitude badphase jong ka sinusoid generator block.
07:04 Ban leh ia kane, nion arsien ha ka Sinusoid generator block.
07:09 Ka configuration window kan sa plie.
07:11 Ngin buh ia ka Magnitude badFrequency kum 1 badPhase kum 0.
07:18 Nion ha OK bad khang noh ia ka configuration window.
07:21 Mynta to ngin configure ia ka CScope block.
07:25 Nion arsien ha ka CScope block ban plie ia ka configuration window jong ka.
07:30 Pynkylla ia ka Ymin parameter sha minus 2 bad Ymax parameter sha 2.
07:37 Pynkylla ia ka Refresh period value sha 10.
07:41 Buh jingkynmaw ia une u value
07:44 Pynkylla ia u Buffer size value sha 2 .
07:47 Nion ha OK.
07:50 Mynta to ngin configure ia ka CLOCK_c block.
07:54 Nion arsien ha ka block ban plie ia ka configuration window jong ka.
07:58 Buh ia u value jong Period kum 0.1.
08:02 Pynkylla ia ka Initialisation Time ban long 0.
08:06 Nion ha OK.
08:08 Mynta to ngin pynkylla ia ki Simulation parameters.
08:12 Ha ka menu bar jong ka Untitled Xcos window nion ha ka Simulation tab.
08:17 Mynta nion ha ka Setup na ka drop down menu.
08:22 Pynkylla ia ka Final Integration time ban iahap bad ka Refresh period jong ka CScope block.
08:28 U value jong ka Refresh period udei 10.
08:32 Kumta, buh ia u value jong ka Final integration time kum 10.
08:36 Nion ha OK.
08:38 Mynta, nion ha File bad nangta nion ha Save ban save ia ka Xcos diagram.
08:44 Jied ia ka directory kaba phi kwah ban save ia ka Xcos diagram.
08:48 Wat la katta, la ai jingmut ban save ia ka folder ha kaba phi la dep save ia ka squareit.sci file.
08:56 Nion ha OK.
08:58 Phi iohi ba ka scifunc block kan sa call ia ka squareit function.
09:02 Kane ka mut ba ngi hap ban load shwa ia ka squareit function shwa ban execute ia ka Xcos diagram.
09:09 Phai sha ka Scilab editor window, kaba don ia ka squareit.sci file ba la plie.
09:16 Nion ha u Execute button ba don ha ka menu bar jong ka editor.
09:21 Kane kan load ia ka squareit function.
09:24 Mynta ngi lah ban execute ia ka Xcos diagram.
09:28 Plie ia ka Xcos diagram file.
09:31 Nion ha u Start button ba don ha ka menu bar jong ka Xcos window.
09:37 Ka graphic window kan sa paw.
09:39 Kane ka window kadon artylli ki plots.
09:42 Input sine wave ha ka rong iong bad output sine wave ha ka rong jyrngam.
09:47 Phin iohi ba ka squaring function ba la implement ha ka squareit function, ka la dep square ia ka input sine wave.
09:55 Kumta, ka output sine wave lah dep pynnkynriah sha ka positive axis.
10:00 Khang noh ia ka plot window.
10:02 Mynta, to ngin ia peit kumno ban pynkylla ia ka scifunc block ban call ia ka function kaba don palat ban ia uwei u input bad output variables.
10:10 Phai sha ka scilab editor window.
10:13 Pynkylla ia ka squareit function ban don artylli ki input bad output variables.
10:19 Pynkylla ia ka output variable kum open square bracket y comma z close the square bracket .
10:28 Pynkylla ia ki input variables kum open bracket a comma b close bracket.
10:36 Ngin sa pynkylla ia ka function ban shift ia ka squared output da 1 unit.
10:41 Pynkylla ia ka main function line kum:
10:44 y is equal to b plus a raise to two buh ia u semicolon ha kaba kut.
10:51 Kumjuh ruh pynmih ia ka output uba ka amplitude kan dei shiteng jong ka input.
10:56 Leit sha ka lain babud da kaba nion Enter key bad type:
11:01 z is equal to 0.5 multiplied by a buh ia u semicolon ha kaba kut.
11:10 Mynta save ia ka file.
11:12 Phai sha ka Xcos window.
11:15 Nion arsien ha ka scifunc block ban configure ia ka.
11:19 Ha ka input port size field, buh ia u semicolon hadien 1 comma 1 bad type 1 comma 1 sa shisien.
11:27 Ha kajuh ka rukom, ha ka output port size field, buh ia u semicolon hadien 1 comma 1 bad type 1 comma 1 sa shisien.
11:36 Nion ha OK.
11:38 Ka Scilab Input Value Request window ba thymmai kan sa plie.
11:41 Ha ka text box,
11:43 Buh ia u comma hadien y1 bad type y2,
11:48 Buh y1 bad y2 ha ki square brackets,
11:52 Mynta buh ia u comma hadien u1 bad type u2.
11:57 Nion ha OK.
11:59 Sa kawei ka Scilab Input Value Request window bathymmai kan sa plie.
12:03 Iai nion ha OK ha ki laitylli ki windows kiban sa paw.
12:08 Ka scifunc block ka la dep configure mynta.
12:11 To ngan realign ia ka scifunc block.
12:14 Phai sha ka Palette browser window.
12:17 Ha ka Sources section, tan bad pynhap ia ka Constant underscore m block ha ka Xcos window.
12:24 Buh ia ka hapoh jong ka Sinusoid generator block.
12:28 Pyniasnoh ia ka Constant underscore m block sha ka input ba shapoh jong ka scifunc block.
12:36 U default value jong kane ka block udei 1.
12:39 Buh ia u khlem jingpynkylla.
12:41 Nion arsien ha ka MUX block.
12:44 Pynkylla ia ka input port size sha 3.
12:47 Nion ha OK.
12:48 To ngan pynheh ia ka MUX block bad ngan pyniasnoh bha ia ka MUX bad ka CSCOPE block
12:59 Pyniasnoh ia ka output port ba shapoh jong ka scifunc block sha ka input port ba shapoh jong ka MUX block.
13:07 Nion ha File bad jied Save ban save ia ka xcos file.
13:12 Phai sha ka Scilab editor kaba dei ka squareit.sci file ba la plie.
13:18 Nion ha ka Execute button ba don ha ka menu bar jong ka editor.
13:23 Kane kan load ia ka squareit function.
13:26 Mynta ngi lah ban execute ia ka Xcos diagram.
13:30 Nion ha Start button ba don ha ka menu bar jong ka Xcos window.
13:35 Ka graphic window kan sa paw.
13:38 Kane ka window ka don lai tylli ki plots.
13:40 Input sine wave ha ka rong iong,
13:43 output sine wave ha ka rong jyrngam bad
13:45 Amplitude scaled input ha ka rong saw.
13:49 Phin iohi ia ka function ba ka lah dep square ia ka input sine wave bad kumjuh ruh pynkynriah ia ka da ka offset jong 1 unit, kumba la khmih lynti.
13:59 Ngi ioh ia ka amplitude scaled jong ka input sine wave, kumba khmih lynti.
14:05 Khang noh ia ka plot window.
14:08 Mynta to ngin batai kyllum.
14:10 Ha kane ka jinghikai ngi la pule shaphang
14:12 * Ban thoh ia ka squaring function ha Scilab
14:15 *Ban pyndonkam ia ka scifunc block ha Xcos
14:19 *Ban pyndonkam ia ka MUX block ban draw shibun tylli ki plots
14:22 *Ban call ia ki functions kiba don bun tylli ki input bad output.
14:26 Peit ia ki video ba don ha ka link harum.
14:29 Ka kyllum lang ia ka Spoken Tutorial project.
14:33 Lada phim don ia ka bandwidth kaba biang phi lah ban shu download bad peit ia ka.
14:37 Ka kynhun jong ka Spoken tutorial project:
14:40 Ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials.
14:43 Ka ai certificates sha kito kiba pass ha ka online test.
14:47 Na ka bynta kham bun ki jingtip, sngewbha thoh sha ka contact@spoken-tutorial.org
14:53 Spoken Tutorial project kadei shibynta jong ka Talk to a Teacher project.
14:57 La kyrshan ia ka da ka National Mission on Eduction lyngba ka ICT, MHRD, Sorkar India.
15:05 Kham bun ki jingtip halor kane ka mission kidon ha ka spoken-tutorial.org/NMEICT-Intro.
15:15 Khublei shibun ia ka jingsnohkti lang jong phi. Kyrmen ba phi shem ia kane ka jinghikai kaba iarap.
15:19 Nga i Meboreen na Shillong, nga pynkut ia kane.

Contributors and Content Editors

Meboreen Mary