Converting LTspice model to Qspice

Hello,
I have LTspice model that i am duplicating the same in Qspice but it shows error using E sources and table. Can somebody help me duplicating in Qspice with suggested corrections.
I am attaching LTspice Model and Qspice Model.
LTspice : Lithium Batt Spice Sim - Google Drive
Qspice version 1:
TEMP.qsch (9.4 KB)
Qspice version 2:
Use of Behaviour source than E1 source.
TEMP v2.qsch (8.8 KB)

Also please suggest how to to add lookup data in Qspice?
I also tried exporting the netlist of LTspice to Qspice. It throws the same error.

Warning: Ignoring unknown instance parameter β€œTABLE” of device E1.
Warning: Unexpected number, β€œ0”, in device E1.
Warning: Unexpected number, β€œ0”, in device E1.
Warning: Unexpected number, β€œ0.1”, in device E1.
Warning: Unexpected number, β€œ0.25”, in device E1.
Warning: Unexpected number, β€œ0.3”, in device E1.
Warning: Unexpected number, β€œ0.65”, in device E1.
Warning: Unexpected number, β€œ0.4”, in device E1.
Warning: Unexpected number, β€œ0.77”, in device E1.
Warning: Unexpected number, β€œ0.5”, in device E1.
Warning: Unexpected number, β€œ0.79”, in device E1.
Warning: Unexpected number, β€œ0.6”, in device E1.
Warning: Unexpected number, β€œ0.8”, in device E1.
Warning: Unexpected number, β€œ0.7”, in device E1.
Warning: Unexpected number, β€œ0.82”, in device E1.
Warning: Unexpected number, β€œ0.8”, in device E1.
Warning: Unexpected number, β€œ0.85”, in device E1.
Warning: Unexpected number, β€œ0.9”, in device E1.
Warning: Unexpected number, β€œ0.9”, in device E1.
Warning: Unexpected number, β€œ1”, in device E1.
Warning: Unexpected number, β€œ1”, in device E1.

Fatal error: E1: Gain was not specified.

Thanks
__Mike

It seems Qspice must have comma between data in table() function.
TEMP-addcomma.qsch (9.4 KB)

However, it seems currently E-source with table() has an issue, and here is with B-source to replicate LTspice simulation result as a temporary solution.
TEMP-Bsource.qsch (10.3 KB)

1 Like

2 Likes

Update to latest version of Qspice, and E-source is now supported with LTspice table syntax.

TEMP-Esource.qsch (10.3 KB)

2 Likes

Thanks! Appreciate your efforts.