




已閱讀5頁,還剩87頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 康復(fù)醫(yī)療考試題(含參考答案)
- 高級營銷員試題庫(附參考答案)
- 遠(yuǎn)程辦公服務(wù)平臺租賃協(xié)議
- 農(nóng)業(yè)生產(chǎn)資料集中采購合作協(xié)議
- 無人機(jī)飛航測繪合作協(xié)議
- 2023年計算機(jī)軟考考試模擬試題及答案
- 道交法試題及答案解說
- 2025福建南平市供電服務(wù)有限公司招聘52人筆試參考題庫附帶答案詳解
- 2025江蘇亞威鑄造材料科技有限公司招聘41人筆試參考題庫附帶答案詳解
- 紡織品設(shè)計的供應(yīng)鏈管理方法試題及答案
- 《零星工程項目監(jiān)理方案》
- 2024年度電子煙產(chǎn)品OEM定制與合作協(xié)議
- 礦山植被恢復(fù)治理方案
- 年度污水處理托管服務(wù) 投標(biāo)方案(技術(shù)標(biāo) )
- 2025新外研社版英語七年級下單詞表
- 急救救援知識培訓(xùn)
- 牧場物語-礦石鎮(zhèn)的伙伴們-完全攻略
- ISO 22003-1:2022《食品安全-第 1 部分:食品安全管理體系 審核與認(rèn)證機(jī)構(gòu)要求》中文版(機(jī)翻)
- 合規(guī)培訓(xùn)計劃方案
- 大氣簡約南昌大學(xué)校園文化介紹宣傳
- 行賄懺悔書-保證書
評論
0/150
提交評論