LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing arrays from matlab to vi-controls by activex

Dear specialists,
I am trying to set an array of doubles that is defined as a control in my VI by using:

invoke(VIhandle, 'SetControlValue', mlarray)

where mlarray is defined in Matlab as an 1xn array of doubles.

error: ??? Dispatch : Exception occurred
in routine: actxcli

Reading an indicator array in the VI by 'GetcontrolValue' works fine.
Also passing non-array variables works fine.

How should I define my array in Matlab/Labview to make it work ?
0 Kudos
Message 1 of 3
(2,844 Views)
I do not have a copy of Matlab but I can help you search the web. Is your error from windows, matlab, or labview? I could find nothing on NI's site for actxcli. Is this the exact error message?
0 Kudos
Message 2 of 3
(2,844 Views)
I have the same problem but in Matlab 6.5 get the error 'Access is Denied'. Any ideas?
0 Kudos
Message 3 of 3
(2,844 Views)