LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx datatypes in LV8.2 & LV2009

Solved!
Go to solution

I've been converting a project containing IMAQdx functionality from LV8.2 to LV2009 and run up against a problem. I've narrowed it down to the registering a Frame Done event using the IMAQdx Session, and then trying to access the dynamic variables in that event.

 

This is the code in LV8.2:

 

TestIMAQ_LV82.jpg

 

(I know it won't actually run, but notice that the CtlRef indicator, whilst being coerced, is actually accessible)

 

Exactly the same bit of code in LV2009 gives a broken wire error, as follows:

 

TestIMAQ_LV2009.jpg

 

The error on the wire is "You have connected two terminals of different types. The type of the source is User Defined Refnum Tag. The type of the sink is typedef 'IMAQdx.ctl' IMAQdx (IMAQdx, IMAQdx)."

 

Poking around a little, I have tried wiring a Property Node to the CtlRef event node, but I can't work out which property to use to get the camera reference. Any ideas? Is this the right way to fix this problem? Or is there something else I've not spotted?

 

I've attached the VI for ease of checking (LV8.2).

 

Thanks for any help!

 

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

I see the same behaviour, let me check what's going on here.

 

But you could do it also as follows:

 

frame done

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