Hi guys,
I have a complex .op with control of a number of switches and component values on a simple selection for a parameter CTRL which can be 1, 2, 3 or 4. I'm doing this with statements like:
.param V1=table(CTRL, 1, 0V, 2, 0V, 3, 5V, 4, 5V)
to switch for, for example, CTRL==(1 OR 2) or (3 OR 4). (Yes it simplifies but there are other combinations elsewhere.) I would like to include another parameter say BST as 0 or 1 to that. It currently means that I have to do the following:
.param V1=table(CTRL, 1, 0V, 2, 0V, 3, 5V, 4, 5V, 5, 5V, 6, 0V, 7, 5V, 8, 0V)
I now need 8 values to represent all of the possible combinations. Of course it is sensible that I should simply act on a logical combination of the two parameters using something like AND(CTRL==1, BST==0). Is there any way this is possible in LTSpice?
I have read the manual and can't find anything, likewise I've spent a day looking on the internet and can find advanced and undocumented procedures and functions but nothing that seems to touch on this.
I have a complex .op with control of a number of switches and component values on a simple selection for a parameter CTRL which can be 1, 2, 3 or 4. I'm doing this with statements like:
.param V1=table(CTRL, 1, 0V, 2, 0V, 3, 5V, 4, 5V)
to switch for, for example, CTRL==(1 OR 2) or (3 OR 4). (Yes it simplifies but there are other combinations elsewhere.) I would like to include another parameter say BST as 0 or 1 to that. It currently means that I have to do the following:
.param V1=table(CTRL, 1, 0V, 2, 0V, 3, 5V, 4, 5V, 5, 5V, 6, 0V, 7, 5V, 8, 0V)
I now need 8 values to represent all of the possible combinations. Of course it is sensible that I should simply act on a logical combination of the two parameters using something like AND(CTRL==1, BST==0). Is there any way this is possible in LTSpice?
I have read the manual and can't find anything, likewise I've spent a day looking on the internet and can find advanced and undocumented procedures and functions but nothing that seems to touch on this.