资源描述:
《1. Get Started with LabVIEW.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、GettingStartedwithLabVIEWVirtualInstrumentsApproximateTimeYoucancompletethisexerciseinapproximately30minutes.BackgroundLabVIEWprogramsarecalledvirtualinstruments,orVIs,becausetheirappearanceandoperationimitatephysicalinstruments,suchasoscilloscopesandmu
2、ltimeters.LabVIEWcontainsacomprehensivesetoftoolsforacquiring,analyzing,displaying,andstoringdata,aswellastoolstohelpyoutroubleshootcodeyouwrite.InLabVIEW,youbuildauserinterface,orfrontpanel,withcontrolsandindicators.Controlsareknobs,pushbuttons,dials,a
3、ndotherinputmechanisms.Indicatorsaregraphs,LEDs,andotheroutputdisplays.Afteryoubuildtheuserinterface,youaddcodeusingVIsandstructurestocontrolthefrontpanelobjects.Theblockdiagramcontainsthiscode.YoucanuseLabVIEWtocommunicatewithhardwaresuchasdataacquisit
4、ion,vision,andmotioncontroldevices,aswellasGPIB,PXI,VXI,RS232,andRS485instruments.OverviewInthefollowingexercise,youwillbuildaVIthatgeneratesasignalanddisplaysthatsignalinagraph.Youwillbuildandcustomizeauserinterfacethatallowsyoutocontroltheamplitudeoft
5、hesignalandeasilydisplayyourdata.1CompletedExercise2Step-by-StepInstructions1.LaunchingLabVIEWTheGettingStartedwindowappearswhenyoulaunchLabVIEW.YoucanopentheLabVIEWGettingStartedwindowbydoingeitherofthefollowing:a.Double-clicktheLabVIEWicononyourdeskto
6、p,orb.IntheWindowsStartmenu,navigatetoPrograms»NationalInstruments»LabVIEW8.5»LabVIEWTheGettingStartedwindowisusedtocreatenewVIs,viewthemostrecentlyopenedLabVIEWfiles,findexamples,andlaunchtheLabVIEWHelp.Youalsocanaccessinformationandresourcestohelpyoul
7、earnaboutLabVIEW,suchasspecificmanuals,helptopics,andresourcesontheNationalInstrumentsWebsite,ni.com.TheGettingStartedwindowdisappearswhenyouopenaVIandreappearswhenyoucloseallopenfiles.YoucanalsodisplaythewindowfromanopenVIbyselectingView»GettingStarted
8、Window.32.OpeningaNewVIfromaTemplateLabVIEWprovidesbuilt-intemplateVIsthatincludethefunctions,structures,andfrontpanelobjectsyouneedtogetstartedbuildingcommonmeasurementapplications.CompletethefollowingstepstocreateaVIthatgenerat