12-02-2009 09:39 AM
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:
(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:
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!
Solved! Go to Solution.
12-03-2009 06:24 AM
I see the same behaviour, let me check what's going on here.
But you could do it also as follows: