登录
首页 » SCM » 停车场仿真程序仿真原理:首先有两个定时器自动的随机产生请求入场的卡号和请求出场的卡号,然后剩余的事件都由处理场务事件来处理了。处理场务事件相当于一个车场总指挥。...

停车场仿真程序仿真原理:首先有两个定时器自动的随机产生请求入场的卡号和请求出场的卡号,然后剩余的事件都由处理场务事件来处理了。处理场务事件相当于一个车场总指挥。...

于 2022-08-09 发布 文件大小:111.78 kB
0 120
下载积分: 2 下载次数: 1

代码说明:

停车场仿真程序仿真原理:首先有两个定时器自动的随机产生请求入场的卡号和请求出场的卡号,然后剩余的事件都由处理场务事件来处理了。处理场务事件相当于一个车场总指挥。当他发现有卡号请求入场时他会决定该卡是否符合入场条件,如果不符合,直接丢掉该卡号,准备处理下一个卡号。否则看车库是否已满和车库过道是否空闲,如果车位没有满且过道是空的,则允许该车入场,并在此时将车场的最左面的空车位分给他使用。剩下的事就是让车通过过道和进入车位,并及时关闭车场入口。如果过道是空的而且又没有入场请求,则处理出场请求,首先是将车辆从车位上移到过道上,并向出口行驶,然后在出口出判断卡是否符合出场条件,如果符合则发出抬出场杆命令,允许其出场。否则让该车返回车位。程序运行时会写运行日志,在阅读本文后,相信能理解运行日志的内容-err

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Serial communication program, sending instead of interrupt mode, receive mode us...
    串行通信程序,发送不是用中断方式,接收用中断方式,适用于程序的调试,液晶显示用的是1602-Serial communication program, sending instead of interrupt mode, receive mode using interrupted for Debugging, liquid crystal display using 1602
    2023-08-19 16:05:03下载
    积分:1
  • 用Keil C51写的步进电机驱动程序。
    用Keil C51写的步进电机驱动程序。-Keil C51 was made with the stepper motor driver.
    2022-01-30 14:05:40下载
    积分:1
  • 使用EM78P468单片机做的IC卡煤气表程序。
    使用EM78P468单片机做的IC卡煤气表程序。-EM78P468 Singlechip make use of the IC card gas meter program.
    2022-02-01 16:40:55下载
    积分:1
  • Serial Communication Classic to use the program 4, previously collected Dongdong...
    串口通讯经典使用程序4,以前收集整理的东东,希望对大家有用!-Serial Communication Classic to use the program 4, previously collected Dongdong finishing the hope for all of us!
    2022-02-02 22:10:28下载
    积分:1
  • 高速单片机LPC900系列的C语言头文件。
    高速单片机LPC900系列的C语言头文件。-LPC900 MCU series of C language header file.
    2023-07-13 01:20:03下载
    积分:1
  • For there is no single
    对于没有i2c接口的单片机来说,要用标准i2c器件通讯来说只能通过软件模拟了 本程序提供几个最高效的函数实现其功能,新方法,更高效-For there is no single-chip interface for i2c, i2c devices use standard communications software simulation run only through the procedures provided by several of the most efficient function to achieve its function, new methods, more efficient
    2023-08-01 15:25:02下载
    积分:1
  • The realization of a simple function of the electronic bell, but displayed, were...
    实现一个简单的电子钟的功能,可是显示时、份、秒,还能置位,恢复默认设置!是初学者的好帮手!-The realization of a simple function of the electronic bell, but displayed, were seconds, but also home, and to restore the default settings! Is a good helper for beginners!
    2022-10-14 05:05:04下载
    积分:1
  • 你知道睡眠()/ usleep() / nanosleep()不好延迟的问题。
    As you have learnt that sleep( )/usleep()/nanosleep() are not good to delay a process. Timers can provide more accurate time control in applications. In this lab, you will explore POSIX timers and signal programming, experience the timer drift. The primary focus of this lab will be "time". The experiment will show you several methods to measure time in your applications.
    2022-01-26 16:17:48下载
    积分:1
  • 这是基于C51单片机程序编写的一个车,其中包含…
    这是一个基于C51单片机编写的小车程序,里面包含源代码,原理图,设计题目,以及相关的设计报告,这样详细介绍小车的具体怎样工作,希望大家互相交流学习。-This is a car prepared based on C51 microcontroller program, which contains the source code, schematics, a design, and related design report, which details how the car s specific work, hope we can exchange ideas to learn.
    2022-09-09 13:50:03下载
    积分:1
  • 以ST公司CPU为核心的彩色电视机的完整源程序。
    以ST公司CPU为核心的彩色电视机的完整源程序。-ST companies to CPU as the core integrity of the source of color television.
    2022-04-28 07:46:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载