




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
StrainTestSystemBasedonVirtualInstrumentTechnology
BY:TomafridFrom:SCIENCEOFNEWJERSEYDAILY2010.1
ComputerScienceDepartment
collegeofnewjerseyInstituteoftechnology
USA.
Email:
Tomafrid@
Abstract
Straintestisoneofthemostwidelyappliedtechnologiesinmechanicalengineering.Nowadays,theconventionalstraintesttechnologygraduallycan’tkeepupwiththestepofmoderntesttechnology’sdevelopment.VirtualInstrument,whosecoreiscomputer,isbecomingthemaintrendoftesttechnologyinsteadofconventionalinstruments.ButthesoftwaredevelopmentofvirtualInstrumentisrathercomplicate,itlimitstheapplicationanddevelopmentofvirtualinstrumenttechnologyinstraintestfield.Inordertosolvetheproblemmentionedabove,astraintestsoftwaresystemwasdevelopedinLabVIEW8.0.First,functionalmoduledesignmethodwasadoptedtoconstructthesoftwaresystembasedonstudyingthetestmethodusingtraditionalinstruments.Intheprocessofrealizingfunctionalmodule,“event-loop-statemachine”modelwasdesigned.Second,therunningprocedureofsoftwaresystemwasdesignedbasedonstudyingtheconventionaltestprocess.Third,basedonthestraintesthardwaresystemconsistingofNISCXI-1520etc.,themodulesincludingparameterinitialization,bridgebalance,shuntcalibration,filter,stressandloaddisplay,timedomainanalysis,frequencydomainanalysis,datastorage,signalreplay,experimentreportgenerationandstaticcalibrationofsystemweredevelopedtoimplementthetestandcontrolassignment.Finally,someexperimentsweredonetovalidatethesystem’sreliability.Theuserwascapableofcarryingoutthestraintestandanalysistaskusingthecorrespondingsoftwaretestsystemconstructedonlythroughclickingthefunctionalbuttonsonthesystem’smainboardaccordingtothetestrequirement.Itmakesuserfarawayfromthecomplicatesoftwaredevelopment.
LabVIEW(shortforLaboratoryVirtualInstrumentationEngineeringWorkbench)isaplatformanddevelopmentenvironmentforavisualprogramminglanguagefromNationalInstruments.Thegraphicallanguageisnamed"G".OriginallyreleasedfortheAppleMacintoshin1986,LabVIEWiscommonlyusedfordataacquisition,instrumentcontrol,andindustrialautomationonavarietyofplatformsincludingMicrosoftWindows,variousversionsofUNIX,Linux,andMacOSX.ThelatestversionofLabVIEWisversionLabVIEW2010,releasedinAugust2010.
Dataflowprogramming
TheprogramminglanguageusedinLabVIEW,alsoreferredtoasG,isadataflowprogramminglanguage.Executionisdeterminedbythestructureofagraphicalblockdiagram(theLV-sourcecode)onwhichtheprogrammerconnectsdifferentfunction-nodesbydrawingwires.Thesewirespropagatevariablesandanynodecanexecuteassoonasallitsinputdatabecomeavailable.Sincethismightbethecaseformultiplenodessimultaneously,Gisinherentlycapableofparallelexecution.Multi-processingandmulti-threadinghardwareisautomaticallyexploitedbythebuilt-inscheduler,whichmultiplexesmultipleOSthreadsoverthenodesreadyforexecution
Graphicalprogramming
LabVIEWtiesthecreationofuserinterfaces(calledfrontpanels)intothedevelopmentcycle.LabVIEWprograms/subroutinesarecalledvirtualinstruments(VIs).EachVIhasthreecomponents:ablockdiagram,afrontpanel,andaconnectorpanel.ThelastisusedtorepresenttheVIintheblockdiagramsofother,callingVIs.Controlsandindicatorsonthefrontpanelallowanoperatortoinputdataintoorextractdatafromarunningvirtualinstrument.However,thefrontpanelcanalsoserveasaprogrammaticinterface.Thusavirtualinstrumentcaneitherberunasaprogram,withthefrontpanelservingasauserinterface,or,whendroppedasanodeontotheblockdiagram,thefrontpaneldefinestheinputsandoutputsforthegivennodethroughtheconnectorpane.ThisimplieseachVIcanbeeasilytestedbeforebeingembeddedasasubroutineintoalargerprogram.
Thegraphicalapproachalsoallowsnon-programmerstobuildprogramsbydragginganddroppingvirtualrepresentationsoflabequipmentwithwhichtheyarealreadyfamiliar.TheLabVIEWprogrammingenvironment,withtheincludedexamplesandthedocumentation,makesitsimpletocreatesmallapplications.Thisisabenefitononeside,butthereisalsoacertaindangerofunderestimatingtheexpertiseneededforgoodquality"G"programming.Forcomplexalgorithmsorlarge-scalecode,itisimportantthattheprogrammerpossessanextensiveknowledgeofthespecialLabVIEWsyntaxandthetopologyofitsmemorymanagement.ThemostadvancedLabVIEWdevelopmentsystemsofferthepossibilityofbuildingstand-aloneapplications.Furthermore,itispossibletocreatedistributedapplications,whichcommunicatebyaclient/serverscheme,andarethereforeeasiertoimplementduetotheinherentlyparallelnatureofG-code.
Benefits
OnebenefitofLabVIEWoverotherdevelopmentenvironmentsistheextensivesupportforaccessinginstrumentationhardware.Driversandabstractionlayersformanydifferenttypesofinstrumentsandbusesareincludedorareavailableforinclusion.Thesepresentthemselvesasgraphicalnodes.Theabstractionlayersofferstandardsoftwareinterfacestocommunicatewithhardwaredevices.Theprovideddriverinterfacessaveprogramdevelopmenttime.ThesalespitchofNationalInstrumentsis,therefore,thatevenpeoplewithlimitedcodingexperiencecanwriteprogramsanddeploytestsolutionsinareducedtimeframewhencomparedtomoreconventionalorcompetingsystems.Anewhardwaredrivertopology(DAQmxBase),whichconsistsmainlyofG-codedcomponentswithonlyafewregistercallsthroughNIMeasurementHardwareDDK(DriverDevelopmentKit)functions,providesplatformindependenthardwareaccesstonumerousdataacquisitionandinstrumentationdevices.TheDAQmxBasedriverisavailableforLabVIEWonWindows,MacOSXandLinuxplatforms.
Intermsofperformance,LabVIEWincludesacompilerthatproducesnativecodefortheCPUplatform.Thegraphicalcodeistranslatedintoexecutablemachinecodebyinterpretingthesyntaxandbycompilation.TheLabVIEWsyntaxisstrictlyenforcedduringtheeditingprocessandcompiledintotheexecutablemachinecodewhenrequestedtorunoruponsaving.Inthelattercase,theexecutableandthesourcecodearemergedintoasinglefile.TheexecutablerunswiththehelpoftheLabVIEWrun-timeengine,whichcontainssomeprecompiledcodetoperformcommontasksthataredefinedbytheGlanguage.Therun-timeenginereducescompiletimeandalsoprovidesaconsistentinterfacetovariousoperatingsystems,graphicsystems,hardwarecomponents,etc.Therun-timeenvironmentmakesthecodeportableacrossplatforms.Generally,LVcodecanbeslowerthanequivalentcompiledCcode,althoughthedifferencesoftenliemorewithprogramoptimizationthaninherentexecutionspeed.
Manylibrarieswithalargenumberoffunctionsfordataacquisition,signalgeneration,mathematics,statistics,signalconditioning,analysis,etc.,alongwithnumerousgraphicalinterfaceelementsareprovidedinseveralLabVIEWpackageoptions.Thenumberofadvancedmathematicblocksforfunctionssuchasintegration,filters,andotherspecializedcapabilitiesusuallyassociatedwithdatacapturefromhardwaresensorsisimmense.Inaddition,LabVIEWincludesatext-basedprogrammingcomponentcalledMathScriptwithadditionalfunctionalityforsignalprocessing,analysisandmathematics.MathScriptcanbeintegratedwithgraphicalprogrammingusing"scriptnodes"andusesasyntaxthatisgenerallycompatiblewithMATLAB[citationneeded].
ThefullymodularcharacterofLabVIEWcodeallowscodereusewithoutmodifications:aslongasthedatatypesofinputandoutputareconsistent,twosubVIsareinterchangeable.
TheLabVIEWProfessionalDevelopmentSystemallowscreatingstand-aloneexecutablesandtheresultantexecutablecanbedistributedanunlimitednumberoftimes.Therun-timeengineanditslibrariescanbeprovidedfreelyalongwiththeexecutable.
AbenefitoftheLabVIEWenvironmentistheplatformindependentnatureoftheGcode,whichis(withtheexceptionofafewplatform-specificfunctions)portablebetweenthedifferentLabVIEWsystemsfordifferentoperatingsystems(Windows,MacOSXandLinux).NationalInstrumentsisincreasinglyfocusingonthecapabilityofdeployingLabVIEWcodeontoanincreasingnumberoftargetsincludingdeviceslikePharLaporVxWorksOSbasedLabVIEWReal-Timecontrollers,FPGAs,PocketPCs,PDAs,andWirelesssensornetworknodes.
ThereisalowcostLabVIEWStudentEditionaimedateducationalinstitutionsforlearningpurposes.ThereisalsoanactivecommunityofLabVIEWuserswhocommunicatethroughseverale-mailgroupsandInternetforums.
Criticism
LabVIEWisaproprietaryproductofNationalInstruments.UnlikecommonprogramminglanguagessuchasCorFORTRAN,LabVIEWisnotmanagedorspecifiedbyathirdpartystandardscommitteesuchasANSI.
Asofversion8,allLabVIEWinstallationsonWindowscomputersrequirecustomerstocontactNationalInstrumentsbyInternetorphoneto"activate"theproduct.MacintoshandLinuxusersarenotsubjecttothisrequirement.
Buildingastand-aloneapplicationwithLabVIEWrequirestheApplicationBuildercomponentwhichisincludedwiththeProfessionalDevelopmentSystembutrequiresaseparatepurchaseifusingtheBasePackageorFullDevelopmentSystem.CompiledexecutablesproducedbytheApplicationBuilderarenottrulystandaloneinthattheyalsorequirethattheLabVIEWrun-timeenginebeinstalledonanytargetcomputeronwhichusersruntheapplication.TheuseofstandardcontrolsrequiresaruntimelibraryforanylanguageandallmajoroperatingsystemsupplierssupplytherequiredlibrariesforcommonlanguagessuchasC.However,theruntimerequiredforLabVIEWisnotsuppliedwithanyoperatingsystemandisrequiredtobespecificallyinstalledbytheadministratororuser.Thisrequirementcancauseproblemsifanapplicationisdistributedtoauserwhomaybepreparedtoruntheapplicationbutdoesnothavetheinclinationorpermissiontoinstalladditionalfilesonthehostsystempriortorunningtheexecutable.
AccordingtotheNationalInstrumentslicenseagreementanexecutablebuiltwithLabVIEWshouldcontainanotethatthesoftwareiswritteninLabVIEW.
ThereissomedebateastowhetherLabVIEWisreallyageneralpurposeprogramminglanguage(orinsomecaseswhetheritisreallyaprogramminglanguageatall)asopposedtoanapplication-specificdevelopmentenvironmentformeasurementandautomation.Criticspointtoalackoffeatures,commoninmostotherprogramminglanguages,suchas,untilversion2009,nativerecursionand,untilversion8.20,nativeobjectorientedfeatures.
Also,foranenvironmentheavilytargetedfortest,LabVIEWincludesnobuilt-infunctionsforformallytestinglimits,readingalimitsfile,andconvenientlytrackingthepassingorfailingresults.CompaniestendtobuildtheirownproprietaryfunctionsforthisbasicfeatureiftheychoosenottouseTestStand.
TimingSystem
LabVIEWusestheJanuary1,1904Epoch(referencedate)asits"zero"time.OtherprogramsthatusetheJanuary1,1904epochareAppleInc.'sMacOSthroughversion9,PalmOS,MP4,andMicrosoftExcel
Labviewisabove,nowletusdisussthestrain.Duetoexternalobjects(stress,humidity,temperaturechanges,etc)anddeformation,theobjectbetweenthepartsproducedwithintheinternalinteractiontoresisttheexternalcauserole,andtriedtomaketheobjectfromthedeformationafterpositionreverttodeformationpreviousposition.Inthesectionsomeinvestigationonunitareaofinternalforcecalledstress.Withsectionofverticalcallednormalstressormethodtostress,withsectiontangentcalledshearstressorshearstress.Stressincreaseswiththeexternalgrowth,withaparticularkindofmaterial,thebuild-upofstressislimited,exceedthisalimit,materialwillbedestroyed.Foracertainmaterialsfor,stresscanbereachedthisplateaucalledthematerialsofultimatestress.Ultimatestressvaluethroughthematerialmechanicstesttodetermine.Willdeterminethelimitshouldbereduced,setthemasterpieceofappropriatematerialscansafeworkstress,thisisthemaximumallowablestress.Materialstothesafeuse,whenuseinsidethestressshouldbelessthanitsultimatestress,otherwisematerialswilloccurwhenusedestruction.Engineeringcomponents,mostcases,internalforceisnotevenlydistributed,usually"destruction"or"failure"tendtobeagedfrominternalforcesetde
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 裝飾材料行業(yè)新技術(shù)應(yīng)用考核試卷
- 鋸材加工過程中的木材阻燃處理考核試卷
- 汽車語音識(shí)別與控制系統(tǒng)考核試卷
- 食物中毒院前急救
- 新生兒小腸壞死性結(jié)腸炎護(hù)理
- 麻醉藥理學(xué)局部麻醉藥
- 任務(wù)8.3+打造主播人設(shè)+課件-《互聯(lián)網(wǎng)+推銷實(shí)務(wù)》
- Methyltetrazine-amido-Tri-acid-PEG1-ethoxymethyl-methane-生命科學(xué)試劑-MCE
- 風(fēng)格制勝3:風(fēng)格因子體系的構(gòu)建及應(yīng)用
- 自然語言及語音處理項(xiàng)目式教程 課件7.2.2-2基于深度學(xué)習(xí)的語音合成算法
- 乳腺癌患者靜脈管理
- 制造企業(yè)生產(chǎn)記錄檔案管理制度
- 急診科臨床診療指南-技術(shù)操作規(guī)范更新版
- 《接觸網(wǎng)施工》課件 4.8.1 交叉線岔安裝
- 藝術(shù)培訓(xùn)學(xué)校檔案管理制度(3篇)
- 住院時(shí)間超過30天的患者管理與評(píng)價(jià)登記本
- 企業(yè)架構(gòu)數(shù)字化轉(zhuǎn)型規(guī)劃
- 《中醫(yī)基礎(chǔ)理論》課程教案
- 2.1始終堅(jiān)持以人民為中心 課件高中政治統(tǒng)編版必修三政治與法治
- 北師大版四年級(jí)下冊(cè)小數(shù)乘法豎式計(jì)算200題及答案
- 【小升初】2023-2024學(xué)年貴州遵義市六年級(jí)下學(xué)期數(shù)學(xué)期末試題2套(含解析)
評(píng)論
0/150
提交評(píng)論