[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FEMM scripting bug?



If I run this code in a scripting loop,
the value passed into FEMM appears to 
get truncated to an integer value.
e.g. 4 loops @ 1 amp, 4 loops @ 2 amps etc.

Can anyone confirm or correct my script?

m=0.0
for n=1,50 do
analyse()
runpost("Coil_3post.lua")
if (n<50) then
m=m+0.25
modifypointprop("Coil 2 pos",3,m)
modifypointprop("Coil 2 neg",3,-m)	
end
end