Can Multisim Import and Process Sound Files Through a Circuit?

  • Thread starter Thread starter houlahound
  • Start date Start date
  • Tags Tags
    files Sound
Click For Summary

Discussion Overview

The discussion centers around the possibility of importing sound files into Multisim, processing them through a circuit such as a passive low pass RC filter, and then outputting the modified signal to a speaker or saving it as a WAV file. The scope includes technical exploration of simulation capabilities and file handling within Multisim.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about the feasibility of importing a sound file into Multisim and processing it through a circuit.
  • Another participant suggests that it is generally possible to input data from a file into a simulation, operate on it, and then capture and write that data to a file, although they are uncertain about the specific functions available in Multisim.
  • A participant provides an example of commands from a different simulator (ncsim) for reading and writing files, indicating that similar functionality might exist in Multisim but lacks specific knowledge about it.
  • There is a question about whether ncsim is a circuit simulator, with one participant expressing confusion over the code language used in the example.
  • A participant clarifies that ncsim is a Cadence multilanguage simulator and acknowledges that their example may not be applicable to Multisim.
  • Another participant requests links to an overview of Cadence products.
  • A link to the Cadence overview is provided, but the participant expresses uncertainty about how to achieve the desired functionality in Multisim.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the specific capabilities of Multisim regarding sound file processing, and multiple views regarding the use of different simulators and their functionalities are presented.

Contextual Notes

There is uncertainty regarding the specific commands and functionalities available in Multisim for file handling, as well as the applicability of examples from other simulators. The discussion reflects a lack of detailed knowledge about Multisim's capabilities in this context.

houlahound
Messages
907
Reaction score
223
Is it possible to import a sound file into multisim and run it thru a circuit eg a passive low pass RC filter and send the signal to a speaker and save the clean signal say as a wav file.
 
Engineering news on Phys.org
You can generally input data from a file into a simulation, operate on it, then capture that data to a signal and write it to a file. You can then convert it to whatever format you choose.

The actual commands to do that depends on the simulator, but it is basically learning to make use of the various $read and $write simulator functions.
Not sure what multisim has available, if anything.

For example the following (from an ncsim file, not multisim)
$fwrite(tester_vectorsFPGA_filehandle,"%s %s %b %b //%0d\n",dpstringFPGA, dmstringFPGA, txoe, testeroe, vector_num12);

will write to the file represented by the filehandle: two strings (contained in dpstringFPGA, dmstringFPGA) , and 2 binary values (contained in txoe, testeroe) and a decimal value vector_num12

You just capture the data into a variable at each clock edge, and write it out.

You do a similar thing to read a file into a 2 dimensional array, then iterate through the array on each clock edge (or as you need the data).
Generally the array needs to be large enough to hold the whole file.

Others may have more experience with multisim.
 
Is ncsim a circuit simulator?

Not sure if it is valid code language but I read a lot of random symbols in yr code.

Same happens to math eqtns I read here so I think it is prob my end.
 
ncsim is a Cadence multilanguage simulator that I use at work.
I guess what I wrote won't help you with multisim. Sorry.

I recommend you ask your question in the NI multisim forums. I assume there are symbols to access file data for read and write, but I don't know how to do it.
 
Links to Cadence overview?
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
5K
Replies
26
Views
7K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K