音频信号发生器毕业设计论文翻译英文.docx
- 文档编号:6887568
- 上传时间:2023-01-12
- 格式:DOCX
- 页数:16
- 大小:139.89KB
音频信号发生器毕业设计论文翻译英文.docx
《音频信号发生器毕业设计论文翻译英文.docx》由会员分享,可在线阅读,更多相关《音频信号发生器毕业设计论文翻译英文.docx(16页珍藏版)》请在冰豆网上搜索。
音频信号发生器毕业设计论文翻译英文
本科毕业设计(论文)外文翻译原文
学生姓名:
何晓君
院(系):
电子工程学院
专业班级:
测控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
fromtheshortcutmenuorpressthe
Noticethatablankfrontpanelandblockdiagramappear.
NoteYoualsocanopenablankVIbyselectingBlankVIfromtheCreatenewlistin
TheNewdialogboxorbyselectingFile»NewVIfromthefrontpanelorblock
diagrammenubar.
2.IftheFunctionspaletteisnotvisible,right-clickanyblankspaceontheblockdiagramtobringupthetemporaryversionoftheFunctionspalette.Clickthethumbtack,shownatleft,intheupperleftcorneroftheFunctionspaletteto
placethepaletteonthescreen.
NoteYoucanright-clickonablankspaceontheblockdiagramorthefrontpaneltobringuptheFunctionsorControlspalettes.
AddinganExpressVIthatSimulatesaSignal
CompletethefollowingstepstofindtheExpressVIyouwanttouseandthenaddittotheblockdiagram.
1.IftheContextHelpwindowisnotvisible,pressthe
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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 音频 信号发生器 毕业设计 论文 翻译 英文