On Thu, Mar 13, 2025 at 09:50 PM, <jad700@...> wrote:
Hello? ... I need a BV source to use a TABLE to look up a response.? This works if the controlling variable is a .param ( Static for the full sim)? but I need the BV to be dynamic ( Use the TABLE lookup in response to a changing voltage and respond with the voltage result )? I have tried to do this, but no success yet.? I uploaded? LTspice_TableTest.zip to the temp folder.? Thank you so very much for any help you can provide!!? JD
The example in the schematic you uploaded does not make sense.? The syntax is wrong, and that is true even with the Table() function depending on a parameter KK.
?
The answer to your question is: what you want to do works!? Yes, the Table() function can depend on a voltage too.? The reason you had no success is that you did not use the Table() function correctly.
?
Do the following:
- Fix the Table() function.
- In your example, it is short enough so you could paste all the values into the Table() function itself.
- Verify that it works using parameter {KK}.
- Change the index parameter from "{KK}" to "V(SET)".
- Verify that it still works.
?
If you need to have the list of Table() values in an external file, you'll have to do it differently than what you tried to do.? One way to do that (prior to? LTspice V24.1.x, that is), is to write the B1 element and the .INC command as two consecutive SPICE Directive lines.? In other words, you can't use the schematic symbol for this B-source; it must be in a SPICE Directive - immediately followed by the .INC command.? Something like this:
B1 OUT 0 V=V=Table(V(set),
.inc table_R1.txt
which must be both in the same SPICE Directive on the schematic.? (I did not verify that this works, but I've seen others doing that.)? Also, your file table_R1.txt needs some fixing up.? Get rid of the line with the "+ n".
?
Andy
?