From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

The Daily CLAD

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

Re: CLAD2017 - Fundamentals - State Machine 700

SercoSteveB
Active Participant

What is the value of Numeric Value Out following execution of the VI?

 

Ultimate State Machine.png

 

NOTE:  The all other cases of the Case Structure are shown below:

Ultimate State Machine Idle.png   Ultimate State Machine Unarmed.png

Ultimate State Machine Armed.png   Ultimate State Machine Default.png

 

a) 10

b) 12

c) 14

d) 16

Comments
crossrulz
Knight of NI

D


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
nik35324
Member

D

 

States:

 

Spoiler
Initialize, Initialize, Idle, Idle, Idle, Acquiring (Unarmed), Acquiring (Unarmed), Acquiring (Armed), Reset, Finalise.
Baltur
Member

D = 16

I agree with the states nik32324 listed with the small addition

Spoiler
that Reset will lead to Default case.
tobiasiam
Member

I'm confused, shouldn't the VI go from the 'initialise' case to the 'idle' case. But I don't see an idle case in any of the other cases?

Also in 'Acquiring (Unarmed)' what is the function after the true constant?

SercoSteveB
Active Participant

It is there tobiasiam, maybe go for a screen refresh? Smiley Wink

Baltur
Member

@ tobiasiam : About your second question: This function is a feedback node with a delay (the direction has been set so the input is on the left and output on the right). Hint: The boolean array on the left is connected to it.

Tsjabrantes
Member

D...
Smiley Happy

Tarciso Junior
+55 (11) 996-282-103
Skype: Tarciso.junior2
Email: Tsjabrantes@gmail.com
http://br.linkedin.com/pub/tarciso-junior/23/a83/463
A.Bernau
Member

D

Yes, "Default" case instead of "Reset"

Inside “Acquiring (Armed)” no "i" (while loop index) is required (with that given answers a..d) Enough to know answer is greater than 14.

But to be honest to solve this kind of question I have to print it out and have to use two or three pens with different colours...

Baltur
Member

I noticed just now that the feedback node display in the case/state "Aquiring (Unarmed)" is probably wrong again, similar to the original posted image in https://forums.ni.com/t5/The-Daily-CLAD/CLAD2017-Environment-Look-at-the-state-you-are-in/ba-p/37274... . It still has the global initialisation terminal ('star') which it shouldn't have because of initialisation by array at the start of the loop. Copy-paste error again? 

SercoSteveB
Active Participant

Good spot Baltur, question modified.

Ellie90
Member

D

Matt-A.
Member

D. 

N3MRA
Member

D, ugh, on the second try!

 

Seth Price, N3MRA
Lab Associate, Chemical Engineering Department - New Mexico Tech
Lab Assistant, Sodium Dynamo Project
mini09
Active Participant

D

Priya16
Member

D

rispovin
Member

i do not understund the case acquiring unamed,  i usually use the fb node (for example) as positive or negative transition,   but i see for the first time this kind of use for it   

SercoSteveB
Active Participant

Hi rispovin

 

Check out the Delay options of Feedback Nodes.  In the Acquiring Unarmed Case I have configured the feedback node with a Delay of 3.  This means the TRUE passed to the node on the first execution of Acquiring Unarmed Case will be delayed by 3 iterations appearing on the fourth.  NOTE:  There is an additional in the question though (because that's how I roll) the feedback node is initialised outside the loop.

 

e.g. This

 

bao.png

Gives:

bao arraty.png

rispovin
Member

 thanks for your response, now it is all clear

i assigned to you one kudo

alexderjuengere
Active Participant

state-machine-700.png

 

finally D

levonsg
Member

D

https://images.youracclaim.com/size/340x340/images/2edb5b1a-9414-44e1-8519-c774fc6dd079/36015_Certificate_Badges_FINAL__1__NI_Instructor_v5.png
Hesham_Hassanein
Member

 How does this work. I don'T get it.

SercoSteveB
Active Participant

Hi Hesham_Hassanein,

Which part are you struggling to understand?

Steve

Hesham_Hassanein
Member

how does the state machine start executing?

SercoSteveB
Active Participant

The VI in the question is a State Machine it starts executing as soon as the VI is run. 

 

NOTE: The question has two graphical parts:

  1. At the top is the VI (the bit with the While Loop), that is the State Machine
  2. Underneath the VI are four case structures, these are not additional VIs they are there to show you the contents of the hidden cases within the Case Structure in the State Machine.
alexlim
Member

D. Smiley Very HappyFeels good to be finally able to get the correct answer in first attempt without referring to the choices given and make guesses! This blog is indeed very beneficial!

istan0227
Member

D