LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using property nodes with DVR to class

Solved!
Go to solution

LV2013, Win7

 

I'm in the middle of changing a certain shift register data type from X.lvclass,  to Data Value Reference (DVR) of X.lvclass.

 

Where I create the class, I simply put the NEW DATA VALUE REFERENCE function  and into the shift register.

 

DVR1.PNG

 

That breaks a few things - I had to change a few method calls to include the IN-PLACE ELEMENT (IPE) structure with a use-DVR function on the sides.  I expected that and it's good.

 

Then I got to this part and am confused.  This shows the code BEFORE I changed anything.

I have verified that the wire is NOT going behind the node, it is indeed connected as it appears.

Why is the wire to the property node not broken?

DVR2.PNG

 

I was expecting that to be broken, and I would have to include an IPE here. But apparently not.

Does the property node automatically handle the IPE part ?  

If I wire in the equivalent VI, it breaks, because I can't connect a reference to a class input.

But why does the prop node not do that?  

I can find no help which declares this behavior.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 1 of 5
(3,986 Views)

It appears to be real, I finished repairs and it all compiles OK.

 

A new property node works OK, even with TWO properties.

 

I wonder if it dereferences the thing once, or twice, in this case:

DVR3.PNG

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 5
(3,968 Views)
Solution
Accepted by topic author CoastalMaineBird

Class Property nodes can handle DVR instances; I believe this was on the feature list for an older version of LV (don't remember which). But I do recall it being a deliberate and intentional feature.

0 Kudos
Message 3 of 5
(3,944 Views)
0 Kudos
Message 4 of 5
(3,940 Views)

Also I'm fairly sure that in later versions the de-referencing only happens once; there used to be some quirks in this circa 2012; I admittedly have stayed away from the nodes for this purpose since. 

0 Kudos
Message 5 of 5
(3,870 Views)