Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD Preparation Guide Q1 Programming Environment

Solved!
Go to solution

Hi,

Q1 programming environment of CLAD Preparation Guide LabVIEW 2017. Event structure inside while loop to count the number of times the increment button is pushed. I think that both B and C meet the specs. I attach image of both options.

Why answer C meets better than B?

 

Thank You!

0 Kudos
Message 1 of 5
(4,389 Views)

Hi,

 

What is the exact exam question ?

My guess is that it all depends on the mechanical action of the button.

 

C works better because whatever the action is, the counter will increment any time you press the button.

B would not work to count every click on the button in the case the button goes from TRUE to FALSE. In that case, the control is read as FALSE and nothing is incremented.

 

Hope it is clear 🙂

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 5
(4,375 Views)
Solution
Accepted by topic author jesLVbcn

Just for fun, let's go through all of the options.

A - Using the timeout case, which stops the loop.  So that is obviously wrong.

D - The numeric is an indicator, so that case will never be fired.  Plus the requirement was for the button to be pressed.  So, again, obviously wrong.

 

Now we come to B vs C.  Button implied the mechanical action is "Latch When Released".  Therefore, B and C would work.  But C is simpler and therefore better.

 

Thinking about this way too much now...Even if the button was set to "Switch When Pressed", we still want the increment to happen every time the button is pressed, as stated in the requirements.  B would only increment when the value of the button changed to TRUE instead of all presses.  So B is therefore wrong.


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
Message 3 of 5
(4,370 Views)

Hi,

 

If C is simpler is one reason to be better. But I think the question could be a little bit more specific with the mechanical action used for the increment button.

 

Option C does not work with switch until released and latch until released because each time is pressed the increment is 2 times

Option B does not work with switch when pressed and switch when released because only increments from false to true. Also it does not work when latch until released because each time is pressed the increment is 2 times

 

Then B works for 50% of possible mechanical actions and C for 66,7%

0 Kudos
Message 4 of 5
(4,356 Views)

@jesLVbcn wrote: But I think the question could be a little bit more specific with the mechanical action used for the increment button.

I agree.  But for the sake of this test, let's look at what is actually used.  I would say 99.9% of my buttons use the Latch When Released and 100% of my switches use Switch When Pressed.  These are the defaults and I very rarely deviate from those, mostly from lack of need to.  So for the sake of this exam, it is safe to assume button is Latch When Released and switch is Switch When Pressed.


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
0 Kudos
Message 5 of 5
(4,341 Views)