Wow, emails to [LTspice] are not making it again!
Here is a message I sent several hours ago that hasn't shown up yet:
---
"rmoreno.phone" asked how to enter a table of measured values for her/his CCVS.
Vlad might have had the table descriptions a little bit confused with
respect to your question, because I think the data you have is
voltage/current values, not voltage/time values. You wanted a
controlled or dependent source, not an independent source.
Using SPICE's built-in H element (current controlled voltage source or
CCVS), LTspice *MIGHT* have the ability to accept a table of
current/voltage values. See the Help pages for E (VCVS) and G (VCCS)
elements. A table is listed as an option. "A look-up table is used
to specify the transfer function." The same 'table' description is
not listed for the F (CCCS) and H (CCVS) elements. I am not sure if
that was an omission on those Help pages, or if that option really
doesn't exist for those two controlled sources. The "LTwiki"
(www.ltwiki.org) is where I usually go when I have questions about the
Help pages. Unfortunately, the LTwiki also doesn't show a table
option for the CCVS. That leads me to believe that you can't use a
table with the standard CCVS element.
But LTspice's B-elements can do that and much more.
Here is from the Help page for B-elements:
table(x,a,b,c,d,...) Interpolate a value for x based on a look up
table given as a set of pairs of points.
Start with a Bv symbol, then right-click on "V=F(...)" and edit it. I
think (but could be wrong) it should look like this when you are done:
V=Table( I(V4), 0mA, 0V, 1mA, 1mV, 2mA, 1.9mV, 3mA, 2.5mV ...)
where I(V4) means the current measured through V4 (this is your
controlling current), and the pairs that come next, are the (current,
voltage) pairs that you measured.
I have rarely used the Table() functions in LTspice, so please excuse
my inexperience with them.
Regards,
Andy