Re: MacOS directive .func does not work


 

On 07/12/2024 06:33, RomanS. via groups.io wrote:
I have circuit which uses: .func myf(nom,tol) (nom+nom*(gauss(tol/5)) 
and a resistor which has a value {myf(400,0.1)} 
Besides these two I have a voltage source and I can simulate this circuit on a PC. However, on MacOS it holds simulation with: Missing model definition for MYF.
 
On both computers I am using the latest version of LTspice.
Is this a known bug?
Another thing: since you have no time-varying dependency in your function, you could simply define your component values as .params, which are evaluated before analysis, thus avoiding the need for another .func, e.g.:

R1 N001 0 {R1val}
.param tol 0.1
.param Rnom 400
.param R1val Rnom*(1+gauss(tol/5))

--
Regards,
Tony

Приєднайтеся до {LTspice@groups.io, щоб автоматично отримувати всі повідомлення групи.