LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference to object

Hi,

I'm trying to do on my own the "VI High #3" example on You Tube.

On the example they took Numeric Control -> right click-> Create-> Reference, witch result a turquoise* rectangle with turquoise "Digital" name inside it. When I tried to do that, I got an orange rectangle with orange "Digital" name inside it.

Due to that, I couldn't wire several commands into Build Array and than to Property Nodes.

 

What should I do in order to get the turquoise rectangle with turquoise "Digital" name inside it?

 

*fine blue-green

 

Thanks,

Idan

0 Kudos
Message 1 of 5
(2,316 Views)

Can you give a link? I did a search for VI High #3 on Youtube and found http://youtu.be/J6ESPHZ53B4

 

That video is just talking about creating explicit property nodes. Turquoise indicates scripting.

 

=====================
LabVIEW 2012


0 Kudos
Message 2 of 5
(2,310 Views)

 

Of course...

 

http://www.youtube.com/watch?v=J6ESPHZ53B4&feature=related

 

The exaxt time is 1:20 (you only need 5 seconds...)

 

Thanks alot

 

Idan

0 Kudos
Message 3 of 5
(2,307 Views)

The color indicates the data type, and orange means DBL. Based on that, I'm guessing that you actually created a local variable of a control named "Digital" (the local variable option is in the same context menu as the reference and the name of the control appears inside the control).

 

Another option is that your control is a strict typedef. I think that creating a reference from a strict typedef makes the reference strict as well, which I believe should result in this (the reference node has the color of the data type and you can't build it into an array with other non-strict references), although I don't have LV open. This should be relatively easy to check by right-clicking the control and seeing if it has the disconnect from typedef option in the context menu.


___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,299 Views)

[Edit: I used the wrong image]

 

I see. I thought you were talking about the color of the property node itself and not the reference.

 

Untitled.png

 

When I create a reference of a DBL it is orange, integers are blue, etc. Watching the video shows that all references are the same color. They create one for a dbl, bool and path.

 

I am guessing that the nice colors are a newer feature. The version of LabVIEW in the video is probably an older version. I am using LabVIEW 2011. What version do you have?

=====================
LabVIEW 2012


0 Kudos
Message 5 of 5
(2,295 Views)