04-22-2008 06:31 PM
04-22-2008 06:54 PM - edited 04-22-2008 06:59 PM
04-23-2008 08:49 AM
richjoh also said
First off, no one's whining about the NI soln.
Anyhow, I took a look at NI soln and I would take a few points off for how the final block diagram is done.
Maybe someone can learn from this cus NI example is well, I'll let you be the judge.
Attached is another post of NI block diagram case anyone didn't see this case... you can take off points, I see bent wire on here too
Take a look at the pic you will see my VI size is 3.65X smaller the NI VI... Hmmm, maybe if I added all that stuff there making up, uuuhmmm, I mean marking up it would be larger.. I guess
Apparently, the both Authors of the NI practice CLD Traffic Light and Car Wash exam could have followed there own guidelines more strictly.
Is this bad choices on the block diagram as to why NI's Car Wash soln is TWO TIMES (2x) the size of mine? I'll let you be the judge. Regardless, my Main VI is quite simpler to follow compared to NI's Main VIs.
Now go and read NI's block diagrams and judge for yourself if they follow their own method defined in the Style, Design handbook.
04-23-2008 09:13 AM - edited 04-23-2008 09:16 AM
Funny, you cut and paste post out of context. seems the whining is about my comments. I'm NOT in bed with NI, thus free to say my thoughts and respond to question like "i dont understand why..."
Nothing gained from your last post or this one... mention something thats of some useful here
04-23-2008 09:29 AM
I just found it quite humorous as to how you contradicted yourself with your statement, as well as before when you first were arguing that nowadays we all have fast machines, and a little extra code, like extra copies of clusters, would make no difference, and then was arguing that "my code is smaller, thus better".
@richjoh wrote:
Funny, you cut and paste post out of context. seems the whining is about my comments. I'm NOT in bed with NI, thus free to say my thoughts and respond to question like "i dont understand why..."
Nothing gained from your last post or this one... mention something thats of some useful here
07-08-2008 03:07 PM - edited 07-08-2008 03:15 PM
I have an alternate soln for the Security System CLD exam. First though, my initial soln above I described a bug whenever all three Switches were enabled. One way to work-around is to disable the third switch whenever 2 switches are enabled. This could be determined inside the soln formula node and outside of it set with a property node.
Since I want to fully meet the requirements, I went ahead and rewrote the soln using an event structure and queues. For me a state machine using queues was just to hard to debug. (I remember a Senior developer always mentioned this about queues, now I know first hand). My Event stucture releaves me the burden of boolen states and determining what Zone the boolean is in. I was not able to do this without the use of setting an indicator to view the current item in Zone Queue (there is no other way to see whats in the queue). You can't set a probe on a queue and see whats currently in it.
Since I'm no expert on LV I found this problem to be quite challenging till I setup a way to see what in my queue. I think this problem is the most difficult out of the three practice exams. I peeked at NI soln for this and my personal opinion is my soln is easier to add feature and upgrade to include more alarms and zones. You make your own judgement. As far as memory size using LV 7.1, my Soln 255.2k, NI soln 163.7k. Of course, i must include this disclaimer, you need to add stuff e.g. subvi, notes etc etc... to my soln for a passing grade on the CLD as I have mention many times in this thread.
Well now this thread has three alternative soln versus NI CLD exam soln. Pulling out hairs, Alas!
Oh there is an error at shut down, since queue is empty. To fix remove the Debug Queue case structure, otherwise eror free.
07-09-2008 01:10 PM
01-07-2009 03:19 AM
I looked at the NI solution and tried to come up with a different approach to the state machine.
My main goal was to create a very simple solution and one where the sequence could be edited and checked easily.
I must confess I haven't looked at the style guide recently but just tried to follow common sense when laying out the program but I would be interested to know what the NI examiners might of made of my submission!
I created a custom control for "Light Sequence" although I think it is mostly redundant as changes to the data do not carry through to the copy in the sub vi.
The solution is in Labview 8.5. I only implemented the east left turn switch in the sequence although it should be easy to add the others as they are catered for in the program.
My main concern with this example is not with the NI solution but with the way the exam question is worded. Particularly the timings they give for the on times of the lights. To be honest without looking at their solution I wouldn't have been able to see how the lights were supposed to work.
01-15-2009 05:31 PM
Hi RevaD,
Can you post in version 8.2. (I'm stuck in a time warp with 8.2 for now...)
01-15-2009 07:52 PM
RevaD wrote:I looked at the NI solution and tried to come up with a different approach to the state machine.
My main goal was to create a very simple solution and one where the sequence could be edited and checked easily.
I have not looked at the overall logic, but here are a few points I noticed: