Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Exam Solutions for Review

Hi all, i realize that i have posted my solution in the level above also so apologies.

 

This is my solution to the security system. Have a look and feel free to make comments. i have my exam in feb so all feedback is welcome.

 

Cheers

 

Craig

 

Certified LabVIEW Developer
First Class Beng Hons Electronics
Message 111 of 642
(6,340 Views)

Hi,

 

Would someone be able to glance over my attempt at the CLA ATM please?

 

I know it is miles from complete, but could you see if i'm heading in the right direction and give any tips that may help me on my way.

 

Thanks!

 

Chris

0 Kudos
Message 112 of 642
(6,297 Views)

Hello there,

 

I have been working on my CLD preparation for a while and I think it´s time to post my first CLD sample exam solution.

 

It took 3 hours and 45 minutes to finish it (30 mins planning 2,5 hours coding and 45 minutes on documentation and clean-up).

I am not a native english speaker and I had a small problem with the specification. On page 6, first paragraph - what is the expected behavior when the selector is in "single" position? Did I understand it right and is my functionality correct?

 

I think my solution is far from perfect, but it works and I managed to finish it on time. 🙂

Any comments would be greatly appreciated!

Csaba

Best regards,

CsabaF
Download All
0 Kudos
Message 113 of 642
(6,166 Views)

@CsabaF wrote:

Hello there,

 

I have been working on my CLD preparation for a while and I think it´s time to post my first CLD sample exam solution.

 

It took 3 hours and 45 minutes to finish it (30 mins planning 2,5 hours coding and 45 minutes on documentation and clean-up).

I am not a native english speaker and I had a small problem with the specification. On page 6, first paragraph - what is the expected behavior when the selector is in "single" position? Did I understand it right and is my functionality correct?

 

I think my solution is far from perfect, but it works and I managed to finish it on time. 🙂

Any comments would be greatly appreciated!

Csaba


I would spend that last 15 minutes cleaning up your main VI even more.  They are not going to be happy that you have wires running behind structures and all those crazy wire bends.  You should also use other than the default labels for your controls.  SInce you finished, you probably don't need too many style points, but why squander points away that you can pick up easily?  I'm not sure how severe they will penalize you for those style issues, but you'll probably need about five style points.

 

About the possible misinterpretation: I think that if your code is well documented and executes as *you* said it should, you'll get consideration for that.

 

For instance:
"Requirement unclear:  I interpreted this way."

And then go and code it that way.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 114 of 642
(6,157 Views)

Hi Bill,

 

thank you for your quick reply, I really appreciate it!

Yes, I also noticed that my code looks a bit sloppy, but the last 15 mins would not have been enough to make a real cleanup. Some of that mess comes from a change in the logic made after one hour coding. I made a basic state diagram at the beginning, but I overlooked a small detail in the specs. 🙂    

I will try one of the next samples tomorrow, I hope it will look better. I have to be more careful at planning, one bad decision there can easily ruin my whole test. :S

Csaba

Best regards,

CsabaF
0 Kudos
Message 115 of 642
(6,151 Views)

@CsabaF wrote:

Hi Bill,

 

thank you for your quick reply, I really appreciate it!

Yes, I also noticed that my code looks a bit sloppy, but the last 15 mins would not have been enough to make a real cleanup. Some of that mess comes from a change in the logic made after one hour coding. I made a basic state diagram at the beginning, but I overlooked a small detail in the specs. 🙂    

I will try one of the next samples tomorrow, I hope it will look better. I have to be more careful at planning, one bad decision there can easily ruin my whole test. :S

Csaba


I hate that.  That's what killed me the first time I took the actual exam.  One stupid brain cramp and I missed by 2 points.  I'm re-taking it soon.  Hopefully I will have clean run.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 116 of 642
(6,149 Views)

 

Hi, i recently passed my CLD exam and did so by concentrating on style and documentation. i got full marks for both and then half marks on functionality. in the exam i found that the spec required slightly more functions than the practice exams so decided i wouldn’t finish all of the requirements in time but made sure what i did do was fully working and documented every which way possible. i opted for the event driven producer consumer architecture and this got me full marks for my style. it all depends on what you feel comfortable doing but i found that worked for most scenarios. You said you had 15 minutes spare i would really recommend using VI analyzer as it is available to you in the exam. It will run through your code and point out all of the wire bends, un-used code ect. and they are easy marks to pick up.

 

Good Luck

Certified LabVIEW Developer
First Class Beng Hons Electronics
0 Kudos
Message 117 of 642
(6,132 Views)

Thank you for the tips, I will try to keep them in my mind when I start working on the next sample exam.

 

I will also try to open the sprinkler project again, and do further cleanup in 15 minutes with the help on VI analyzer. Let´s see how fast I am. 🙂

Best regards,

CsabaF
0 Kudos
Message 118 of 642
(6,127 Views)

Hello there,

 

I finished the ATM example - just on time, I had 5 minutes left.

This one seems to be the most complex among the four sample exams. Please take a look and give some feedback, I really appreciate your help.

 

I have a few questions:

-is my solution too complicated? 

-I think my style is still not good. I really felt the time pressure and I concentrated on the functionality instead of tidy coding. What do you think about it?

-I know there is a small flaw in the functionality. When the session it terminated by the user, the main UI will wait úntil the timeout value, before it stops. I discovered this in the last moment and I did not have time to fix it. The fix is easy, just unbundle the "left 3" button in the event handler´s "Left buttons value change" case and hook it up to the conditional terminal. Do you think it would cost me a point or two on functionality? 

Best regards,

CsabaF
0 Kudos
Message 119 of 642
(6,101 Views)

I would say that the graceful exit would be the first button case you work on.  You want to make sure your application exits gracefully.  I view this as a "standard" feauture and everything else is "optional."  I think your app should initialize correctly and shut down correctly first, then attack everything else.

 

Check out the Queued Message Handler example for an even better way of exiting your app.  Believe it or not, this may cost you in the style area as well as the functionality area since your implmentation of the design pattern departs from the template in a significant way.  I'd say that your hard part will be getting enough style points to squeak by - which is okay.  That's why style and functionality are weighted evenly.

 

Did you know that there is an output on the case structure selector terminal?  You don't have to split up your error wire like you did in your sub-VIs.  I'm not sure how much they will deduct on style points.  It's not as bad as unbundling the status (which used to be standard practice, BTW, in very old versions of LV), but still you have unnecessary wire branches.

 

I see no error handling.  THIS IS HUGE.  To be sure, I Injected an error into your app where it reads the file and it fails to load the menus and just hangs there and there is no way to stop the app short of waiting for the timeout - and then there is no way to know what the error was because it was swallowed when the loop iterated.  Error passthough only works if you have something at the end to catch the errors.  Minimally, your app should gracefully exit upon error.  With the limited time alloted, I would say it should be able to stop both loops and report the error.  In the real world, you would output an error message to the ATM Meesage screen ("The ATM Machine has encountered an unepxpected failure.  Please contact...") and then you would give the card back and the app would go into a non-accessible state (since you don't really want to drop to the operating system in this case).  Developing error handling as one of your first steps really helps you in developing, too.  If you have error handling, you immediately know where you screwed up.  😉

 

You definitely need to work on style.  Pay attention particularly to 3b in your cld exam prep guide.  You will probably need about 5 style points to get by, and I'm not sure you are there yet.  Using a minimal amount of SubVIs can be devastating in this case.  You end up enlarging your BD to the point that it gets too big for the screen and wires and stuff get misaligned in case structures that are invisible to you because LV is going to make space there, too.  I'm not necessarily saying you should make more SubVIs because that would take away from your functionality time, but be aware that it's much harder to keep things neat without them.

 

That's all I can think of for the moment.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 120 of 642
(6,092 Views)