I'm using MATLAB script nodes in order to access the Java API of
Micro-Manager (and if you know offhand of a less convoluted way to do this, I'd like to hear it). Specifically, I need to get a 512x512 array of Real into LabVIEW. My scripts are running okay; I can even use imagesc in my script and MATLAB will plot the data in the array without any problem. However, if I create a correspoding output terminal on the script node and try to wire it up, I inevitably get
Error 1048 occurred at LabVIEW: LabVIEW failed to get variable from the script server. Server: 7.4.0.287 (R2007a)" in [etc].
I tried wiring up a pre-initialized 512x512 array to an input terminal on the script node, but that doesn't seem to help. Neither does adding a two-second pause to the end of the script, or assigning the variable to a different name and then using the different name in the output terminal. It doesn't seem like the array size is a problem, since a script containing the line "foo = ones(512,512)" will execute without any problem and return stuff through an output terminal named "foo".
I'm running LabVIEW 8.5, and the "MATLAB Script Node - Fractal" example runs without any problems. What else can I do to diagnose this difficulty?