LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX / Nanoscan - Invoke Nodes don't work

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

0 Kudos
Message 1 of 6
(3,890 Views)

 

 

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

0 Kudos
Message 2 of 6
(3,854 Views)

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

0 Kudos
Message 3 of 6
(3,849 Views)

 

 

Hello Steffen,

 

could you contact the Nanoscan support in order to ask for a new version of the type library?

 

 

Regards

Rüdiger

0 Kudos
Message 4 of 6
(3,826 Views)

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

0 Kudos
Message 5 of 6
(3,801 Views)

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.

 

0 Kudos
Message 6 of 6
(3,664 Views)