测控技术及仪器论文翻译英文Word下载.docx

上传人:b****7 文档编号:22374061 上传时间:2023-02-03 格式:DOCX 页数:18 大小:113.53KB
下载 相关 举报
测控技术及仪器论文翻译英文Word下载.docx_第1页
第1页 / 共18页
测控技术及仪器论文翻译英文Word下载.docx_第2页
第2页 / 共18页
测控技术及仪器论文翻译英文Word下载.docx_第3页
第3页 / 共18页
测控技术及仪器论文翻译英文Word下载.docx_第4页
第4页 / 共18页
测控技术及仪器论文翻译英文Word下载.docx_第5页
第5页 / 共18页
点击查看更多>>
下载资源
资源描述

测控技术及仪器论文翻译英文Word下载.docx

《测控技术及仪器论文翻译英文Word下载.docx》由会员分享,可在线阅读,更多相关《测控技术及仪器论文翻译英文Word下载.docx(18页珍藏版)》请在冰豆网上搜索。

测控技术及仪器论文翻译英文Word下载.docx

完成日期:

2011年3月5日

ExpandingtheFeaturesofaVI

YoucanchooseoneofmanyLabVIEWVItemplatestouseasastartingpoint.However,sometimesyouneedtobuildaVIforwhichatemplateisnotavailable.ThischapterteachesyouhowtobuildandcustomizeaVIwithoutusingatemplate.

BuildingaVIfromaBlankTemplate

Inthefollowingexercises,youwillopenablankVIandaddExpressVIsandstructurestotheblockdiagramtobuildanewVI.YouwillbuildaVIthatgeneratesasignal,reducesthenumberofsamplesinthesignal,anddisplaystheresultingdatainatableonthefrontpanel.Whenyoucompletetheexercises,thefrontpaneloftheVIwilllooksimilartothefrontpanelinFigure3-1.

Youcancompletetheexercisesinapproximately30minutes.

Figure3-1.FrontPanelfortheReduceSamplesVI

OpeningaBlankVI

Ifnotemplateisavailableforthetaskyouwanttocreate,youcanstartwithablankVIandaddExpressVIstoaccomplishthespecifictask.CompletethefollowingstepstoopenablankVI.

1.IntheLabVIEWdialogbox,clickthearrowontheNewbuttonandselectBlankVI

fromtheshortcutmenuorpressthe<

Ctrl-N>

keystoopenablankVI.

Noticethatablankfrontpanelandblockdiagramappear.

NoteYoualsocanopenablankVIbyselectingBlankVIfromtheCreatenewlistin

TheNewdialogboxorbyselectingFile»

NewVIfromthefrontpanelorblock

diagrammenubar.

2.IftheFunctionspaletteisnotvisible,right-clickanyblankspaceontheblockdiagramtobringupthetemporaryversionoftheFunctionspalette.Clickthethumbtack,shownatleft,intheupperleftcorneroftheFunctionspaletteto

placethepaletteonthescreen.

NoteYoucanright-clickonablankspaceontheblockdiagramorthefrontpaneltobringuptheFunctionsorControlspalettes.

AddinganExpressVIthatSimulatesaSignal

CompletethefollowingstepstofindtheExpressVIyouwanttouseandthenaddittotheblockdiagram.

1.IftheContextHelpwindowisnotvisible,pressthe<

Ctrl-H>

keystoopentheContextHelpwindow.YoualsocanpresstheShowContextHelpWindowbutton,shownatleft,toopentheContextHelpwindow.

2.SelecttheInputpaletteontheFunctionspaletteandmovethecursorovertheExpressVIsontheInputpalette.NoticethattheContextHelpwindowdisplaysinformationaboutthefunctionofeachExpressVI.

3.FromtheinformationprovidedintheContextHelpwindow,findtheExpressVIthatcanoutputasinewavesignal.

4.SelecttheExpressVIandplaceitontheblockdiagram.TheConfigureSimulateSignaldialogboxappears.

5.IdlethecursoroverthevariousoptionsintheConfigureSimulateSignaldialogbox,suchasFrequency(Hz),Amplitude,andSamplespersecond(Hz).ReadtheinformationthatappearsintheContextHelpwindow.

6.ConfiguretheSimulateSignalExpressVItogenerateasinewavewithafrequencyof10.7andamplitudeof2.

7.NoticehowthesignaldisplayedintheResultPreviewwindowchangestoreflectthe

configuredsinewave.

8.ClosetheConfigureSimulateSignaldialogbox.

9.MovethecursorovertheSimulateSignalExpressVIandreadtheinformationthat

appearsintheContextHelpwindow.NoticethattheContextHelpwindownowdisplaystheconfigurationoftheSimulateSignalExpressVI.

10.SavethisVIasReduceSamples.vitoaneasilyaccessiblelocation.

ModifyingtheSignal

CompletethefollowingstepstousetheLabVIEWHelptosearchfortheExpressVIthatreducesthenumberofsamplesinasignal.

1.SelectHelp»

VI,Function,&

How-ToHelptoopentheLabVIEWHelp.

2.ClicktheSearchtabandtypesamplecompressionintheTypeintheword(s)tosearchfortextbox.

NoticethatthiswordchoicereflectswhatyouwantthisExpressVItodo—compress,orreduce,thenumberofsamplesinasignal.

3.SelecttheSampleCompressionExpressVItopictodisplaythetopicthatdescribestheSampleCompressionExpressVI.

4.AfteryoureadthedescriptionoftheExpressVI,clickthePlaceontheblockdiagram

button,shownatleft,toselecttheExpressVI.

5.Movethecursortotheblockdiagram.

NoticehowLabVIEWattachestheSampleCompressionExpressVItothecursor.

6.PlacetheSampleCompressionExpressVIontheblockdiagramtotherightoftheSimulateSignalExpressVI.

7.ConfiguretheSampleCompressionExpressVItoreducethesignalbyafactorof25usingthemeanofthesevalues.

8.ClosetheConfigureSampleCompressiondialogbox.

9.UsingtheWiringtool,wiretheSineoutputintheSimulateSignalExpressVItotheSignalsinputintheSampleCompressionExpressVI.

CustomizingtheFrontPanel

Inthepreviousexercises,youaddedcontrolsandindicatorstothefrontpanelusingtheControlspalette.Youalsocanaddcontrolsandindicatorsfromtheblockdiagram.Completethefollowingstepstocreatecontrolsandindicators.

1.Right-clicktheMeanoutputintheSampleCompressionExpressVIandselectCreate»

NumericIndicatortocreateanumericindicator.

2.Right-clicktheMeanoutputoftheSampleCompressionExpressVIandselectInsertInput/OutputfromtheshortcutmenutoinserttheEnableinput.

3.Right-clicktheEnableinputandselectCreate»

ControltocreatetheEnableswitch.

4.Right-clickthewirelinkingtheSineoutputintheSimulateSignalExpressVItotheSignalsinputintheSignalCompressionExpressVIandselectCreate»

GraphIndicator.

Noticethatyoucancreatecontrolsandindicatorsfromtheblockdiagram.Whenyoureatecontrolsandindicatorsusingthismethod,LabVIEWautomaticallycreatesterminalsthatarelabeledandformattedcorrectly.

5.UsingtheWiringtool,wiretheMeanoutputintheSampleCompressionExpressVItotheSineterminal.NoticethattheMergeSignalsfunctionappears.

6.ArrangetheobjectsontheblockdiagramsothattheyappearsimilartoFigure3-2.

TipYoucanright-clickanywireandselectCleanUpWirefromtheshortcutmenutohaveLabVIEWautomaticallyarrangethewiresforyou.

Figure3-2.BlockDiagramfortheReduceSamplesVI

7.Displaythefrontpanel.

Noticethatthecontrolsandindicatorsyouaddedautomaticallyappearonthefrontpanelwithlabelsthatcorrespondtotheirfunction.

8.SavethisVI.

ConfiguringtheVItoRunContinuouslyUntiltheUserStopsIt

Inthecurrentstate,theVIrunsonce,generatesonesignal,thenstopsexecuting.ToruntheVIuntilaconditionismet,youcanaddaWhileLooptotheblockdiagram.CompletethefollowingstepstoaddaWhileLoop.

1.DisplaythefrontpanelandruntheVI.

NoticehowtheVIrunsonceandthenstops.AlsonoticehowthereisnoSTOPbutton.

2.DisplaytheblockdiagramandselecttheWhileLoopontheExecutionControlpalette.

3.Movethecursortotheupperleftcorneroftheblockdiagram.PlacethetopleftcorneroftheWhileLoophere.

4.ClickanddragthecursordiagonallytoenclosealltheExpressVIsandwires,asshowninFigure3-3.

Figure3-3.PlacingtheWhileLooparoundtheExpressVIs

NoticethattheWhileLoop,shownatleft,appearswithaSTOPbuttonwiredtotheconditionterminal.ThisWhileLoopisconfiguredtostopwhentheuserclickstheSTOPbutton.

5.DisplaythefrontpanelandruntheVI.

NoticethattheVInowrunsuntilyouclicktheSTOPbutton.AWhileLoopexecutesthefunctionsinsidetheloopuntiltheuserpressestheSTOPbutton.

ControllingtheSpeedofExecution

Toplotthepointsonthewaveformgraphmoreslowly,youcanaddatimedelaytotheblockdiagram.CompletethefollowingstepstocontrolthespeedatwhichtheVIexecutes.

1.Ontheblockdiagram,selecttheTimeDelayExpressVIontheExecutionControlpaletteandplaceitinsidetheloop.

2.Type.250intheTimedelay(seconds)textbox.Thistimedelayspecifieshowfasttheloopruns.Witha.250secondtimedelay,theloopiteratesonceeveryquarterofasecond.

3.ClosetheConfigureTimeDelaydialogbox.

4.SavethisVI.

6.ClicktheEnableswitchandnoticethechangeonthegraph.

NoticehowiftheEnableswitchison,thegraphdisplaysthereducedsignal.IftheEnableswitchisoff,thegraphdoesnotdisplaythereducedsignal.

7.ClicktheSTOPbuttontostoptheVI.

UsingaTabletoDisplayData

Completethefollowingstepstodisplayacollectionofmeanvaluesinatableonthefrontpanel.

1.Onthefrontpanel,selecttheExpressTableindicatorontheTextIndicatorspaletteandplaceitonthefrontpaneltotherightofthewaveformgraph.

2.Displaytheblockdiagram.

NoticethattheTableterminalappearswiredtotheBuildTableExpressVIautomatically.

3.IftheBuildTableExpressVIandtheTableterminalarenotselectedalready,clickanopenareaontheblockdiagramtotheleftoftheBuildTableExpressVIandtheTableterminal.DragthecursordiagonallyuntiltheselectionrectangleenclosestheBuildTableExpressVIandtheTableterminal,shownatleft.AmovingdashedoutlinecalledamarqueehighlightstheBuildTableExpressVI,theTableterminal,andthewirejoiningthetwo.

4.DragtheobjectsintotheWhileLooptotherightoftheMeanterminal.

NoticethattheWhileLoopautomaticallyresizestoenclosetheBuildTableExpressVIandtheTabletermial.

5.UsingtheWiringtool,wiretheMeanterminaloftheSampleCompressionExpressVItotheSignalsinputoftheBuildTableExpressVI.

TheblockdiagramshouldappearsimilartoFigure3-4.

Figure3-4.BlockDiagramoftheReduceSamplesVI

6.DisplaythefrontpanelandruntheVI.

7.ClicktheEnableswitch.

Thetabledisplaysthemeanvaluesofevery25sa

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 文学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1