John
John

Reputation: 4038

Simple MATLAB Simulink sample in MATLAB does not work when I try to run it. Why?

I am trying to do an example in MATLAB Simulink documentation.

Here is the link:

http://www.mathworks.com/help/toolbox/simulink/gs/bq5iw8a.html

I did exactly what the documentation said, but when I run it, it said:

"Input port 1 of 'simple_test_model/Sine Wave Function' is not connected."

But the documentation does not say anything about the input of Sine Wave Function. What should I do so that I can simulate?

Upvotes: 1

Views: 1377

Answers (1)

zellus
zellus

Reputation: 9582

The Sine Wave block documentation says

This block is the same as the Sine Wave Function block that appears in the Math Operations library. If you select Use external source for the Time parameter in the block dialog box, you get the Sine Wave Function block.

Switch the Sine Wave block parameter for Time back to Use simulation time.

Upvotes: 4

Related Questions