LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array size mismatch error (1047) from matlab to labview

Hello all,
I have a very strange situation here and I am hoping someone can come up with some ideas for me... 🙂

I am running labview vi's through a web page, and one of my vi's contains a matlab script with two array inputs, one 2d with a varying length, and the second a 1d array with a fixed set of parameters.

If I call this report on my local system, web server labview and matlab all running on my laptop. Everything works fine. I receive no errors and the matlab script runs and returns data as expected.

The problem is I have an Identical setup (as near as I can tell) setup on a server, and I receive a 1047 error, reporting an array size mismatch.

All the input arrays data sets are identical in the vi at the input into the matlab script. And as best as I can tell all sub VI's and M files are identical. The only difference I can come up with is that one setup is running on a server and the other is not, however other vi's using matlab script (although a simpler configuration (no direct inputs or outputs form matlab, all data transferred in and out via txt files )) run fine in both configurations.

On both systems I running matlab ver 7 (R14) with a single user license and Labview 7.1.

any ideas or suggestions would be greatly appreciated. Please let me know if any additional details are needed.

Thank you in advance,
Chris
0 Kudos
Message 1 of 3
(3,336 Views)
Hello Chris,

I believe your issue relates to the following KnowledgeBases.

Error 1047: When Trying to Use The Matlab Script Node in LabVIEW?

How Can I Resolve MATLAB and Xmath Script Node Issues in LabVIEW?

Please let me know if the linked information does not resolve your issue.

Regards,

Matt F
0 Kudos
Message 2 of 3
(3,307 Views)
Hello Matt,

Yes you were correct upgraded LV to 7.1.1 and everything is running fine now.
thanks




@NPI_Chris wrote:
Hello all,
I have a very strange situation here and I am hoping someone can come up with some ideas for me... 🙂

I am running labview vi's through a web page, and one of my vi's contains a matlab script with two array inputs, one 2d with a varying length, and the second a 1d array with a fixed set of parameters.

If I call this report on my local system, web server labview and matlab all running on my laptop. Everything works fine. I receive no errors and the matlab script runs and returns data as expected.

The problem is I have an Identical setup (as near as I can tell) setup on a server, and I receive a 1047 error, reporting an array size mismatch.

All the input arrays data sets are identical in the vi at the input into the matlab script. And as best as I can tell all sub VI's and M files are identical. The only difference I can come up with is that one setup is running on a server and the other is not, however other vi's using matlab script (although a simpler configuration (no direct inputs or outputs form matlab, all data transferred in and out via txt files )) run fine in both configurations.

On both systems I running matlab ver 7 (R14) with a single user license and Labview 7.1.

any ideas or suggestions would be greatly appreciated. Please let me know if any additional details are needed.

Thank you in advance,
Chris


0 Kudos
Message 3 of 3
(3,279 Views)