LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reference of property node

Solved!
Go to solution

Hello guys,

In using the property node, I confused with the reference terminal there. Should I create some special reference for the control ( a button, for example),but obviouly I could not connect the button directly to the reference terminal. I find out an example about this which attached in attachment. How could I creat a stuff like that? So appreciate!

 

 

0 Kudos
Message 1 of 10
(7,897 Views)

If you are using the property node in the same vi where the control (button) is available you can create an implicit property node (Right click the control and go to the property and select one) else if you want to use the reference property node you can create a reference for the control and use it else create an indicator out of the reference and change it to a control (which looks similar to the one you showed) also you have lot other way to do it.

 

good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 10
(7,894 Views)

Thank you for your reply.  I known about the implicit property node, I actually confused about the dynamically linked property nodes. Should I create a VI server reference and link it to the reference terminal of this dynamically linked property node? If so, another problem poped out, I would like to use this property node in a subVI, which should have a general control reference (this subVI should be used for difference button controls), the subVI itself should not have any specific control. What should I do with this property node in the subVI? Thanks a  LOT!

0 Kudos
Message 3 of 10
(7,856 Views)

I found out a Ctrl Refnum in the block diagram menu, should I use it to link with the property node in subVI?

0 Kudos
Message 4 of 10
(7,851 Views)

this might help....Smiley Wink

 

the stop button is used as a control(read from top level), while the rest are indicators(write to top level)

0 Kudos
Message 5 of 10
(7,845 Views)

Thanks. May I consider in this way... The VI server reference on the block diagram could be use when you have certain controls or indicators to reference. The ctrl refnum on the front panel could be used as a general reference when you do not have certain controls or indicators to link, or say an open object? In addition, any difference between reference and refnum?

0 Kudos
Message 6 of 10
(7,830 Views)
Solution
Accepted by topic author phyyu

Phyyu,

 

VI server references follow the object-oriented class structure. A VI Server reference can refer to a wide range of objects, like a control, indicator, VI, variable, etc. VI Server references can be as strictly or not strictly typed as you would like. A control/indicator reference specifically references a control that you pass to it. You can require the reference to be more strict by right-clicking the reference and using the menus to select which class you would like to reference. One possible class tree may look like this: VI Server>Generic>G Object>Control>Array. Now this reference requires a pointer to an array control, and will not accept any other type of control. If you use this reference control to create a property node, the properties will be specific to the array class.

 

A refnum is simply a numeric value that refers to a place in memory. Reference and refnum are used somewhat interchangeably in LabVIEW. 

 

Hope this answers your questions! Check out the LabVIEW Help files for VI Server references to learn more about them.

 

Regards,

 

Alexandra Valiton

Applications Engineer

National Instruments

National Instruments
Applications Engineer
Message 7 of 10
(7,792 Views)

Thank you so much for your reply. It is really useful. I am so appreicate if you could kindly show me the answer to two additional questions I found in an example.

 

The attachment CtrlRef is a notifier in the event structure, I could not find out how to get this.

The attachment button reference, there is a red star in it, I right-clicked the reference, found out the "include data type" has been checked, what is it mean?

 

Thanks for your concern.

 

Sincerely,

Yue

 

Download All
0 Kudos
Message 8 of 10
(7,754 Views)

Hi Yue,

 

The CtrlRef notifier is determined by the type of event case selected. There are different notifiers for Mouse Click, Value Change, and Timeout. You can resize the notifier box to see more options, because some event cases have many different notifiers.

 

The red star indicates a strict reference. "Include Data Type" means that this reference is not just any control, but a Boolean control. You cannot pass a reference to a Numeric control to this input of the VI. 

 

I hope this answers your questions!

 

Regards,


Alexandra

National Instruments
Applications Engineer
0 Kudos
Message 9 of 10
(7,704 Views)

Thanks a lot!

0 Kudos
Message 10 of 10
(7,694 Views)