08-24-2005 12:17 PM
08-26-2005 05:39 PM - edited 08-26-2005 05:39 PM
Message Edited by Philip C. on 08-26-2005 05:39 PM
08-29-2005 08:59 AM
Hello Philip,
Thank's for your answer.
Unfortunately, clearing variables in Matlab doesn't solve the issue. After the LabVIEW error, I am able to check directly in the Matlab Command Window that the image was succesfully replaced by the new image. So, I believe that the error is caused directly in LabVIEW. It looks like I cannot rewrite the value directly to the variable Image.
So, I tried to initialise the variable outside the loop and enter it as a variable to Matlab. Then, Matlab modify the variable and all is working fine (see attachement). This solution have two inconvenients : 1- I must know the size of the image before openning it to initialise the array (less flexibility). 2- For big files like those I will use (512 x 50000 pixels), even with 2 GB of RAM, LabView came out of memory (probably because in this way, two array will exist at the same time). So, this will not work for me...
I will try to improve my solution... If you have any tips, it will be welcome !
Regards,
David
08-30-2005 10:36 PM
08-31-2005 06:43 AM
08-31-2005 07:10 AM
I always get a 1048 error when using the clear all command in a matlab script, when I remove it the error disappears and the script runs fine.
Paul
09-02-2005 12:33 AM