LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and Multisim co simulation

Hi all,

I am trying to use the co-simulation between LabVIEW and Multisim. The VI is supposed to read a WAV file then send it to a filter created in Multisim, and then write a new WAV file of the filtered signal. Sounds simple, but I am stuck!

 

The Multisim function needs to receive the voltage from the WAV file one at a time, so I created a For Loop with index outside of the "Control & Simulation Loop", but it is taking only the first value and then it stops. I was trying to create the For Loop inside the "Control & Simulation Loop", which would make sense to me, but it doesn't allow me to do that.

 

I need help!!

Untitled.png

0 Kudos
Message 1 of 4
(3,866 Views)

I am fairly certain that you cannot put a Control and Simulation loop within another loop.

 

Try removing the for loop and simply indexing the waveform data inside the Control and Simulation loop. Also I don't think you can pass the waveform directly to the Multisim block, although I could be wrong about that. If not you'll have to extract the raw data from the waveform before passing it to Multisim.

 

Make sure your solver on the C&S loop is set to discrete and that your timestep equals the timestep of your sampled data.

0 Kudos
Message 2 of 4
(3,846 Views)

Yeah, I can pass the wave form directly to the Multisim block, that is why I tried to index. But I dont know how to index without using a For loop.

I tried using this "Indexer" function, but I am not sure how to get it to work as it should. when i try to run this VI, i get "Error - 1820 occurred at Append Signals2->Filter.VI" "LabVIEW: The t0 does not align with the end of the previous signal." And it also looks to only send the first sample of the WAV file.

I am also going to add the files in case anyone can check for any problems.

Untitled2.png

Download All
0 Kudos
Message 3 of 4
(3,843 Views)

Bump, please help guys..

0 Kudos
Message 4 of 4
(3,806 Views)