Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Use a TABLE function in a BV to make a custom defined function.
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 |
On Thu, Mar 13, 2025 at 09:50 PM, <jad700@...> wrote:
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:
?
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:
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
?
|
¿ªÔÆÌåÓýOn 14/03/2025 03:38, Andy I via
groups.io wrote:
I just uploaded "LTspice_TableTest_AI.zip" to the Temp folder.? It corrects your Bv source with the Table() function, and it shows that it works to refer to the voltage V(SET) instead of a fixed parameter, as the index to the table's values.Be aware that this BV table syntax is broken in LTspice 24.1.x at the moment. We have been assured that it will be fixed in 24.1.6, but we don't know when that will happen. --
Regards, Tony |
to navigate to use esc to dismiss