LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab Script

I am using matlab script in one of my vi. It works. But when I change the value of an input on my labview interface and run the vi again, it returns me an error.
(Matlab error : size of array must be same size as..)However if I change the input use the "set actual parameter as default", save the vi and close it.
When I open it again and then run the vi, it now works. Why? 
0 Kudos
Message 1 of 2
(2,453 Views)
The obvious answer to your question is: It depends on what your script is doing. When you save the front panel control with default values set and you run the script is always using the same values so that's why it works after you close the VI and open it again. What's your script doing?
0 Kudos
Message 2 of 2
(2,433 Views)