LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLD Sample Exams: How to deal with references ?

Solved!
Go to solution

 

 

Hi@all:

 

I reviewed  the sample exams solution for the CLD provided by NI and noticed, that they trifle with references. As shown in the Security System and the ATM Machine, references were opened, but not closed at the end.

 

ATMMachine.PNG

 

SecuritySystem.PNG

 

 

What do you think, will this cost Style points?

 

The exams can be grabbed on the NI site searching for CLD.

 

0 Kudos
Message 1 of 6
(3,513 Views)
Solution
Accepted by topic author AnZe

I would ding them for a lot of points but it is not my test but NI's so play to their rules get the cert and then do it right.

 

When you get to that part of the exam just add a note saying those refs do not need t  be closed because they are static and maybe you can get some bonus points for knowing the differnence.

 

How to know the difference?

 

See here.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(3,483 Views)

Good point, that helped me a lot understanding the difference, thanks a lot man!

0 Kudos
Message 3 of 6
(3,474 Views)

I would also ding the second one for reading the ref inside the while loop.

 

I would also ding them for leaving that indicator in there, too.  If you are not updating it, then it doesn't need ot be there.  That being said and not having the code to look through I also wonder if ther eis a local variable to update or if the ref is passed into a subVi and the value is updated there.

0 Kudos
Message 4 of 6
(3,471 Views)

remember,

these example solutions are real submissions of retired exams that were awarded passing grades (sometimes cleaned up a bit to hide the victim's name or adapt to changed requirements)

 

As a CLD candidate, you should be able to critique the submission and gain insight on its strengths and weaknesses. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 6
(3,465 Views)

"I would also ding the second one for reading the ref inside the while loop."

 

I agree with you, completely unnecessary to put it inside the loop.

 

The refs are beeing used to enable/disable controls.

 

There is some other stuff, like as you said updating indicators with the same value all the time etc. but ok, seems like the solution isnt as perfect as I expected it to be 😉

 

EDIT

 

these are submitted solutions? OK, sorry, I didn't know that! I thought it was done by NI.

0 Kudos
Message 6 of 6
(3,464 Views)