LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLA code snippet review

I'm finding I don't have quite enough time to finish the CLA practice test.  However, I think I set up a good framework and have plenty of examples for API communications.

 

With that said, do you think I will get away with what I have pictured? Throwdown a blank VI with tags, put the blank VI in the correct location architecturally.image.pngimage.png

CLA
0 Kudos
Message 1 of 3
(251 Views)

@UnholyPenguin wrote:

I'm finding I don't have quite enough time to finish the CLA practice test.  However, I think I set up a good framework and have plenty of examples for API communications.

 

With that said, do you think I will get away with what I have pictured? Throwdown a blank VI with tags, put the blank VI in the correct location architecturally.image.pngimage.png


If I'm not mistaken, the CLA test doesn't need to contain working code; the emphasis is on having a sound architecture.  Personally I'd include terminate.vi in the dataflow to avoid race conditions.  It may not matter if it executes before or after the case structure with your current code, but if someone modifies something so it does matter, you may have issues that are so subtle that it will take some intensive t-shooting to figure out because sometimes it will work and sometimes it won't.  This code is fairly fragile because of that.

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.
Message 2 of 3
(214 Views)

@billko wrote:

@UnholyPenguin wrote:

I'm finding I don't have quite enough time to finish the CLA practice test.  However, I think I set up a good framework and have plenty of examples for API communications.

 

With that said, do you think I will get away with what I have pictured? Throwdown a blank VI with tags, put the blank VI in the correct location architecturally.image.pngimage.png


If I'm not mistaken, the CLA test doesn't need to contain working code; the emphasis is on having a sound architecture.  Personally I'd include terminate.vi in the dataflow to avoid race conditions.  It may not matter if it executes before or after the case structure with your current code, but if someone modifies something so it does matter, you may have issues that are so subtle that it will take some intensive t-shooting to figure out because sometimes it will work and sometimes it won't.  This code is fairly fragile because of that.


Yes good point, I should have made the flow clear, and probably just pulled everything in that case down into that VI.  Full panic mode lol

CLA
0 Kudos
Message 3 of 3
(198 Views)