音频信号发生器毕业设计论文翻译英文.docx

上传人:b****5 文档编号:6887568 上传时间:2023-01-12 格式:DOCX 页数:16 大小:139.89KB
下载 相关 举报
音频信号发生器毕业设计论文翻译英文.docx_第1页
第1页 / 共16页
音频信号发生器毕业设计论文翻译英文.docx_第2页
第2页 / 共16页
音频信号发生器毕业设计论文翻译英文.docx_第3页
第3页 / 共16页
音频信号发生器毕业设计论文翻译英文.docx_第4页
第4页 / 共16页
音频信号发生器毕业设计论文翻译英文.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

音频信号发生器毕业设计论文翻译英文.docx

《音频信号发生器毕业设计论文翻译英文.docx》由会员分享,可在线阅读,更多相关《音频信号发生器毕业设计论文翻译英文.docx(16页珍藏版)》请在冰豆网上搜索。

音频信号发生器毕业设计论文翻译英文.docx

音频信号发生器毕业设计论文翻译英文

 

本科毕业设计(论文)外文翻译原文

 

学生姓名:

何晓君

院(系):

电子工程学院

专业班级:

测控0602班

指导教师:

薛晓书

完成日期:

2010年4月20日

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

fromtheshortcutmenuorpressthekeystoopenablankVI.

Noticethatablankfrontpanelandblockdiagramappear.

NoteYoualsocanopenablankVIbyselectingBlankVIfromtheCreatenewlistin

TheNewdialogboxorbyselectingFile»NewVIfromthefrontpanelorblock

diagrammenubar.

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

placethepaletteonthescreen.

NoteYoucanright-clickonablankspaceontheblockdiagramorthefrontpaneltobringuptheFunctionsorControlspalettes.

AddinganExpressVIthatSimulatesaSignal

CompletethefollowingstepstofindtheExpressVIyouwanttouseandthenaddittotheblockdiagram.

1.IftheContextHelpwindowisnotvisible,pressthekeystoopentheContextHelpwindow.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.

5.DisplaythefrontpanelandruntheVI.

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.

Thetabledisplaysthemea

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

当前位置:首页 > 法律文书 > 调解书

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

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