09-16-2016 01:47 PM
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!!
09-16-2016 02:49 PM
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.
09-16-2016 03:13 PM
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.
09-19-2016 01:01 PM
Bump, please help guys..