文档详情

vissim信号控制器接口sc interface.pdf

发布:2025-06-11约1.68万字共7页下载文档
文本预览下载声明

VISSIMSignalControllerDLLInterfaceLK2007-01-23

ThisdocumentdescribeshowexternalcontrollerscanbeconnectedtoVISSIMthroughthe

newDLLinterface(availablesinceVISSIM4.10)tobeusedduringsimulationand/ortest

runs.

Introduction

Signalcontrollers(SCs)oftype“FixedTime”and“VAS”aresimulatedwithinVISSIM.All

otherSCsareexternalandeachonehasaprogramfileassignedtoit.Ifthisprogramfileisan

*.exetheoldDDEinterfaceisusedandoneinstanceofthis*.exeisstartedforeachSCusing

itduringasimulationrun.Iftheprogramfileisa*.dll,however,thenewDLLinterfaceis

used.Thismeansthatthe*.dllisloadedonlyonceforasimulationrunandhastohandlethe

controllerlogicanddataforallSCsthatitisassignedto.

Thecontrollerfrequency(usually1/s)defineshowmanycontrollertimesteps(passesthrough

thecontrollerlogic)musttakeplacepersimulationsecond.Itissetbytheexternalcontroller

duringtheinitializationsequence.ThesimulationresolutioninVISSIM(simulationtime

stepspersimulationsecond)mustbeamultipleofthecontrollerfrequency.Other

combinationsofvaluescauserun-timeerrors.(Example:Ifthesimulationresolutionis10and

thecontrollerfrequencyis2,VISSIMsimulates5simulationtimestepsbetweentwopasses

throughthecontrollerlogic.)

IneachcontrollertimestepVISSIMcontactsallcontrollerDLLsatofthecurrent

simulationtimestep.First,thecurrentsignalizationstatesanddetectordataofallSCsare

passedtotherespectiveDLLs.Second,theDLLsareaskedtocalculatenewdesiredsignal

stateswhicharesubsequentlypassedbacktoVISSIM.Dependingonparameterssetbythe

controllerlogic,eitherth

显示全部
相似文档