The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Case Structures - State Machines

SercoSteveB
Active Participant

The following shows a State Machine VI followed by ALL of the Case Structure frames within the state machine.  What is the sequence of states transitioned by the state machine during execution:

Question 82.png

All of the hidden case structure frames are shown below:

State Machine 1.bmp

a) State 1, State 2, State 3, State 4, State 5
b) State 1, State 2, State 4, State 5, State 3
c) State 1, State 2, State 4, State 5
d) State 1, State 2, State 3, State 4

Comments
srinath@elsys.in
Member

Here  Ans is  : C ........

The sequence is  State1,State2,State4,State5 In State5 case again State3 is there but here the Terminating condition isTRUE so program will stop.State3 will never execute.

Anagha.G
Member

YES ANSWER IS C

sumasbhat
Member

Ans is  C.. In state 3 condition is true. So program will stop.

mini09
Active Participant

Yeah i accept with srinath, ana and sumasbhat.

1. the default case is executed and jumps to the state 2

2. in the state 2 case the condition is false and the case jumps to the state 4

3. in the state 4 case the condition is false and the case jumps to the state 5

4. in this case the condition is true so the while loop stops.

YogeshShivarudrappa
Member

Ans is C, as the state5 aborts the while loop before state3 could execute.

Calvin_Fernandez
Member

yeah the answer is C....

hey Steve just wanted to ask you about .Net functions, are topics like that also necessary for the CLAD?

regards
calvin
ashwinilele
Member

Ans is C

hussey
Member

Ans :c

State 1 condition False go to

State 2 condition False go to

State 4 condition False go to

State 5 condition True, Stop the vi execution

A.Bernau
Member

My first guess was B then I realised state5 is the final state so answer C.

Nobunaga54
Member

I found it a good follow-up challenge to try to output the sequence of states in an array on the Front Panel.