Employ the use of word comparison instructions to control

Assignment Help Simulation in MATLAB
Reference no: EM13975958

Exercise 1- Traffic Control utilizing 1 Timer

From the Simulations Menu at the top of the LogixPro screen. Select the Traffic Light Simulation

1074_Traffic Control Utilizing Timer.png

Utilizing a single timer. employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram.

Your program should incorporate a 1 second period (delayed green) when both directions will have only their RED lights illuminated. Note that the timing diagram below only shows one of these 1 second intervals. but two are actually required.

Rad= 0:2/00

Green =0:2/02

Amber =0:2/01

Green= 00:2/06

Amber= 0:2/05

Red =0:2/04

8 Sec.

4Sec

1

8 Sec.

4 Sec.

If a one second delay proves insuficient to get these drivers under control then just go ahead and jack the delay up to two!

Exercise 2- Dealing with Pedestrians

Modify your program so that the crosswalks are also controlled. This is not necessarily a word comparison exercise. but its a task that needs doing. and you should now have sufficient expertise to accomplish it. It might not be all that easy however!

634_Dealing With Pedestrians.png

Your program should operate as follows:

• When depressed. the crosswalk pushbutton will cause the appropriate Walk Sign to be illuminated at the next occurence of a Red to Green transition for the appropriate direction.

• If the Green light is already illuminated when the button is pressed then the Walk signal sequence will be delayed until the next Red to Green transistion ocurrs.

• Once the Walk Sign is illuminated. it will remain so for the duration of the Green signal.

• When the Amber light appears. the Walk Sign will commence to flash On and Off and continue to do so until the Red signal appears.

You might consider using a bit from the free-running timer located in S2:4 to create the cautionary flashing effect.

Reference no: EM13975958

Questions Cloud

Describe the asymptotic behavior of the solution : Describe the asymptotic behavior of the solution as x aproches to infinity when the constants a, b , and k are varied.
Who responds verbally to telemachus demand : Which is not a suitor who responds verbally to Telemachus demand?Antinous, Eurylochus, Eurycleia
Locate the point of dimishing returns : Locate the point of dimishing returns for TS(x) and interpret its meaning.
Communication breakdown in your work place : Write one page about communication breakdown in your work place.
Employ the use of word comparison instructions to control : Utilizing a single timer. employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram.
Probability that their total annual costs exceed : What is the probability that their total annual costs for tutition, books and fees exceed $550,000?
What current does it draw when starting : The motor in a toy car operates on 6.00 V, developing a 4.60 V back emf at normal speed. If it draws 3.00 A at normal speed, what current does it draw when starting?
Does management''s assessment of the financial condition : In the Annual Report, there are several concerns from management. Discuss these concerns, and identify other weaknesses not discussed by management. Then, recommend a course of action addressing these concerns.
What are the constant angular acceleration : A motorcycle, which has an initial linear speed of 6.6 m/s, decelerates to a speed of 2.1 m/s in 5.0 s. Each wheel has a radius of 0.65 m and is rotating in a counterclockwise (positive) direction. What are the constant angular acceleration (in ra..

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  Write the specification of load mover

Write the specification of LOAD MOVER detailed of the whole design and precise for automatic control section and divide the design into various modules and Is the kernel required if yes which one?

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Number of packets received with time

Let x be the number of packets received with time -

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd