LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting typedef to a cluster

Solved!
Go to solution

I`m using an IMAQ Edge find tool. There is ROI descriptor connected to the IMAQ Edge find tool. I need one value in the ROI descriptor to be variable. How can I do it? First idea: build your own ROI descriptor from basics. I tried it but still getting error:

 

The type of the source is 1-D array of
cluster of 2 elements.
The type of the sink is typedef 'ROI Descriptor'
cluster of 2 elements.

 

For better understanding about the issue one shall look at attached screenshot.

 

Do you know how to set a typedef to a cluster? Or do you any other ideas how to solve mentioned issue?

 

Thank you a lot!

0 Kudos
Message 1 of 4
(2,923 Views)
Solution
Accepted by topic author xombox@seznam.cz

Hi xombox@se...,

use the "bundle by name" function and connect your values. Use the constant as input to the "bundle by name" function.

 

Mike

0 Kudos
Message 2 of 4
(2,912 Views)

Mike, thank you for pointing me to the right direction. It worked!

 

I attached solution screenshot for the others with similar problem.

 

Just a small question: is it possible to put all this set ROI to one element (I measn this ROI being represented only by one icon) so that my labview code is more well-arranged and readable?

 

Martin

Message Edited by xombox@seznam.cz on 05-03-2009 08:56 AM
0 Kudos
Message 3 of 4
(2,867 Views)

Hi Martin,

you can create a subvi.

 

Mike

0 Kudos
Message 4 of 4
(2,845 Views)