1
Mach4 General Discussion / mcSignalWait
« on: May 22, 2023, 01:42:34 PM »
local dhs= mc.mcSignalWait(0, mc.ISIG_INPUT2, 1, 10);
hreg = mc.mcRegGetHandle(0, "iRegs0/break")
val = mc.mcRegGetValueString(hreg)
val = tonumber(val)
if(val==1) then
return 100
end
if (dhs ~= 0) then--if not rise up in 10 second
end
atach one sample but there some that the single wait just not work
i cant say when but in some cases its just run over ,not check the input and act like the input not ok without wait the second ordered
i think ill reaplace this function with simple loop that cheack input each...500 msec... or something like that
any coment?
hreg = mc.mcRegGetHandle(0, "iRegs0/break")
val = mc.mcRegGetValueString(hreg)
val = tonumber(val)
if(val==1) then
return 100
end
if (dhs ~= 0) then--if not rise up in 10 second
end
atach one sample but there some that the single wait just not work
i cant say when but in some cases its just run over ,not check the input and act like the input not ok without wait the second ordered
i think ill reaplace this function with simple loop that cheack input each...500 msec... or something like that
any coment?