ExpEYES/C2/Communicating-to-ExpEYES-using-Python/Khasi
Time | Narration |
00:01 | Khublei iaphi baroh. Ngi pdiangsngewbha iaphi sha kane ka jinghikai halor ka Communicating to ExpEYES using Python. |
00:07 | Ha kane ka jinghikai, ngin ia pule shaphang:
Ka lamphrang sha ka Python Ban thew ia ka AC voltage da kaba pyndonkam ia ka Plot window bad Python Ban pynmih ia ka Sine wave Ban thew ia ka external bad internal voltages da kaba pyndonkam ia ka Python |
00:22 | Ban thew ia ka capacitance bad resistance da kaba pyndonkam ia ka Plot window bad Python
Ban sei ia ka Square wave Ban pyni ia ki connections bad circuit diagrams na ka bynta ki experiments jong ngi. |
00:34 | Hangne, nga pyndonkam da ka:
ExpEYES version 3.1.0 Ubuntu Linux OS version 14.10 |
00:43 | Ban bud ia kane ka jinghikai, phi dei ban don ia ki jingtip shaphang ki:
ExpEYES Junior interface Basic Python programming. |
00:52 | Lada phim don, na ka bynta ki jinghikai ba iadei, sngewbha leit sha ka website jong ngi. |
00:56 | To ngin ia sdang da ka lamphrang sha ka Python. |
01:00 | Python kadei kaba simple bad suk ban pule ia ka programming language kaba khlain bor.
Kadei ka Free bad Open Source, cross platform high level language. Kadon ka jingiadei ba biang na ka bynta ka Object oriented program. |
01:15 | To ngin ia pynthikna ba ka Python lah install ha ka system jong ngi. |
01:18 | Shon CTRL+ ALT bad T keys ban plie ia ka Terminal. |
01:22 | Ban sdang ia ka Python interpreter, type: "python" bad shon Enter. Ki jingtip ba bniah shaphang ka default version jong ka Python yn sa pyni ha ka Terminal. |
01:36 | Ki lai tylli ki angle brackets ba lah pyni ki kdew ia ka Python prompt(>>>). Mynta, phi lah long ba lah khreh ban type ia ki commands. |
01:44 | Na ka bynta ki jingtip ba bniah shaphang ka Python programming, sngewbha leit sha ka website jong ngi. |
01:49 | Ngan kren shaphang ki channels ha ka Panel ba hajrong jong u device. |
01:54 | Ha u Panel ba hajrong, man u terminal lah assigned sha u specific channel number. |
02:00 | Kum ka nuksa-channel 1 lah assigned sha u A1 bad channel 2 sha u A2. |
02:07 | Ngan sa pyni kumno ban connect ia ki wires sha u device. |
02:11 | U device u don ia ki screw terminals ha kawei na ki liang. |
02:15 | Ban leh ia ka connection, ngi thep ia ki wires hapoh ki terminals bad pynskhem ia ki screws. Hangne A2 lah connect sha u SINE. |
02:22 | Kane kadei ka circuit diagram. |
02:28 | To ngin leh ia ka experiment ban thew ia ka voltage jong u A2 bad ban pyni ia ki Sine wave jong ki. |
02:36 | To ngin ia peit ia ka result ha ka Plot window. |
02:39 | Ha ka Plot window, nion ha u A2 ban pyni ia ka voltage jong u A2. Voltage jong u A2 lah pyni hapoh. |
02:48 | Nion ha u A2 bad tan sha u channel CH1. Ynda ngi tan ia u A2 sha u CH1, input data jong u A2 lah assigned sha u CH1. |
02:59 | Pyniaid ia u msec/div slider ban pyni ia ka Sine wave. Nion ha u A2 ban pyni ia ka jingkylla ha ki voltage jong u A2. |
03:09 | Nion ha u CH1 bad tan sha u FIT. U voltage bad u frequency jong u A2 lah pyni ha ka liang kamon. |
03:16 | Ngin ia leh ia kane kajuh ka experiment ban thew ia ka voltage jong u A2 da kaba pyndonkam ia ka Python. |
03:23 | Sngewbha kynmaw, ban lait na ki errors ha ka Python interpreter:
Connect ia u device sha ka system. Khang ia ka Plot window. |
03:31 | Ban import ia ki eyes library na ka ExpEYES, type ha ka prompt "import expeyes.eyesj". Shon Enter. |
03:40 | Type: p=expeyes.eyesj.open() bad shon Enter. open() function ka pynphai ia ka object lada ka shem ia ka hardware. |
03:53 | Kine ki lines kin load ia ka ExpEYES library bad kan shna ia ka connection sha u device. |
03:58 | Ban view ia ka voltage jong u A2, type: "print p.get_voltage" hapoh ki brackets "2" bad shon Enter. |
04:08 | Output ka pyni ia ka voltage jong u A2. Ha kajuh ka rukom, ngi lah ban pyni ia bun jait ki voltages jong u A2. |
04:15 | Voltage jong u A2 ka kylla namar ba kadei ka AC voltage. |
04:20 | Ban sei ia ki plots da kaba pyndonkam ia ka Python interpreter,
install ia ka python-matplotlib library da kaba pyndonkam ia ka Synaptic Package Manager. |
04:30 | Nga lah dep install lypa ia ka python-matplotlib library ha ka system jong nga. |
04:36 | Ban sei ia ki plots ha ka Windows Operating system: |
04:40 | Download bad install ia ka,
matplotlib version 1.4.3 numpy version 1.9 lane kham shajrong. |
04:49 | Copy ia ka ExpEYES files bad drivers ba lah dep install bad paste ha ka C drive. |
04:55 | Ban sei ia ka Sine wave- ha ka python prompt, type: "import expeyes.eyesj" bad shon Enter. |
05:05 | Type: p=expeyes.eyesj.open() bad shon Enter kumba leh hashwa. |
05:12 | Type: from pylab import * (asterisk). "from pylab import *" kadei ka program na ka matplotlib library. Shon Enter. |
05:26 | Type: ion(). Kane ka command ka set ia ka pylab interactive mode.
Shon Enter. |
05:35 | Type: "t,v=p.capture" hapoh ki brackets "2, 200, 100".
"t", "v" kidei ki time bad voltage vectors. |
05:50 | 2 udei u channel number na ka bynta u A2, 200 udei u number jong ki data points, 100 udei u time interval hapdeng ki subsequent measurements. |
06:02 | Shon Enter. |
06:04 | Ban view ia ka output, type: "plot" hapoh ki brackets "t, v".
plot within brackets t,v ka sei ia ki Sine wave ha ka window ba thymmai. |
06:15 | Shon Enter. |
06:18 | Ngi lah ban sei ia kaSine wave da kaba pyndonkam ia ki commands ba hajrong ha ka Windows command prompt ruh kumjuh. |
06:26 | Hadien kane, to ngin ia thew ia ka voltage jong ka A1 da kaba pyndonkam ia u battery kum u external voltage source. |
06:32 | Ban thew ia u external voltage source, Ground(GND) lah connect sha u A1 lyngba u battery jong u 3V. |
06:39 | Kane kadei ka circuit diagram. Ngin sa ia pyni ia u value jong u A1 da kaba pyndonkam ia u Python interpreter. |
06:46 | Ha ka python prompt:
Type: "import expeyes.eyesj" bad shon Enter. |
06:53 | Type: p=expeyes.eyesj.open(), bad shon Enter. |
06:59 | Type: print p.get_voltage within brackets 1 bad shon Enter. |
07:07 | Hangne, Channel 1 lah assigned sha u A1. Voltage jong u A1 lah pyni ha ka terminal. |
07:14 | To ngin ia thew ia ka voltage jong u A1 da kaba pyndonkam ia u PVS kum u internal voltage source. |
07:20 | Ha kane ka experiment, PVS lah connect sha ka A1. |
07:24 | Kane kadei ka circuit diagram. |
07:28 | Phai sha ka terminal. Type: print p.set_voltage within brackets 3 bad shon Enter. |
07:39 | Hangne, voltage jong u PVS yn sa set sha u 3 volts. Voltage jong u PVS lah pyni. |
07:47 | Type: "print p.get_voltage" hapoh brackets "1" bad shon Enter. Voltage jong u A1 lah pyni ha ka terminal. |
07:59 | Mynta, ngan batai ia u AC bad DC components jong u voltage da kaba pyndonkam ia u capacitor bad resistor. Bad ruh, sei ia u square wave. |
08:11 | Ha kane ka experiment,
A1 lah connect sha u SQR1. SQR1 lah connect sha u A2 lyngba u capacitor. A2 lah connect sha u ground(GND) lyngba u 200K resistor. |
08:25 | Kane kadei ka circuit diagram. |
08:27 | To ngin ia peit ia result ha ka Plot window. |
08:31 | Ha ka Plot window, nion ha u Measure C on IN1 button. |
08:36 | Capacitance jong u IN1 lah pyni kum -0.6 pF (pico farads). |
08:42 | Nion ha u Measure R on SEN button. Resistance jong u SEN lah pyni kum 560 Ω(ohms). |
08:51 | Sngewbha kynmaw phi lah ban ioh khyndiat ki values ba iapher jong u Capacitance bad Resistance. |
08:57 | Nion ha u SQ1 bad tan sha u CH1.
SQ1 lah assigned sha u channel CH1. |
09:04 | Nion ha u A2 bad tan sha u CH2.
A2 lah assigned sha u channel CH2. |
09:12 | Nion ha u SQR1 check box ban pyni ia ki Square waves. Pyniaid ia u msec/div slider ban antad ia ki waves. |
09:23 | Nion ha u CH2 bad tan sha u FIT. Voltage bad frequency jong u A2 lah pyni ha ka liang kamon. |
09:32 | Ngin ia leh ia kane kajuh ka experiment ban thew ia u Capacitance, Resistance bad sei ia u Square wave da kaba pyndonkam ia u Python interpreter. |
09:41 | Ha u python prompt, type: "import expeyes.eyesj" bad shon Enter. |
09:50 | Type: p=expeyes.eyesj.open() bad shon Enter. |
09:58 | Ban pyni ia u Capacitance value, type: p.measure_cap() bad shon Enter. |
10:07 | Capacitance value lah pyni ha ka terminal. |
10:11 | Ban pyni ia u Resistance value, type: p.measure_res() bad shon Enter.
Resistance value lah pyni ha ka terminal. |
10:24 | Ban sei ia u Square wave, type: from pylab import *(asterisk) bad shon Enter.
Type: ion() bad shon Enter. |
10:36 | Type: print p.set_sqr1 within brackets 100 bad shon Enter. Hangne 100 udei u frequency jong u square wave. |
10:49 | Type: t,v=p.capture within brackets 6, 400, 100 bad shon Enter. |
11:00 | Type: plot within brackets t,v. plot within brackets t,v sei ia u square wave ha ka window ba thymmai. |
11:12 | Shon Enter. |
11:14 | To ngin ia batai kyllum. |
11:17 | Ha kane ka jinghikai, ngi lah pule shaphang ka:
Lamphrang sha ka Python Ban thew ia u AC voltage da kaba pyndonkam ia ka Plot window bad Python Sei ia u Sine wave Ban thew ia u external bad internal voltages da kaba pyndonkam Python |
11:33 | Ban thew ia u capacitance bad resistance da kaba pyndonkam Plot window bad Python
Sei ia u Square wave Pyni ia ki connections bad ki circuit diagrams na ka bynta ki experiments jong ngi. |
11:45 | Kum ka assignment. Thew ia ka resistance jong ka shympriah kti jong phi da kaba pyndonkam ia ka Plot window.
Pyndonkam python, sei ia ki combination jong ki Sine bad Square waves. |
11:56 | Pyni ia ki circuit diagrams na ka bynta ki experiments ba hajrong. |
11:59 | Kane ka video ka kyllum lang ia ka Spoken Tutorial project. Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka. |
12:07 | Ngi pynlong ia ki workshops da kaba pyndonkam ia ki Spoken Tutorials bad ngi ai certificates. Sngewbha contact sha ngi. |
12:13 | Ia ka Spoken Tutorial Project lah bei pisa da ka NMEICT, MHRD, Sorkar India. |
12:20 | Ia kane ka jinghikai la noh synniang da u Pdiangburom na Shillong. Khublei shibun. |