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 work done by integration

Takes an input argument and calculate the work done by integration usingn segment trapezoidal rule

  Solve the linear system

Compute the rank of S manually and use the MATLAB function to verify the result - Solve the linear system of equations Ax = b using MATLAB.

  Number of packets received with time

Let x be the number of packets received with time -

  Construct simulation to portray macrophage chasing bacteria

Construct simulation in MATLAB to portray a macrophage chasing a bacteria as it diffuses away and ultimately catching it if:

  Queuing simulator

Queuing Simulator: Consider a communications router that can route (service) EXACTLY 800 messages per second (mps). Assume that messages arrive at an AVERAGE rate of 850 messages per second. Assume that the arriving messages follow an exponential dis..

  Develop and simulate in matlab model

Develop and simulate in matlab model of trash to steamp lant in Baltimore

  Verification of network theorems by simulation

Verification of Network Theorems by simulation, Lab Exercise: This will be simulation lab using MultiSim to understand the different network theorems

  Effect on the ber of changing the way

Using M-PSK and QAM modulations with M>2, investigate the effect on the BER of changing the way in which the various bit combinations are mapped to the constellation points. Both binary and Gray mapping are available in the modulation dialogue box..

  Calculation of fin efficiency and fin effectiveness

Calculation of fin efficiency and fin effectiveness by creating an interface - Calculation of fin efficiency and effectiveness.

  Create a simulink model for the scara robot depicted

Create a Simulink Model for the SCARA robot depicted - The motor specification is appended to this brief - create a subsystem to model the motors taking into account that the inertia of Arms 1 and 2 combined is not a constant but depends upon the..

  Generator and degradations - acquisition

Plot the autocorrelation function and show that other than peak there are only three values in the autocorrelation. What are the values of the autocorrelation function?

  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