0
\$\begingroup\$

I am trying to simulate an electrical model (Mason Model) of piezoelectric system in LTSpice. So, I use parameters and formulas to evaluate the value of the passive elements in my circuit.

I use the following eq. for one of my capacitor:

C = {Zo}\{cos({Tou}*{t})}

which returns an error saying:

Error on line 9 : c3 p001 n007  63262.1256016315 \ 0.876872546720567 
 Unknown parameter "\"

I also use 1/{f} for calculating the on time of my pulse signal but that seems to work just fine. Am I missing to define a library?

\$\endgroup\$
5
  • 1
    \$\begingroup\$ already tried {1/f}? \$\endgroup\$
    – Unknown123
    Commented Apr 25, 2019 at 23:25
  • \$\begingroup\$ To extend a bit on @Unknown123's comment, why would you use \` after trying the normal /? \$\endgroup\$ Commented Apr 26, 2019 at 13:37
  • \$\begingroup\$ @Unknown123 1/{f} or {1/f} doesn't show an error but its the expression from C = {Zo}\{cos({Tou}*{t})} is the problem \$\endgroup\$
    – Akki
    Commented Apr 30, 2019 at 15:31
  • \$\begingroup\$ @aconcernedcitizen results: Error on line 9 : c3 p001 n007 63262.1256016315 / 0.876872546720567 Unknown parameter "/" Error on line 9 : c3 p001 n007 63262.1256016315 ` 0.876872546720567 Unknown parameter "`" \$\endgroup\$
    – Akki
    Commented Apr 30, 2019 at 15:32
  • \$\begingroup\$ @Akki Pardon for my indirect explanation. That's not my point actually. I mean you should know when you should wrap all of the equation using curly brackets and when you should not. Read here: .Param and Curly Brackets \$\endgroup\$
    – Unknown123
    Commented May 1, 2019 at 4:29

1 Answer 1

2
\$\begingroup\$

Change your \ to a / if you want to do division.

As far as I know, \ has no meaning in LTSpice, so it's not surprising it gives an error message about something being "unknown" when you use this symbol.

Edit

Based on comments, the actual problem is that the expression must be surrounded by { and }.

\$\endgroup\$
3
  • \$\begingroup\$ Yes, tried changing the symbols. Still the same error ' Unknown parameter "/" ' \$\endgroup\$
    – Akki
    Commented Apr 30, 2019 at 15:27
  • \$\begingroup\$ @Akki, did you try wrapping the whole thing in { and }? \$\endgroup\$
    – The Photon
    Commented Apr 30, 2019 at 15:39
  • \$\begingroup\$ Yes, That worked! \$\endgroup\$
    – Akki
    Commented Apr 30, 2019 at 15:55

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.