04-17-2012 10:26 AM
Hello folks,
I noticed the potentially handy IMAQdx Enumerate Video Modes vi. I'd like to use that to dynamically fill in a ring menu / combo box (whichever would be appropriate, though I think it is supposed to be a ring menu so that the output is U32, which is the input from of the IMAQdx "VideoMode" property) so that I can hook in a different USB camera and not have to fill in all the modes again manually. I have tried to understand what a typedef is and how to make the output from the Enumerate vi work with that property node, but with no success. Pictures detailing my current vi and the data type mismatch are below.
zob
MY VI:
COMPARISON OF DATA TYPES:
Solved! Go to Solution.
04-17-2012 10:38 AM
The order of the elements in the cluster matters. In one case, you have the numeric first, in the other you have the string first.
You need to go through your array and rebundle those elemetns into the correct order.
04-17-2012 11:55 AM - edited 04-17-2012 11:56 AM
That worked, thank you my good sir. For those who come after, here is the working solution. If there's a better way, I'd be interested to hear about that, too.
04-17-2012 12:20 PM
You can do without the index array at the front of the loop and the build array at the end of the loop. Just make your tunnels for the cluster arrays coming in and going out into auto-indexing tunnels. When you do that, you won't need to wire the array size into the N of the For Loop either.
04-17-2012 12:33 PM - edited 04-17-2012 12:36 PM
Beautiful, I can always appreciate simplification. Thanks again!
Again, for the sake of those who see this later, here is the simplified loop: