This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Macro wizard error message



Hello! I am Gerardo. I was making a model  (from .cir file), compile successfully with netlist editor, but when I run macro wizard appear this message:"Invalid function name: line 20". Somebody can explain me. Thank you!

* Library of Linear Optocoupler IL300
* Copyright VISHAY, Inc. 2019 All Rights Reserved.
*
* Default K1 = 0.012, K3 = 1, K2 = K3
* K1 = 0.012 
* Node SYMBOL
*  1 LEDC
*  2 LEDA
*  3 PD1 cathode
*  4 PD1 anode
*  5 PD2 anode
*  6 PD2 cathode
*
*--------------------------------------------------
*
*
.SUBCKT IL300  LEDC LEDA PD1_C PD1_A NC_1 NC_2 PD2_C PD2_A PARAMS: K1=0.012 K3=1
DLED LEDA 10 DEMIT
VV1  10 LEDC 0
FPD1 PD1_C PD1_A VALUE {K1*I(VV1)}
CPD1 PD1_A PD1_C 12P
RD1  PD1_A PD1_C 15G
FPD2 PD2_C PD2_A VALUE {K3*K1*I(VV1)} ;K2=K3*K1
CPD2 PD2_A PD2_C 12P
RD2  PD2_A PD2_C 15G
Rdummy1 NC_1 0 4G
Rdummy2 NC_2 0 4G
.model DEMIT D IS=1.51E-16 N=1.495822 RS=2.624361 BV=5 IBV=1U
+ CJO=15P VJ=1 M=0.5 EG=1.424 TT=500N
.ENDS
*
*==================================================================
*
* Note:
* Although models can be a useful tool in evaluating device performance,
* they cannot model exact device performance under all conditions, nor
* are they intended to replace breadboarding for final verification.
* Models provided by VISHAY Semiconductors GmbH (“Vishay”) do not represent
* all of the specifications and operating characteristics of the product to
* which the model relates. The models attempt to describe the characteristics
* of typical products. The current data sheet information for a given
* product represents the final design guideline and includes actual
* performance specifications. The accuracy, reliability and compatibility
* of models provided by Vishay are not guaranteed or warranted in any way
* and Vishay disclaims liability of any kind whatsoever, including, without
* limitation, liability for quality, performance, merchantability and fitness
* for a particular purpose arising out of the use, or inability to use a model.
* Vishay reserves the right to change models without prior notice.
* The products described herein, including the model and any results produced
* using the model, are subject to the specific disclaimers set forth at www.vishay.com/doc? 91000.
*
*===================================================================