This repo contains a PTV Vissim integrated Python script that outputs a CSV file containing the parking lot occupancy per unit of time as defined by the user.
Note: A separate CSV file is output for each parking lot in the network.
Dependencies: To use this script, you must have Python installed as well as the pandas package.
- PTV Vissim 2020.00-xx
- PTV Vissim 11.00-xx
-
With a network open in PTV Vissim, open the Scripts list.
-
Create an entry in the Scripts list with the following attributes:
- fromTime="0"
- funcName="initialize"
- name=""
- no="1"
- period="1"
- runType="AFTSIMSTART"
- scope="SIMULATIONRUN"
- scriptFile="output-parking-lot-occupancy.py"
- toTime="INF"
-
Create another entry in the Scripts list with the following attributes:
- fromTime="0"
- funcName="main"
- name=""
- no="2"
- period="10"
- runType="ATTMSTEPSTART"
- scope="SIMULATIONRUN"
- scriptFile="output-parking-lot-occupancy.py"
- toTime="INF"
-
Run a simulation. Once the simulation has started, a CSV file is created for each parking lot in the network and results are written every second.