LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VIM which breaks with a cluster containing more than two elements

Solved!
Go to solution

Anyone know how to make a VIM which will break if it is wired to a cluster with anything other than two elements in it (Not necessarily the same elements)

 

Use case:

A VIM which converts an array of clusters to a map. See attached.

0 Kudos
Message 1 of 3
(1,087 Views)
Solution
Accepted by topic author Worle

Try this:

 

BertMcMahan_0-1668098324817.png

 

I haven't tested it super duper thoroughly but it seems good so far. There could be some weird corner cases with clusters of other clusters, or clusters of variants, etc but it seems to work OK for normal datatypes.

 

Edit: I tried a couple weird ones, like a 2-element cluster containing a string and another cluster that itself contained a string and a variant, and it seems to work.

 

BertMcMahan_0-1668098559489.png

 

 

Download All
Message 2 of 3
(1,062 Views)

That is spot on. I would not have ever thought of doing that!

0 Kudos
Message 3 of 3
(1,010 Views)