LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX call results in error

I recently upgraded from LabView6.1 to 7.1 and TestStand2.0 to 3.1 on a test stand in our company. The custom program we were running worked fine before the upgrade, but now does not. The program errors after trying to use an ActiveX call to TestStand to get a sequence reference (linked to an invoke node). Attached is a simplified version of the sequence and the code. I have not been able to discover what is causing the problem, nor how to solve it. Any ideas or suggestions would be a great help.

Jack Smith
0 Kudos
Message 1 of 2
(2,159 Views)
Hello Jack,

You code looked like it should have worked. I messed around with it a bit and got it working. All you need to do is replace the type caste VI with a Variant-to-Data VI. They do almost exactly the same thing. The only real difference is that the later translates additional information (ie: number of elements). In you case, it is not immediately clear why one would work when the other does not. If you need a more satisfying explanation, let me know. For now, just replace the VI. The new one is in "All Functions >> Advanced >> Data Manipulation >> Variant" and is called "Variant to Data". Thank you for contacting National Instruments and take care!


Regards,

Aaron B.
National Instruments
Message 2 of 2
(2,139 Views)