LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get One type ref?

Hii 

 

 In my Front Panel i am having 10 Boolean Controls , 5 String Controls and 3 Numeric controls ....  in that i want to take the 10 boolean control ref alone is it possible.................... 

0 Kudos
Message 1 of 6
(3,045 Views)

Do you mean you want one reference for all 10 boolean controls or would it be OK to put them in an array or a cluster?

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 6
(3,040 Views)
Yaa it can be an array of Boolean Ref
0 Kudos
Message 3 of 6
(3,037 Views)

Hi Karthikey,

 

The following code should help you:

 

Ton

Message Edited by TonP on 02-24-2009 08:02 AM
Message Edited by TonP on 02-24-2009 08:02 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 6
(3,027 Views)

Hii

 

Is there any difference between the attached two methods of obtaining the Boolean Reference... 

Download All
0 Kudos
Message 5 of 6
(2,991 Views)

KarthikeyanMathialagan wrote:

Hii

 

Is there any difference between the attached two methods of obtaining the Boolean Reference... 


Allmost not.

The little difference is how you obtain the reference to the pane. In the 'Alternate Method' you get a reference to the VI by path. This will not work for VIs that are spawned.

Spawning can be done by setting the VI to reentrant, in that case the boolean references will refer to booleans on the edit-VI of the reentrant VI, the second spawning method is loading the VI into memory from a template (VIT).

Best is to use the 'This VI' reference:

.

 

Ton

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 6
(2,982 Views)