From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing VI Clone Reference

Solved!
Go to solution

Hi All,

 

In an array of  VI references(which may have reference of multiple clones of a VI), on searching for a particular clone VI reference using "Search 1D Array" output is always the index of first clone of that VI even if we search for other clones.

 

Kindly give explanation for this behaviour and also suggest if there are any alternate ways to get the index of required clone VI.

 

PS: Find the VIs demonstrating this behaviour attached below.

 

Thanks in Advance

0 Kudos
Message 1 of 3
(2,978 Views)
Solution
Accepted by topic author SreeRanjani

Use the VI name, or in this case the Clone name.  Then do the search 1D array on the names which are unique.  Your opinion of if this is normal or a bug, will likely depend on your level of computer science experience.

0 Kudos
Message 2 of 3
(2,971 Views)
Solution
Accepted by topic author SreeRanjani

 

Thanks for your suggestion, I tried typecasting the reference[] and reference to numeric[] and numeric and then did the searching this seemed to work.

 

PS: Please find the files attached

 

Thanks,

Sree

0 Kudos
Message 3 of 3
(2,916 Views)