Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider an event counter that is a simplified version of the counter in Section 3.1. It has an icon like this: EventCounter This actor

image text in transcribed

1. Consider an event counter that is a simplified version of the counter in Section 3.1. It has an icon like this: EventCounter This actor starts with state i and upon arrival of an event at the input, increments the state and sends the new value to the output. Thus, e is a pure signal, and c has the form c: R + {absent} UN, assuming i E N. Suppose you are to use such an event counter in a weather station to count the number of times that a temperature rises above some threshold. Your task in this exercise is to generate a reasonable input signal e for the event counter. You will create several versions. For all versions, you will design a state machine whose input is a signal T: R + {absent}U Z that gives the current temperature (in degrees centigrade) once per hour. The output e: R + {absent, present} will be a pure signal that goes to an event counter. (a) For the first version, your state machine should simply produce a present out- put whenever the input is present and greater than 38 degrees. Otherwise, the output should be absent. (b) For the second version, your state machine should have hysteresis. Specifi- cally, it should produce a present output the first time the input is greater than 38 degrees, and subsequently, it should produce a present output anytime the input is greater than 38 degrees but has dropped below 36 degrees since the last time a present output was produced. (c) For the third version, your state machine should implement the same hystere- sis as in part (b), but also produce a present output at most once per day

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Explain the functions of financial management.

Answered: 1 week ago

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago

Question

Discuss the goals of financial management.

Answered: 1 week ago