11-01-2011 08:59 AM - edited 11-01-2011 09:08 AM
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.
What do you think, will this cost Style points?
The exams can be grabbed on the NI site searching for CLD.
Solved! Go to Solution.
11-01-2011 11:20 AM
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?
Ben
11-01-2011 11:30 AM - edited 11-01-2011 11:32 AM
Good point, that helped me a lot understanding the difference, thanks a lot man!
11-01-2011 11:32 AM
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.
11-01-2011 11:41 AM
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.
11-01-2011 11:42 AM - edited 11-01-2011 11:44 AM
"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.