NI官方labview培訓(xùn)教材Lesson+1-4.ppt_第1頁(yè)
NI官方labview培訓(xùn)教材Lesson+1-4.ppt_第2頁(yè)
NI官方labview培訓(xùn)教材Lesson+1-4.ppt_第3頁(yè)
NI官方labview培訓(xùn)教材Lesson+1-4.ppt_第4頁(yè)
NI官方labview培訓(xùn)教材Lesson+1-4.ppt_第5頁(yè)
已閱讀5頁(yè),還剩87頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

NationalInstrumentsConfidential,1,LabVIEWIntroductionCourseSemester,NationalInstruments11500N.MopacExpresswayAustin,Texas78759(512)683-0100,2,GraphicalProgrammingforTest,Measurement,andControlRapidapplicationdevelopmentwithExpressVIsandeasy-to-usegraphicalenvironmentInteractivemeasurementassistantsandpowerfulredesignedDAQinterfaceforconnectingtoalltypesofI/OExpandedtargetingoptionsfromReal-TimetoFPGAtoPDALocalizedinFrench,German,andJapanese(Koreandocumentation),3,ReadersofElectronicDesignnameinventionofLabVIEWasoneoftheTop50MilestonesfortheElectronicsIndustryLabVIEW6.1receivesIANAutomationExcellenceAwardof2002DesignNewsawardsLabVIEW6iBestComputerProductivityToolof2000LabVIEW6ichosenthe“BestoftheBest”inthesoftwarecategorybyreadersofEvaluationEngineering,LabVIEWAwards,4,May2003January2002August2000March1998February1996August1993September1992January1990October1986April1983,LabVIEW7ExpressVIs,I/OAssistants,FPGA/PDAtargetsLabVIEW6.1Enhancednetworkingcapabilities,analysisLabVIEW6iInternet-readymeasurementintelligenceLabVIEW5.0ActiveX,MultithreadingLabVIEW4.0Addedprofessionaltools,improveddebuggingLabVIEW3.0MultiplatformversionofLabVIEWLabVIEWforWindowsLabVIEW2.0forMacintoshLabVIEW1.0forMacintoshLabVIEWprojectbegins,NILabVIEW:AHistoryofInnovation,5,Third-PartySoftwareWolframResearchMathematicaMicrosoftExcelTheMathWorksMATLABandSimulinkMathSoftMathCADElectronicWorkbenchMultiSimTexasInstrumentsCodeComposerStudioAnsoftRFcircuitdesignsoftwareMicrosoftAccessMicrosoftSQLServerOracle,LeveragingCommercialTechnologies,CommunicationProtocolsEthernetCANDeviceNetUSBIEEE1394RS-232GPIBRS-485,6,PC,Mac,Linux,Sun,LabVIEWEverywhere,NetworkedI/O,PCBoards,Workstation,Handheld,Embedded(FPGA),IndustrialComputer(PXI),Wireless,Sensor,TektronixOpenWindowsOscilloscopes,7,TheLabVIEWFamily,NILabVIEWGraphicalProgrammingSoftwareforMeasurementandAutomation,LabVIEWReal-TimeModule,LabVIEWFPGAModule,LabVIEWPDAModule,LabVIEWDataloggingandSupervisoryControlModule,8,Acquire,Analyze,andPresent,Nearlyalltest,measurement,andcontrolapplicationscanbedividedinto3maincomponents:theabilitytoacquire,analyze,andpresentdata.LabVIEWistheeasiest,mostpowerfultoolforacquiring,analyzing,andpresentingreal-worlddata.,9,AcquirewithLabVIEW,LabVIEWcanacquiredatausingthefollowingdevicesandmore:GPIB,Serial,Ethernet,VXI,PXIInstrumentsDataAcquisition(DAQ)PCIeXtensionsforInstrumentation(PXI)ImageAcquisition(IMAQ)MotionControlReal-Time(RT)PXIPLC(throughOPCServer)PDAModularInstruments,LabVIEWistightlyintegratedwithallNIhardware,inadditiontoconnectingtothousandsofI/Odevicesfromhundredsofdifferentvendors.,10,AnalyzewithLabVIEW,LabVIEWincludesthefollowingtoolstohelpyouanalyzeyourdata:Morethan400measurementanalysisfunctionsforDifferentialEquations,Optimization,CurveFitting,Calculus,LinearAlgebra,Statistics,etc.12newExpressVIsspecificallydesignedformeasurementanalysis,includingfilteringandspectralanalysisSignalProcessingVIsforFiltering,Windowing,Transforms,PeakDetection,HarmonicAnalysis,SpectrumAnalysis,etc.,PowerfulmeasurementanalysisisbuiltintotheLabVIEWdevelopmentenvironment.,11,PresentwithLabVIEW,LabVIEWincludesthefollowingtoolstohelpyoupresentyourdata:OnyourmachineGraphs,Charts,Tables,Gauges,Meters,Tanks,3DControls,PictureControl,3DGraphs(WindowsOnly),ReportGeneration(WindowsOnly)OvertheInternetWebPublishingTools,Datasocket(WindowsOnly),TCP/IP,VIServer,RemotePanels,EmailEnterpriseConnectivityToolsetSQLTools(Databases),InternetTools(FTP,Telnet,HTML),PresentationwithLabVIEWcanbedoneonyourPCoroveranetwork,oryoucantakeadvantageofadditionalapplicationssuchasDIAdem.,12,CourseMap,IntroductiontoLabVIEW,Repetitionnofrontpanelorblockdiagram,35,BlockDiagramNodes,IconExpandableNodeExpandedNode,FunctionGeneratorVISameVI,viewedthreedifferentwaysYellowfielddesignatesastandardVIBluefielddesignatesanExpressVI,36,BlockDiagramTerminals,TerminalsareentryandexitportsthatexchangeinformationbetweenthepanelanddiagramTerminalsareanalogoustoparametersandconstantsintext-basedprogramminglanguagesRight-clickandtoggleViewAsIcontochangetheiconview,37,WiringtheBlockDiagram,Scalar,Numeric,Boolean,String,2DArray,1DArray,Dynamic,38,WiringTechniques,HotSpot,AutomaticWiringUseContextHelpWindowwhenwiringRight-clickwireandselectCleanUpWireTipStripsAutomaticwireroutingRight-clickterminalsandselectVisibleItemsTerminals,Viewtheterminalconnectionstoafunction,39,Blockdiagramexecutesdependentontheflowofdata;blockdiagramdoesNOTexecutelefttorightNodeexecuteswhendataisavailabletoALLinputterminalsNodessupplydatatoalloutputterminalswhendone,DataflowProgramming,40,ContextHelp,TodisplaytheContextHelpwindow,selectHelpShowContextHelp,pressthekeys,orpresstheShowContextHelpWindowbuttoninthetoolbarMovecursoroverobjecttodisplayhelpConnections:RequiredboldRecommendednormalOptional-dimmed,Simple/DetailedContextHelpLockHelpMoreHelp,41,LabVIEWHelp,ClicktheMoreHelpbuttonintheContextHelpwindowSelectHelpVI,Function,dataflowisanimatedusingbubbles.Valuesaredisplayedonwires.,44,DebuggingTechniques,ProbeRight-clickonwireandselectprobeanditshowsdataasitflowsthroughthewiresegmentBreakpointsRight-clickonwireandselectSetBreakpoint;pauseexecutionatthebreakpoint.ConditionalProbeCombinationofabreakpointandaprobe.Right-clickonwireandselectcustomprobe.,45,DebuggingTechniques,StepInto,Over,andOutbuttonsforSingleStepping,ClickonStepIntobuttontoenablesinglesteppingOnceSingleSteppinghasbegun,thebuttonstepsintonodesClickonStepOverbuttontoenablesinglesteppingortostepovernodesClickonStepOutbuttontostepoutofnodes,46,Summary,Virtualinstruments(VIs)havethreemainpartsthefrontpanel,theblockdiagram,andtheiconandconnectorpaneThefrontpanelistheuserinterfaceofaLabVIEWprogramandtheblockdiagramistheexecutablecodeTheblockdiagramcontainsthegraphicalsourcecodecomposedofnodes,terminals,andwiresUseExpressVIs,standardVIsandfunctionsontheblockdiagramtocreateyourmeasurementcode.Forthemostcommonrequirements,useExpressVIswithinteractiveconfigurationdialogstodefineyourapplication.FloatingPalettes:ToolsPalette,ControlsPalette(onlywhenFrontPanelWindowisactive),andFunctionsPalette(onlywhenBlockDiagramWindowisactive)TherearehelputilitiesincludingtheContextHelpWindowandLabVIEWHelp,47,Summary,Placecontrols(inputs)andindicators(outputs)inthefrontpanelwindowUsetheOperatingtooltomanipulatepanelobjects.UsethePositioningtooltoselect,move,andresizepanelobjects.UsetheWiringtooltoconnectdiagramobjectsControlterminalshavethickerbordersthanindicatorterminalsAllfrontpanelobjectshavepropertypagesandshortcutmenusWiringisthemechanismtocontroldataflowandproduceLabVIEWprogramsBrokenRunarrowmeansanonexecutableVIVariousdebuggingtoolsandoptionsavailablesuchassettingprobesandbreakpoints,executionhighlighting,andsinglestepping,48,Tips,CommonkeyboardshortcutsAccessToolsPalettewith-right-clickIncrement/DecrementfasterusingkeyToolsOptionsselectionsetpreferencesinLabVIEWVIProperties(Filemenu),WindowsSunLinuxMacOSRunaVIFindobjectActivateContextHelpwindowRemoveallbrokenwiresClosetheactivewindowTogglebtwnDiagram/PanelWindow,49,Lesson2ModularProgramming,TOPICSSubVIsIconandConnectorPaneUsingSubVIsCreatingaSubVIfromsectionsofaVI,50,LabVIEWHierarchy,SubVI,51,SubVIs,FunctionPseudoCodefunctionaverage(in1,in2,out)out=(in1+in2)/2.0;SubVIBlockDiagram,CallingProgramPseudoCodemainaverage(point1,point2,pointavg)CallingVIBlockDiagram,52,Icon/Connector,AniconrepresentsaVIinotherblockdiagramsAconnectorpassesdatatoandreceivesdatafromasubVIthroughterminals,Icon,Connector,terminals,terminals,53,SubVIExampleCalculatingSlope,AVIwithinanotherVIiscalledasubVITouseaVIasasubVI,createaniconandaconnectorpaneafterbuildingthefrontpanelandblockdiagram,54,CreatingtheIcon,Icon:graphicalrepresentationofaVIRight-clickintheiconpane(PanelorDiagram)Alwayscreateablackandwhiteicon,DefaultIcon,Createacustomicon,55,CreatingtheConnector,Right-clicktheicon(FrontPanelonly),56,CreatingtheConnector-continued,Clickwithwiringtool,57,TheConnectorPane,TerminalcolorsmatchthedatatypestowhichtheyareconnectedClicktheterminaltoseeitsassociatedfrontpanelobject,58,UsingaVIasaSubVI,AllFunctionsSelectaVIDragiconontotargetdiagram,59,HelpandClassifyingTerminals,Classifyinputsandoutputs:RequiredErrorifnoconnectionRecommendedWarningifnoconnectionOptionalNoeffectifnoconnection,60,CreateSubVIOption,EncloseareatobeconvertedintoasubVISelectCreateSubVIfromtheEditMenu,61,Summary,VIscanbeusedassubVIsafteryoumaketheiconandconnectorIconcreatedusingIconEditorConnectordefinedbychoosingnumberofterminalsLoadsubVIsusingtheSelectaVIoptionintheAllFunctionspaletteordraggingtheiconontoanewdiagramOnlinehelpforsubVIsusingtheShowContextHelpoptionDescriptionsdocumentfunctionalityUseCreateSubVIfeaturetoeasilymodularizetheblockdiagram,62,Lesson3RepetitionandLoops,TOPICSWhileLoopsForLoopsAccessingPreviousLoopData,63,WhileLoops,LabVIEWWhileLoopFlowChartPseudoCode,Repeat(code);UntilConditionmet;End;,64,WhileLoops,1.SelectWhileLoop,2.Enclosecodetoberepeated,3.Dropordragadditionalnodesandthenwire,65,SelecttheLoopCondition,ClicktheConditionalTerminalwiththeOperatingtooltodefinewhentheloopstopsDefault:StopifTrue,IterationTerminal,ConditionalTerminal,66,StructureTunnels,Tunnelsfeeddataintoandoutofstructures.Thetunnelisablockthatappearsontheborder;thecoloroftheblockisrelatedtothedatatypewiredtothetunnel.Whenatunnelpassesdataintoaloop,theloopexecutesonlyafterdataarriveatthetunnel.Datapassoutofaloopaftertheloopterminates.,67,ForLoops,LabVIEWForLoopFlowChartPseudoCode,N=100;i=0;Untili=N:Repeat(code;i=i+1);End;,68,ForLoops,InStructuressubpaletteofFunctionspaletteEnclosecodetoberepeatedand/orresizeandaddnodesinsideboundaryExecutesdiagraminsideofloopapredeterminednumberoftimes,Countterminal(Numericalinput),WaitUntilNextmsMultiplefunction,69,WaitFunctions,WaitUntilNextmsMultipleFunctionsTimefirstelementisindex0,31,index10-elementarray,2Darray,Fiverowbysevencolumnarrayof35elements,0123456,0,1,2,3,4,Arrays,82,AddDimensionfor2Darrays,1.SelecttheArrayshellfromtheControlspalette,2.Placedataobjectinsideshell,ArrayControlsandIndicators,83,1.SelectArrayConstantshellfromtheArraysubpalette,2.Placethedataobjectinthearrayshell,CreatingArrayConstants,84,Loopscanaccumulatearraysattheirboundarieswithauto-indexingForLoopsauto-indexbydefaultWhileLoopsoutputthefinalvaluebydefaultRight-clickontunnelandenable/disableauto-indexing,Auto-Indexing,Wirebecomesthicker,Wireremainsthesamesize,Auto-IndexingDisabled,Auto-IndexingEnabled,Onlyonevalue(lastiteration)ispassedoutoftheloop,1DArray,012345,85,InnerloopcreatescolumnelementsOuterloopstacksthemintorows,Creating2DArrays,1DArray,012345,2DArray,86,Auto-IndexInput,AnarrayinputcanbeusedtosettheForLoopcountterminalNumberofel

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論