Post Go back to editing

Large table function in LTSpice 24

Category: Software
Product Number: LTspice
Software Version: 24.0.12

I have a large table function in LTSpice

.func Temp_PT1000_NOM(R) {table(R, 185.2008 , -200, 185.6331169 , -199.9 ,  ...  2809.775 , 500)}

in an external file this is 148kB.

Every time I run a simulation with this function LTSpice 24 is crashing. In LTSpice 17 this worked. 

I have now reduced the entries in the table (external file is 6kB) and now it works.

.func Temp_PT1000_NOM(R) {table(R, 723.3453393, -70.0, 727.3455906, -69.0, ... 1758.56, 200.0)}

Could you tell me why it works unter LTSpice 17 and not under LTSpice 24?

.func Temp_PT1000_NOM(R) {table(R, 723.3453393, -70.0, 727.3455906, -69.0, 731.3442748, -68.0, 735.3414012, -67.0, 739.3369791, -66.0, 743.3310177, -65.0, 747.3235261, -64.0, 751.3145132, -63.0, 755.303988, -62.0, 759.2919592, -61.0, 763.2784355, -60.0, 767.2634255, -59.0, 771.2469377, -58.0, 775.2289805, -57.0, 779.2095621, -56.0, 783.1886908, -55.0, 787.1663745, -54.0, 791.1426214, -53.0, 795.1174392, -52.0, 799.0908358, -51.0, 803.0628187, -50.0, 807.0333958, -49.0, 811.0025743, -48.0, 814.9703616, -47.0, 818.9367652, -46.0, 822.901792, -45.0, 826.8654492, -44.0, 830.8277439, -43.0, 834.7886828, -42.0, 838.7482727, -41.0, 842.7065203, -40.0, 846.6634322, -39.0, 850.6190149, -38.0, 854.5732747, -37.0, 858.526218, -36.0, 862.4778508, -35.0, 866.4281792, -34.0, 870.3772093, -33.0, 874.324947, -32.0, 878.2713978, -31.0, 882.2165677, -30.0, 886.160462, -29.0, 890.1030864, -28.0, 894.0444461, -27.0, 897.9845464, -26.0, 901.9233926, -25.0, 905.8609896, -24.0, 909.7973425, -23.0, 913.732456, -22.0, 917.6663351, -21.0, 921.5989843, -20.0, 925.5304082, -19.0, 929.4606114, -18.0, 933.389598, -17.0, 937.3173725, -16.0, 941.243939, -15.0, 945.1693015, -14.0, 949.093464, -13.0, 953.0164304, -12.0, 956.9382045, -11.0, 960.8587899, -10.0, 964.7781901, -9.0, 968.6964087, -8.0, 972.613449, -7.0, 976.5293142, -6.0, 980.4440076, -5.0, 984.3575322, -4.0, 988.2698909, -3.0, 992.1810866, -2.0, 996.0911221, -1.0, 1000.0, 0.0, 1003.907722, 1.0, 1007.81429, 2.0, 1011.719702, 3.0, 1015.62396, 4.0, 1019.527062, 5.0, 1023.42901, 6.0, 1027.329802, 7.0, 1031.22944, 8.0, 1035.127922, 9.0, 1039.02525, 10.0, 1042.921422, 11.0, 1046.81644, 12.0, 1050.710302, 13.0, 1054.60301, 14.0, 1058.494562, 15.0, 1062.38496, 16.0, 1066.274202, 17.0, 1070.16229, 18.0, 1074.049222, 19.0, 1077.935, 20.0, 1081.819622, 21.0, 1085.70309, 22.0, 1089.585402, 23.0, 1093.46656, 24.0, 1097.346562, 25.0, 1101.22541, 26.0, 1105.103102, 27.0, 1108.97964, 28.0, 1112.855022, 29.0, 1116.72925, 30.0, 1120.602322, 31.0, 1124.47424, 32.0, 1128.345002, 33.0, 1132.21461, 34.0, 1136.083062, 35.0, 1139.95036, 36.0, 1143.816502, 37.0, 1147.68149, 38.0, 1151.545322, 39.0, 1155.408, 40.0, 1159.269522, 41.0, 1163.12989, 42.0, 1166.989102, 43.0, 1170.84716, 44.0, 1174.704062, 45.0, 1178.55981, 46.0, 1182.414402, 47.0, 1186.26784, 48.0, 1190.120122, 49.0, 1193.97125, 50.0, 1197.821222, 51.0, 1201.67004, 52.0, 1205.517702, 53.0, 1209.36421, 54.0, 1213.209562, 55.0, 1217.05376, 56.0, 1220.896802, 57.0, 1224.73869, 58.0, 1228.579422, 59.0, 1232.419, 60.0, 1236.257422, 61.0, 1240.09469, 62.0, 1243.930802, 63.0, 1247.76576, 64.0, 1251.599562, 65.0, 1255.43221, 66.0, 1259.263702, 67.0, 1263.09404, 68.0, 1266.923222, 69.0, 1270.75125, 70.0, 1274.578122, 71.0, 1278.40384, 72.0, 1282.228402, 73.0, 1286.05181, 74.0, 1289.874062, 75.0, 1293.69516, 76.0, 1297.515102, 77.0, 1301.33389, 78.0, 1305.151522, 79.0, 1308.968, 80.0, 1312.783322, 81.0, 1316.59749, 82.0, 1320.410502, 83.0, 1324.22236, 84.0, 1328.033062, 85.0, 1331.84261, 86.0, 1335.651002, 87.0, 1339.45824, 88.0, 1343.264322, 89.0, 1347.06925, 90.0, 1350.873022, 91.0, 1354.67564, 92.0, 1358.477102, 93.0, 1362.27741, 94.0, 1366.076562, 95.0, 1369.87456, 96.0, 1373.671402, 97.0, 1377.46709, 98.0, 1381.261622, 99.0, 1385.055, 100.0, 1388.847222, 101.0, 1392.63829, 102.0, 1396.428202, 103.0, 1400.21696, 104.0, 1404.004562, 105.0, 1407.79101, 106.0, 1411.576302, 107.0, 1415.36044, 108.0, 1419.143422, 109.0, 1422.92525, 110.0, 1426.705922, 111.0, 1430.48544, 112.0, 1434.263802, 113.0, 1438.04101, 114.0, 1441.817062, 115.0, 1445.59196, 116.0, 1449.365702, 117.0, 1453.13829, 118.0, 1456.909722, 119.0, 1460.68, 120.0, 1464.449122, 121.0, 1468.21709, 122.0, 1471.983902, 123.0, 1475.74956, 124.0, 1479.514062, 125.0, 1483.27741, 126.0, 1487.039602, 127.0, 1490.80064, 128.0, 1494.560522, 129.0, 1498.31925, 130.0, 1502.076822, 131.0, 1505.83324, 132.0, 1509.588502, 133.0, 1513.34261, 134.0, 1517.095562, 135.0, 1520.84736, 136.0, 1524.598002, 137.0, 1528.34749, 138.0, 1532.095822, 139.0, 1535.843, 140.0, 1539.589022, 141.0, 1543.33389, 142.0, 1547.077602, 143.0, 1550.82016, 144.0, 1554.561562, 145.0, 1558.30181, 146.0, 1562.040902, 147.0, 1565.77884, 148.0, 1569.515622, 149.0, 1573.25125, 150.0, 1576.985722, 151.0, 1580.71904, 152.0, 1584.451202, 153.0, 1588.18221, 154.0, 1591.912062, 155.0, 1595.64076, 156.0, 1599.368302, 157.0, 1603.09469, 158.0, 1606.819922, 159.0, 1610.544, 160.0, 1614.266922, 161.0, 1617.98869, 162.0, 1621.709302, 163.0, 1625.42876, 164.0, 1629.147062, 165.0, 1632.86421, 166.0, 1636.580202, 167.0, 1640.29504, 168.0, 1644.008722, 169.0, 1647.72125, 170.0, 1651.432622, 171.0, 1655.14284, 172.0, 1658.851902, 173.0, 1662.55981, 174.0, 1666.266562, 175.0, 1669.97216, 176.0, 1673.676602, 177.0, 1677.37989, 178.0, 1681.082022, 179.0, 1684.783, 180.0, 1688.482822, 181.0, 1692.18149, 182.0, 1695.879002, 183.0, 1699.57536, 184.0, 1703.270562, 185.0, 1706.96461, 186.0, 1710.657502, 187.0, 1714.34924, 188.0, 1718.039822, 189.0, 1721.72925, 190.0, 1725.417522, 191.0, 1729.10464, 192.0, 1732.790602, 193.0, 1736.47541, 194.0, 1740.159062, 195.0, 1743.84156, 196.0, 1747.522902, 197.0, 1751.20309, 198.0, 1754.882122, 199.0, 1758.56, 200.0)}

PT1000.txt

Func_test.asc



Better visibility
[edited by: TobiGroeber at 9:02 AM (GMT -4) on 15 Oct 2024]