01-17-2015 02:59 AM
Hello
I want to use a Controlled source in multisim.
But I want to get data using a file in any iteration of solution.
for example for t0 I have a text file including (V0) which it can control a current source.
then in next iteration t1 I have another text file including (V1) , this V1 is calculate using a function an Labview or Matlab using previous solution of multisim.
and this iteration could be iterate to t(end).
Would you please help me for this problem.?
for example please see attached file.
I have a ode equation {xdot+x=Vprobe2 and I1=x+Vprobe1}
So in first iteration x must be calculate using labview or matlab x(0) then using this x(0) , Vprobe2(1) must be calculated. And this iteration repeated.
Regards
01-20-2015 10:42 AM
Hi Naser,
I don't fully understand you question but I will provide some information that may be useful.
- If you want to load data into a source, use the Piecewise Linear Source (PWL), this source allows you to load txt data, there one for voltage and current.
- At t0, you can preset the voltage on some components or wire. For example if you double-click on the capacitor to open the properties dialog, under the Value tab there is an option to set the initial condition and for a wire it's under the Simulation Setting tab. If you use the instrument, select Simulate>>Interactive Simulation, click the drop down arrow for Initial Condition and select "User defined".
If the information I am providing does not help, please provide more details.
06-16-2016 02:07 PM
Hi
Could you please tell me how import data vector of binary values from MATLAB to multisim for the purpose of convert it to Analog signal?
06-17-2016 12:47 PM
Hello senaka2014
What you can do is export to Excel the read the data in Multisim using LabVIEW Based Virtual Instrument for NI Multisim.
I attached the links below.
http://forums.ni.com/t5/Multisim-and-Ultiboard/How-to-export-from-multism-to-matlab/td-p/1559574
http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/multisim/m-p/3192619#M4882
Regards
06-17-2016 12:59 PM
Dear David
Thank you for your kind response. But I need to import data from MATLAB to Multisim. Not Multisim to MATLAB. How to do it please?.
06-17-2016 01:12 PM
Dear David
Is it possible if we make MATLAB as a COM Server and Multisim as a COM client to get data from MATLAB to Multisim? I am new to this COM protocol applications. Are you familier with those?