0
\$\begingroup\$

I am currently working on a university project and need help with a LTspice simulation.

I have two different .csv files. One describes the input voltage and one the input current, meaning that both are limited at each time step. The time steps are identical for both. Is there a way to implement this into LTspice or would I need to take an average of the current input and limit the current with a constant value?

Kind regards Jonas

Here is a picture of the two csv files. Voltage on the left and current on the right.

enter image description here

This is the input circuit that I have tried.

enter image description here

Edit: Okay, so I seem to have missed some Info that would be necessary. So the power source is a vibrational energy harvester which means that we are limited in terms of voltage and current. Like this one.

I get the data from a co-simulation using Matlab and MSC Adams.

This is the full schematic.

The resistors in the lower right are a simulated load and the input is in the upper left corner. I get that using a voltage and power source like that does not really make sense, but I tried to get the Voltage and the Current defined by that input data. This voltage is the correct input voltage measured right after the Voltage source

I will provide the tables as soon as I can figure out how to upload them. The have about 60000 data points.

To make it clear, I do not need help regarding the complete schematic, I just need to know how to create a power supply in LTspice which produces the exact voltage and current specified by the csv data. So that power is provided in exactly how it is defined by the tables at each time step.

I uploaded the data to weTransfer:

WeTransfer

\$\endgroup\$
5
  • 1
    \$\begingroup\$ You can graph the voltages in lt spice and screenshot it... \$\endgroup\$ Commented Mar 3 at 22:07
  • \$\begingroup\$ I’m a bit confused. Did you drive a transformer with a voltage and then looked at the current on an oscilloscope using some kind of current probe? \$\endgroup\$ Commented Mar 4 at 1:50
  • 4
    \$\begingroup\$ A current source in series with a voltage source will make the voltage source invisible, since the circuit voltage across the load is completely defined by its current and that is determined by the current source. You can define one or the other, but not both at the same time. \$\endgroup\$ Commented Mar 4 at 2:03
  • 1
    \$\begingroup\$ What are you trying to do with the data? You can have LTspice graph the voltage and current data independently and do some calculations like impedance. BTW, it's best to give actual tables of data that can be copy & pasted, not screen shots, as this allows us to show how you can get the data in to LTspice. \$\endgroup\$ Commented Mar 4 at 5:03
  • \$\begingroup\$ Thanks for adding more info, but most of it is irrelevant. I think we need to know more about how you generated these tables in “Matlab and MSC Adams” and more importantly what they’re meant to represent. Was the energy harvester driving a load to get these numbers? Or does it produce an open circuit voltage in one table and the current in the other table is the max current at each timestep? \$\endgroup\$ Commented Mar 5 at 12:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.