LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected IMAQ image type conversion indicated

When wiring an Image to an IMAQ "object"/vi (e.g. Write Custom Data, Image Info, Calibration, ...) a type conversion indicator (grey dot) appears whenever the wire starts at a property node.

The conversion indicator doesn't appear when wiring from a local variable or an unbundle "object".

I would expect the value of an image object to behave similarly, regardless whether it is wired from a local variable, unbundle node or property node. Am I getting something wrong, is this a bug, or is there really some data type conversion going on?

Many thanks for all answers

Patrick
0 Kudos
Message 1 of 3
(2,591 Views)
The image type is a type def.  It appears that the Value returns a non-typedef value.  LV shows a conversion dot whenever you change between a non-typedef and typedef variable, even if they are the exact same structure.
 
Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(2,567 Views)
Thanks Bruce

An NI-Engineer just recently explained that similarly to what you've mentioned the value obtained via an image property node is of type variant, thus has the same color as the image type itself. It could be converted using a "variant to data" function.

Patrick
0 Kudos
Message 3 of 3
(2,562 Views)