Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Struggling to make an audible alarm in Multisim

Googled every possible word comination I could think of without any luck.  All of the results I found on the matter were in relation to the speaker and a microphone input (which I am not using). Simply put, I'd like to have an audible signal associated with current passing through a certain point. I've done the steps "Simulate > Instruments > Labview Instruments > Speaker". I'm just trying to have the speaker output a sound when the node it is connected to sees a voltage. I have a probe attatched to the same node to verify that it is seeing a voltage. I double click on the speaker and have "playback duration" set to 20s and frequency to 2khz. When I click the "play sound" button, it plays it (only briefly, not for 20s). But nothing happens when the speaker sees a voltage, Added an 8ohm resistor in line with the node and speaker to see if it needed a current, and still no dice. Any advice? Sorry for the stupid question. 

0 Kudos
Message 1 of 2
(5,103 Views)

Hello,

 

The speaker labview instrument was made to record and playback audio. The problem with what you are trying to do is the fact that the speaker records not in real-time, but in simulation time. Which is much slower than the actual time it takes for your simulation to be running, that 1 second of simulation time could take 2 to 20 minutes of real time. If all you are looking to do is see if something is active then I recommend using an LED or the measurement probe. Now if you want some sort of sound to play, you can use the measurement probe triggering properties. Open the Description Box Editor (under Tools) and import a file you want to play under Insert » Object (it can be anything from a picture to a full video). Once you place it in there, create a label for it (right click » Object properties). Save the editor and exit. In the main window, double click on the measurement probe, and head to the trigger. Click on NEW, Then create a condition (you'll see some examples at the bottom of the dialog), under action select Play Media Clip and under parameter write the label you gave your object in the description editor. Hope this helps.

 

Edit: Using the Trigger option in the measurement probe you can also make the simulation pause for some time as an action to a condition of your choice. It's a powerful tool.

 

Kind regards,

Miguel V
National Instruments
0 Kudos
Message 2 of 2
(5,087 Views)