电脑桌面
添加先锋文库到电脑桌面
安装后可以在桌面快捷访问

AN-IND-1-016-Using_LXI_Devices_in_CANoe.pdf

AN-IND-1-016-Using_LXI_Devices_in_CANoe.pdf_第1页
AN-IND-1-016-Using_LXI_Devices_in_CANoe.pdf_第2页
UsingLXIDevicesinCANoeVersion1.12017-03-09ApplicationNoteAN-IND-1-016AuthorVectorInformatikGmbHRestrictionsPublicDocumentAbstractIntroductiononhowtocreateamodule-to-moduleLXIconnectionwithCAPL.TableofContents1.0Overview........................................................................................................................................21.1UseCase/Motivation..........................................................................................................22.0Module-to-modulecommunicationwithLXI..............................................................................22.1Creatinganetworknode......................................................................................................42.2IncludingtheIPaddresses...................................................................................................42.3Initiliazingasocket...............................................................................................................42.4Closingasocket...................................................................................................................42.5Receivingdatamessages....................................................................................................52.6Sendingdatamessages......................................................................................................53.0Contacts.........................................................................................................................................6UsingLXIDevicesinCANoeCopyright©2017-VectorInformatikGmbH2ContactInformation:www.vector.comor+49-711-80670-01.0OverviewCANoeprovidesthepossibilitytocontrolexternaldeviceswithanLXIinterface.TheLXIcommandscanbesentasdatapacketsinTCPmessagesusingCAPL.ThisapplicationnotedescribeshowtocommunicatewithLXIdevicesinCANoe.1.1UseCase/MotivationPowersuppliesandmeasurementdevicesoftenhaveanLXIinterfaceforremotecontrol.Tousethosedevicesinanautomatedtestsetup,itisnecessarytohaveaccesstotheLXIinterfaceinCANoe.ThecommunicationwithCANoeandanLXIdevicecanbeimplementedusingmanuallywrittenCAPLcode.Theextentandcomplexityofthecodedependsontheusecase.Typicallyafewlinesofcodearesufficientasdescribedinthisapplicationnote.2.0Module-to-modulecommunicationwithLXIThisapplicationnoteexplainshowtoestablishamodule-to-moduleconnectionbetweenaPCandanLXIpowersupply.Akindofa“devicedriver”isdefinedinCAPL.ThisCAPLnodemaybeaddedtothetestsetupandprovidesaninterfacebetweenthetestapplicationinCANoeandtheLXIdevice.SystemvariablesaretypicallyusedastheinterfacemechanisminCANoe.ToimplementanLXIcommunicationinthe“driver”node,aTCPsocketmustbecreated.ThissocketisusedtoestablishaconnectionbetweenCANoeandthedeviceandforhandlingthedataprotocols.TheCAPLcodebelowshowsasimpleconnectionbetweenCANoeandaLXIpowersupply.Theoutputvoltageofthepowersupplycanbesettoaspecificvaluewiththesystemvariable‘var_Voltage’.Theoutputitselfcanbeactivatedordeactivatedbypushingthekey‘o’.Inadditiontheidentificationofthepowersupplycanberequestedbychangingthesystemvariable‘var_ID’tothevalue1.ImportantNoteForthisexamplethepowersupplyCPX400SAfromTTiwasused.Someofthecommandsaredevice-dependentandcanbedifferentforotherpowersupplies.Pleasereadtheappropriateusermanualofthedeviceforthecorrectcommands.variables{dwordaddress_canoe;dwordaddress_power_supply;dw...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

汽车专业+ 关注
实名认证
内容提供者

专为汽车专业打造

确认删除?
回到顶部