05-17-2010 07:40 AM
Hi,
I'm trying to get the Nanoscan (Photon Inc.) to work via ActiveX. There is a sample vi (from LabView 6) included but that doesn't work. So I tried to write an own short vi with only 2 commands. But that doesn't work either.
Error -2147352561 is returned.
Please find the test.vi (LV2009) I used attached. Property Nodes work, Invoke Nodes don't.
Any help in this matter is greatly appreciated!
Regards,
Steffen
05-19-2010 04:57 AM
Hi,
that's a known problem.
Have you tried creating new property nodes and reassigning the properties to see if this fixes the issue?
Regards
Rüdiger
05-19-2010 05:03 AM
Hi Rüdiger,
Thank you for your help.
Yes I already tried that. I started with an empty vi and from there I added the components from the menu. But it didn't fix the problem. All Invoke Nodes don't work.
Do you have some more ideas?
Regards,
Steffen
05-21-2010 10:11 AM
Hello Steffen,
could you contact the Nanoscan support in order to ask for a new version of the type library?
Regards
Rüdiger
05-25-2010 01:05 AM
Hello Rüdiger,
I already contacted them. But they also have no clue why it isn't working. They know that it works with older Labview versions.
Regards,
Steffen
08-09-2010 05:48 PM
Hello All,
The sample works with later versions of labview after all the invoke nodes have been deleted and re-added.
The error code -2147352561 is 8002000F in hex, which translates to an error of "parameter not optional," however in steffens .vi, he is trying to call a method with 0 parameters. The error makes no sense in this context, since the method has no parameters at all. This is the issue that we (at photon) don't understand: why are you getting a "parameter not optional" error on an invoke with zero parameters? The function in question, NsAsAquireSync1Rev(), has been tested and works without any problems in other activeX clients.
I wonder if anyone at NI knows why an invoke of a zero paremeter function, would result in a "parameter not optional" error.