LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT 4: Problem with Sine Wave example and simulink

I'm testing the Sine Wave example of Simulation Interface Toolkit 4. With Labview 8.5, Matlab 7.5 and Simulink 7
C:\Program Files\National Instruments\LabVIEW 8.5\examples\Simulation Interface\Sine Wave

When I run it I get the values of the Sine Wave from simulink, but If I try to change the value of frecuency or amplitude from Labview, I get this error in Matlab.

??? Error: Unexpected MATLAB expression.

Error in ==> nisit_set_param at 8
dimArrayNew = size(eval(value));



Do you know what is the problem?

Thanks
0 Kudos
Message 1 of 3
(3,284 Views)
The most common cause for this error is localization settings.  You will need to set your decimal symbol to '.' (period) for evaluation to work properly.  If it is set to ',' (comma), you will not be able to set values for parameters.  The reason is that a string of type '1,234' is interpreted as two values: 1 and 234.  However, a string of type '1.234' is interpreted as just one value.

-jasper


0 Kudos
Message 2 of 3
(3,275 Views)
That was the problem. Thanks!

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