LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW ActiveX Server errors when passing parameters from Matlab

I'm calling a LabVIEW (LV) vi from Matlab using LV as an activeX
server. I perform the following call without parameters and everything
works fine.

invoke(vi,'Call');

However, when passing an array of double I get the following error:

d=zeros(1,4096);
invoke(vi,'Call',d);
??? LabVIEW : paramNames type mismatch. Expected 1D array of
strings or 1D array of string variants.

I've tried several different types of numeric parameter without
success. Anyone have any ideas on how to pursue this problem...

Bill DeBruyn
0 Kudos
Message 1 of 3
(3,552 Views)
Check out the following example. This example VB client talking to LV as ActiveX Server. You might figure out what you are doing wrong.

http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&12AE3C0D7069122C8625683A000B277B&cat=9C6DF90777E5A78206256874000FA14E

Make sure that you pass values to LV controls using the "SetControlValue" method and not as argument of invoke!

Hope this would help U
A Rafiq
0 Kudos
Message 2 of 3
(3,552 Views)
Hi A Rafig

This link does not work. Where I can find it?
Thanks
Pawel
0 Kudos
Message 3 of 3
(3,552 Views)