Cov txheej txheem:

MiniLab 1008 thiab LabVIEW: 16 Cov Kauj Ruam
MiniLab 1008 thiab LabVIEW: 16 Cov Kauj Ruam

Video: MiniLab 1008 thiab LabVIEW: 16 Cov Kauj Ruam

Video: MiniLab 1008 thiab LabVIEW: 16 Cov Kauj Ruam
Video: Детский металлоискатель MD-1008 | #Обзор 2024, Kaum ib hlis
Anonim
MiniLab 1008 thiab LabVIEW
MiniLab 1008 thiab LabVIEW

Kev Tau Txais Cov Ntaub Ntawv (DAQ) kho vajtse muab qhov yooj yim sib txuas los coj cov Analog/Digital cov cim rau hauv koj lub computer thiab LabVIEW software tau siv los ua cov teeb liab uas tau txais. Piv txwv li koj tuaj yeem txuas lub ntsuas hluav taws xob ntsuas hluav taws xob mus rau DAQ module ntawm cov tswv yim sib txuas thiab nrog kev pab los ntawm LabVIEW VI nyeem / tso tawm qhov ntsuas kub tam sim no. Hauv qhov kev qhia no kuv yuav tsim cov ntaub ntawv tau txais cov cuab yeej virtual (VI) hauv LabVIEW rau MiniLab1008 DAQ Module. Cov ntaub ntawv muab ntawm no yuav pab txhawb kev nkag siab ntawm LabVIEW software thiab cov ntaub ntawv tau txais kho vajtse. LabVIEW yog lub lag luam ntawm National Instruments Corporation (NI) thiab cov ntaub ntawv tau txais cov cuab yeej khoos phis tawj uas peb siv yog los ntawm Kev Ntsuas Kev Ntsuas (MCC). Tus nqi ntawm Minilab1008 USB DAQ Module nyob ib puag ncig $ 129 Saib MCC qhov chaw kom paub ntau ntxiv txog MiniLab1008: https:// www.measurementcomputing.com/ Saib NI site rau cov ntaub ntawv ntau ntxiv ntawm LabVIEW:

Kauj Ruam 1: Kev Sib Txuas

Kev Sib Txuas Lus
Kev Sib Txuas Lus

Cov tsav tsheb tau muab Kev Ntsuas Kev Ntsuas (MCC) DAQ cov qauv tsis muaj kev tswj hwm cov cuab yeej ncaj qha los ntawm LabVIEW software. Peb xav tau Universal Library los tham nrog LabVIEW. Saib daim duab 1.1 rau kev sib txuas lus hierarchical txuas ntawm LabVIEW thiab MCC Minilab1008 DAQ.

Kauj Ruam 2: Ob Qhov Rau VI - Pem Hauv Ntej Vaj Huam Sib Luag thiab Daim Duab

Ob Qhov rau VI - Pem Hauv Ntej Vaj Huam Sib Luag thiab Daim Duab
Ob Qhov rau VI - Pem Hauv Ntej Vaj Huam Sib Luag thiab Daim Duab

Muaj ob ntu rau VI: vaj huam sib luag thiab daim duab. Lub vaj huam sib luag zoo li lub vaj huam sib luag pem hauv ntej ntawm qhov ntsuas thiab daim duab yog qhov uas koj ua kev sib txuas nrog ntau yam khoom siv. Qhov VI no yuav tau txais cov ntaub ntawv los ntawm cov channel tshwj xeeb thiab tso tawm nws ntawm lub vaj huam sib luag pem hauv ntej. Tsis muaj cov phiaj xwm sau ntawv koom nrog hauv LabVIEW. VI thaum ua tiav yuav tsum zoo li daim duab 1:

Kauj Ruam 3: Txheeb Xyuas Hardware & Pib LabVIEW

Nyem rau pib InstaCal software los ntawm Kev Ntsuas Kev Ntsuas. Qhov no yog qhov tsim nyog raws li nws yuav tso cai rau PC txhawm rau txheeb xyuas DAQ kho vajtse txuas nrog. Nyem rau ntawm koj lub desktop kom pib LabVIEW. Nyem NewVI txhawm rau pib daim ntawv thov VI tshiab.

Kauj Ruam 4: Tsim Pem Hauv Ntej Vaj Huam Sib Luag

Tsim Vaj Huam Sib Luag
Tsim Vaj Huam Sib Luag

Txog kev nrhiav cov ntaub ntawv los ua haujlwm peb yuav tsum tau muab kev tswj hwm, kev ua haujlwm thiab ntsuas ntsuas hauv VI. Kev tswj hwm tso cai rau peb hloov pauv tus nqi ntawm cov ntsuas, ntsuas ntsuas tso cai rau peb teeb duab thiab kab ntawv cov ntaub ntawv, thiab kev ua haujlwm muab cov txheej txheem lossis cov tswv yim/tso tawm tswj ntawm cov ntaub ntawv tau txais. Kauj Ruam 1 - Ntxiv Digital ControlExplore Controls menu. Xaiv DIGITAL CONTROL los ntawm Numeric window raws li qhia hauv daim duab 2. Ib daim teb yuav tshwm rau ntawm lub vaj huam sib luag, sau nws li "Board #". Rov ua dua 3 zaug no los ntawm kev ntxiv digital tswj hwm thiab sau lawv raws li Tus Qauv Piv Txwv, Tsawg Channel thiab Siab Channel. Cov kev tswj hwm no yuav tso cai rau peb nkag mus rau tus lej tus lej rau Minilab1008 cov ntaub ntawv tau txais pawg thawj coj saib

Kauj Ruam 5: Tsim Pem Hauv Ntej Vaj Huam Sib Luag

Tsim Vaj Huam Sib Luag
Tsim Vaj Huam Sib Luag

Kauj Ruam 2 - Ntxiv Kev Tswj rau Kev Ua Yeeb Yam Tsis Zoo Rau Kev Siv Qhov Kev Ua Yuam Kev, LabVIEW nyeem los ntawm cov hlua. Los ntawm Txoj Cai & Txoj Kev Tswj cov ntawv qhia zaub mov, raws li qhia hauv daim duab 3, xaiv Txoj Cai Taw Qhia thiab sau nws ua Cov Lus Tsis Zoo. Nco ntsoov qhov no yog lub qhov rai rau cov lus yuam kev cuam tshuam txog xwm txheej ntawm kho vajtse.

Kauj Ruam 6: Tsim Vaj Huam Sib Luag Pem Hauv Ntej

Tsim Vaj Huam Sib Luag
Tsim Vaj Huam Sib Luag

Kauj Ruam 3 - Xaiv Cov Duab rau cov phiaj xwm Txhawm rau ua cov ntaub ntawv tau txais, mus rau GRAPH cov ntawv qhia raws li qhia hauv daim duab 4, xaiv WAVEFORMGRAPH thiab sau nws ua Zaub. NCO TSEG: Nrog kev tswj hwm ntawm G cov khoom, lub vaj huam sib luag pem hauv ntej tuaj yeem zoo li pom hauv daim duab 1.

Kauj Ruam 7: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Nyem rau kab lus kab lus ntawm VI. Koj yuav pom lwm lub palette ntab hu ua Cov Haujlwm. Cov palette no muaj ntau txoj haujlwm thiab sub-VIs uas tswj hwm txhua yam ntawm DAQ pawg thawj coj lossis tus qauv thiab teeb liab ntsuas thiab ua haujlwm. Yog tias koj tau sau tag nrho cov lej tswj hwm thiab ntsuas, tom qab ntawd koj yuav pom lawv lub davhlau ya nyob twg ntawm daim duab uas sau tias tsim nyog. Nyob rau hauv rooj plaub koj tsis nco qab lo lo lus zauv thiab cov hlua ib yam li koj coj lawv mus rau hauv lub vaj huam sib luag pem hauv ntej nws tuaj yeem ua rau tsis meej pem. Siv txoj nyem nas thaum xaiv lub davhlau ya nyob twg thiab xaiv "Nrhiav Terminal" los ntawm cov ntawv qhia zaub mov. Xwb, koj tuaj yeem nyem ob zaug ntawm lub davhlau ya nyob twg hauv daim duab thiab nws yuav taw tes rau kev tswj hwm ntawm lub vaj huam sib luag pem hauv ntej. Txhawm rau mus rau daim duab, mus rau Windows cov ntawv qhia zaub mov thiab xaiv SHOW DIAGRAM. Daim duab yuav tsum zoo li qhia hauv daim duab 5:

Kauj Ruam 8: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Hloov Tus Neeg Sawv Cev kom hloov tus lej sawv cev raws li qhia hauv daim duab 5., nyem rau ntawm lub npov lej thiab los ntawm Cov Neeg Sawv Cev Sawv Cev hloov cov lej zauv raws li qhia hauv qab no:

Kauj Ruam 9: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 1 - Ntxiv Kev Ua Haujlwm Analog Los Ntawm Cov Ntawv Qhia Ua Haujlwm xaiv MCC Icon thiab xaiv AlnScFg Cov Lus Qhia los ntawm Analog Cov Lus Qhia raws li qhia hauv daim duab 6 NCO NTSOOV: Txhawm rau pab, los ntawm cov ntawv qhia zaub mov Pab, xaiv Qhia Pabcuam. Thaum tus nas tau khaws cia ntawm ib feem ntawm daim duab, lub qhov rai pab yuav qhia rau ntawm qhov screen. Piv txwv qhov kev pab rau "AInScFg" tau qhia zoo li hauv daim duab 7.

Kauj Ruam 10: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 2 - Ntxiv Cov Teeb Meem Ua Haujlwm Los Ntawm Cov Ntawv Qhia Ua Haujlwm xaiv MCC thiab xaiv ToEng los ntawm Teeb Pom Kev Zoo li pom hauv daim duab 8. Details of ToEng. VI tau qhia hauv daim duab 9

Kauj Ruam 11: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 3 - Ntxiv Cov Lus Qhia Tsis Yooj Yim Los ntawm Cov Ntawv Qhia Ua Haujlwm xaiv MCC thiab xaiv ErrMsg los ntawm MISC (Calibration & Configuration) raws li qhia hauv daim duab 10 Fig.11 qhia qhov kev pab rau "Err Msg" ua haujlwm.

Kauj Ruam 12: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 4 - Numeric ConstantFrom Cov Ntawv Qhia Ua Haujlwm xaiv Numeric thiab xaiv Numeric Constant raws li qhia hauv daim duab 12. Rov ua cov kauj ruam 4 thiab sau tus nqi 0. Yog vim li cas peb thiaj ua qhov no yog txhawm rau muab cov tswv yim rau tus lej ntawm cov qauv los sau thiab tseem muab cov tswv yim rau t0 (ua lub sijhawm ua haujlwm ntawm cov nthwv dej). Thov saib daim duab 18 kom paub ntau ntxiv.

Kauj Ruam 13: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 5 - Ntiv Nplua Nuj Los Ntawm Cov Ntawv Qhia Ua Haujlwm xaiv Tus lej thiab xaiv Ntiv Nplua Nuj raws li qhia hauv daim duab 13. Nco tseg: Sau Tsis Siv Cov Ntawv Sau hauv thawj qhov chaw tas li thiab tom qab ntawd sau tus lej+-10V rau hauv daim teb tas li thib ob. Txhawm rau ntxiv qhov chaw thib ob nyem rau ntawm lub npov thiab xaiv Ntxiv cov khoom tom qab los ntawm cov ntawv qhia zaub mov thiab tom qab ntawd ntaus +-10V. Vim li cas peb tab tom ua qhov no yog txhawm rau muab kev nkag mus rau Range. Qhov no yog siv los sau cov qauv A/D. Cov tswv yim hluav taws xob ntau rau kev ua haujlwm tawm, ib leeg ua tiav rau MiniLAB1008 yog ± 10Vmax.

Kauj Ruam 14: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam 6 - Tsim Waveform Los ntawm Cov Ntawv Qhia Ua Haujlwm xaiv Waveform thiab xaiv Tsim Waveform raws li qhia hauv daim duab 14. Yog vim li cas peb tab tom tsim peb tus kheej lub nthwv dej yog tias peb xav tau kho lub x -axis nplai. Hloov X-axis los tso saib Lub Sijhawm yuav pab peb pom lub teeb hauv lub ntsiab lus zoo. Thaum koj ntxig qhov tsim ua ntu ntu cuam tshuam nruab nrab qhov kawg kom nws zoo li pom hauv lub thawv daj hauv qab no: Nco tseg: Xaiv Txoj Haujlwm/Qhov loj me tus cursor los ntawm Cov cuab yeej palette txhawm rau rub thiab nce nruab nrab qhov kawg. Kev pab rau Tsim Waveform yog qhia hauv daim duab 15.

Kauj Ruam 15: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam Kawg - Txuas lub thawv Ntawm qhov no nws yog qhov tseem ceeb kom nkag siab txog lub cuab yeej. Cov cuab yeej siv yog siv los xaiv cov cuab yeej sib txawv. Daim duab 16 muab cov lus piav qhia cuab yeej. Thaum tsim daim duab nco qab cov cai hauv qab no: Rau ib qho Function lossis sub-VI cov tswv yim rau nws ib txwm nyob rau sab laug thiab cov txiaj ntsig ib txwm yog qhov ncaj ncees. Txhawm rau saib txhua qhov kev sib txuas, mus rau Cov ntawv qhia zaub mov Pab thiab xaiv "Qhia Kev Pab". Nrog Kev Pab tau qhib, thaum koj txav koj cov cuab yeej kho ntawm lub luag haujlwm/sub-VI lub vijtsam pab yuav tshwm sim. Thaum cov cuab yeej xaim tso rau ntawm qhov haujlwm lossis sub-VI, lub davhlau ya nyob twg ntawm cov haujlwm ua haujlwm pom nrog kev sib txuas tau hais tseg. Qhov no ua rau nws yooj yim los txuas cov xaim mus rau cov chaw tsim nyog. Yog tias kev sib txuas ntawm ob txoj haujlwm/sub-VIs tsis sib xws, tom qab ntawd kab ntawv (-----) kab yuav tshwm ntawm qhov kev sib txuas es tom qab ntawv yog kab. Qhov no txhais tau tias kev txuas xov tooj yog nqa cov ntaub ntawv tsis sib xws (piv txwv li ib qho array rau tus lej lossis pawg rau ib pawg). Txheeb xyuas qhov kev sib txuas dua nrog "Kev Pab" tshuaj xyuas lossis los ntawm saib daim duab 18. Siv cov cuab yeej xaim, txuas cov kev tswj kom tsim nyog rau sub-VI raws li qhia hauv daim duab 18. Txuas qhov ntsuas qhov ntsuas ntawm qhov kawg ntawm koj kev tsim kho. Thaum koj qhov kev ua tiav tiav, lub cuab yeej yuav qhia qhov xwm txheej ntawm VI. Raws li tau hais ua ntej yog tias kev sib txuas tsis zoo lossis tsis tsim nyog, nws yuav qhia ntawm daim duab nrog kab tawg. Yog tias lub dav hlau tsis txuas nrog qhov tsim nyog, lub cuab yeej yuav nthuav tawm cov xwm txheej raws li qhia hauv daim duab 17.

Kauj Ruam 16: Tsim Daim Duab Vaj Huam Sib Luag

Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag
Tsim Daim Duab Vaj Huam Sib Luag

Kauj Ruam Kawg Thaum ua tiav thiab yog tias thaiv kab ntawv raug lawm, daim duab yuav tsum zoo ib yam li hauv daim duab 18. Muaj qee qhov kev xaiv ntxiv thiab cov thaiv uas koj pom hauv daim duab: Tom qab txuas tag nrho cov xov hlau raws li qhia hauv daim duab 18, txuas mus rau lub vaj huam sib luag pem hauv ntej thiab sau cov ntaub ntawv tsim nyog ntawm lub vaj huam sib luag pem hauv ntej raws li tau piav qhia hauv qab no: Xeem Tsawg & Siab Channel li 0 rau Kev Tswj Xyuas Channel. Kho koj lub tshuab hluav taws xob kom ua haujlwm tau 100 Hz, 2v pp sine wave teeb liab Nyob ntawm qhov zaus ntawm cov ntaub ntawv yoj yoj, nkag mus rau tus lej piv txwv uas tsim nyog. Tom qab nkag mus rau cov ntaub ntawv tsim nyog, nyem rau ntawm xub sab xis raws li qhia hauv daim duab. 16 hauv qab no kom pib nrhiav cov ntaub ntawv. tej zaum yuav tau pom, cov ntaub ntawv nrhiav tau yog ua tiav thaum lub sijhawm nyem rau ntawm xub xub Txhawm rau ua cov ntaub ntawv txuas ntxiv mus nyem rau ntawm lub voj xub thiab cov ntaub ntawv nrhiav tau yuav txuas ntxiv mus txog thaum NTSUAS khawm raug nias.

Pom zoo: