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

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

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

代码说明:

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

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

发表评论

0 个回复

  • X5045 procedures, you can run keil c
    x5045的相关程序,可以在keil c 上运行-X5045 procedures, you can run keil c
    2022-07-16 06:53:38下载
    积分:1
  • 一份关于SD卡读写的资料,需要的就拿吧。
    一份关于SD卡读写的资料,需要的就拿吧。-A report on the SD card to read and write data, need to just take it.
    2022-01-25 22:24:26下载
    积分:1
  • Using L298 as the drive to control two
    用L298作为驱动器,控制两相混合式步进电机。 按键从上至下分别为减速,加速,正转,反转,停止。 具体参数还没有设定过。速度有些慢,加速按2下有效,然后就不能再快了。 转速输出是按照最小系统版的数码管写的。电路图里太麻烦就没画了。-Using L298 as the drive to control two-phase hybrid stepping motor. Buttons from top to bottom respectively, deceleration, acceleration, are being transferred, reverse, stop. Specific parameters have not yet been set. Some of the slow speed, speed up by 2, effectively, and then can not be faster. Speed output is in accordance with the minimum system version of the digital tube wrote. Circuit where not too much trouble drew.
    2022-04-23 14:56:47下载
    积分:1
  • 单一灯的左移右移分别接在单片机的P1.0-P1.7接口上,输出“0”时,发光二极管亮,开始时P1.0→P1.1→P1.2→P1.3→┅→P1.7→P1.6→┅→...
    单一灯的左移右移分别接在单片机的P1.0-P1.7接口上,输出“0”时,发光二极管亮,开始时P1.0→P1.1→P1.2→P1.3→┅→P1.7→P1.6→┅→P1.0亮,重复循环-A single light, respectively, shifted to right then left at P1.0-P1.7 microcontroller interface, the output " 0" when the bright light-emitting diode, the beginning of P1.0 → P1.1 → P1.2 → P1. 3 → ┅ → P1.7 → P1.6 → ┅ → P1.0 Liang, repeat cycle
    2022-08-21 07:15:27下载
    积分:1
  • 程序代码说明 P0401:用Prewitt算子检测图像的边缘 P0402:用不同σ值的LoG算子检测图像的边缘 P0403:用Canny算子检测图像的边缘 P0...
    程序代码说明 P0401:用Prewitt算子检测图像的边缘 P0402:用不同σ值的LoG算子检测图像的边缘 P0403:用Canny算子检测图像的边缘 P0404:图像的阈值分割 P0405:用水线阈值法分割图像 P0406:对矩阵进行四叉树分解 P0407:将图像分为文字和非文字的两个类别 P0408:形态学梯度检测二值图像的边缘 P0409:形态学实例――从PCB图像中删除所有电流线,仅保留芯片对象-code P0401 Note : Prewitt operator to detect the edges in the image P0402 : different values of Getting operator to detect the edges in the image P0403 : Canny operator to detect the edges in the image P0404 : image thresholding segmentation P0405 : water line threshold method image segmentation P0406 : matrix Quadtree P0407 : images into text and non-text of the two categories P0408 : morphological gradient detection Binary Image Edge P0409 : morphology example-- Images from the PCB to remove all current lines, retaining only chip targets
    2022-04-16 14:42:20下载
    积分:1
  • I2C读写单
    单片机模拟I2C读写看门狗芯片X5045,C51源程序,本人调试通过!-I2C read and write single-chip analog watchdog chip X5045, C51 source code, I debug through!
    2022-02-04 20:56:25下载
    积分:1
  • E2PROM芯片24C02的读写程序,供参考
    E2PROM芯片24C02的读写程序,供参考-E2PROM chip 24C02 reading and writing procedures for reference
    2022-01-22 17:56:25下载
    积分:1
  • 单片机易入门的初学者,很好的一本书的单片机
    单片机C语言轻松入门,对初学者来说,是一本不错的单片机书籍-Singlechip C language easy entry for beginners, it is a good book Singlechip
    2022-08-19 11:33:34下载
    积分:1
  • avr单片机学习的 希望对大家有用
    avr单片机学习的 希望对大家有用 -avr Singlechip everyone would like to learn useful
    2022-02-14 18:49:43下载
    积分:1
  • EM78P447中文手册,EM78P447是很常用的义隆单片机。
    EM78P447中文手册,EM78P447是很常用的义隆单片机。-EM78P447 Chinese Manual, EM78P447 Elan is very commonly used in single-chip microcomputer.
    2022-02-03 09:20:20下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载