Signal\Various
Domains: Continuous, Discrete. Size: 1-D. Allowed in: Block Diagrams.
This model generates a sound whenever the input is true. The sound must be stored on a .wav-file. At every simulation point where the input is true, the sound is restarted. This may result in the sound not to be hear because of every restart. Therefor it is best to make the input only true at one simulation point. This is demonstrated in the Examples library by the model:
Examples\Tips and Tricks\PlaySound
Inputs |
Description |
input |
Boolean: If true, a sound is played |
Parameters |
|
wave |
Sting: File name of the .wav-file (including the path) |