LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is using an implicit property node better than a reference wired one?

Solved!
Go to solution

The following question is on a CLAD practice exam:

 

You have a control on the front panel of a VI and you need to modify one of its properties at run time. Which of the following is the best approach you would take?

 

a. Create an implicit property node and select the property to modify

b. Create a control reference, pass the reference to a property node and select the property to modify

 

The answer is A. Can anyone explain why? My old STE had a big problem with implicit property nodes (although I'm not 100% sure why). 

 

 

0 Kudos
Message 1 of 14
(4,488 Views)

What is an "STE"?

 

I would say A because it is simpler and you are only dealing with a single node.  It would take less diagram space.

 

B would make more sense if you need to change the property of different control.  Then you can programmatically iterate through the different references in a For Loop.

0 Kudos
Message 2 of 14
(4,485 Views)

@DutchTzu13 wrote:

The answer is A. Can anyone explain why? My old STE had a big problem with implicit property nodes (although I'm not 100% sure why).  


Well, I also don't know what an STE is (but we can guess!). Your post has two parts:

 

  1. question about the CLAD practice: I agree with Ravens here if a and b are the only choices.
  2. Unknown (big!) problem with implicit property nodes.

 

Is the problem big enough that you can tell us what the problem is? (e.g. properties not working, labview crashes, computer bursts into flames, etc.).

 

If you are not 100% sure, it can mean a number between 0% and 99%. Can you be more specific?

 

Attach a small example that demonstrates the problem! I am sure we can identify the problem 100% and help you fix it.

 

0 Kudos
Message 3 of 14
(4,456 Views)
Solution
Accepted by topic author DutchTzu13

If that question is replicated correctly, you have to guess what the Q'er had in mind when they wrote that Q.

 

One let's you rihgt-click to find the control, the other allows use in a sub-VI. the former is easier to write and figure out, the latter is easier to maintain.

 

ben  

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 14
(4,437 Views)

Sorry all, STE is Senior Test Engineer -- basically the guy that got me into LabVIEW.. 

 

That's why I hate the CLAD exam, lots of questions that aren't necessarily black and white. There was another one about which method of creating an array is the most efficient... The answer ends up being "using a for loop with auto-indexing" which I was always told is a huge no-no from a memory standpoint... All arrays should be initialized, no? Thanks for the input everyone, I think I've got my answer (that its a junk question).. I just need to pass this crumb CLAD so I can move on to the CLD...

0 Kudos
Message 5 of 14
(4,395 Views)

@DutchTzu13 wrote:

There was another one about which method of creating an array is the most efficient... The answer ends up being "using a for loop with auto-indexing" which I was always told is a huge no-no from a memory standpoint... All arrays should be initialized, no? 


Not exactly. Building an array inside a for loop is bad from a memory standpoint (since it will call the memory manager several times during the execution of the for loop). Auto-indexing at a for loop tunnel is perfectly fine since it's known how many times the loop will iterate, so the array can be allocated with one memory manager call.

 

Message 6 of 14
(4,392 Views)

Oh yeah, I didn't think of that, good call...

0 Kudos
Message 7 of 14
(4,380 Views)

Actually the for loop is multiple times faster when initialising an array than the dedicated function.

 

Edit : actually I shouldn't play with the auto clean diagram... inverted wire, for loop is slower Smiley Embarassed

0 Kudos
Message 8 of 14
(4,360 Views)

@Bap wrote:

Actually the for loop is multiple times faster when initialising an array than the dedicated function.


You make no sense here.

  • What is a "dedicated function"? I am not familiar with that term.
  • How much is "multiple times"?
  • And what are you replying to?

Bap2703 wrote:

Edit : actually I shouldn't play with the auto clean diagram... inverted wire, for loop is slower Smiley Embarassed


What is an "inverted wire"?

0 Kudos
Message 9 of 14
(4,337 Views)

altenbach wrote:

What is an "inverted wire"?


I think he's saying he had his wires crossed.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 14
(4,329 Views)