Hello Guest it is March 28, 2024, 05:29:52 AM

Author Topic: Lua loop speed?  (Read 2029 times)

0 Members and 1 Guest are viewing this topic.

Lua loop speed?
« on: October 24, 2015, 05:01:20 PM »
Mach3 seemed contained to a 10hz loop for VB scripts and brains

... Does mach4 have an official loop speed?

Is it a function of CPU speed or a set loop rate?

Thanks

Rob
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Lua loop speed?
« Reply #1 on: October 24, 2015, 05:35:13 PM »
As far as ive worked out the lua enviroment inc plc is a wxEvent class and is set in your screen editor, I think default is set at 40ms.

Forgot to add 10hz is the equiv to roughly 100ms

DazTheGas
« Last Edit: October 24, 2015, 05:49:24 PM by DazTheGas »
New For 2022 - Instagram: dazthegas

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Lua loop speed?
« Reply #2 on: October 24, 2015, 05:57:17 PM »
ok ive just checked and its 50, but this can be changed to suit.

DazTheGas
New For 2022 - Instagram: dazthegas
Re: Lua loop speed?
« Reply #3 on: October 24, 2015, 06:38:28 PM »
Thanks Daz, much appreciated

(found the Mach4 scripting manual.... [pg 11]
http://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Scripting%20Manual.pdf
 bit in there but doesn't explain what the implications could be of making the loop a little faster .... say 100hz or 50hz [I'll give it a go when I'm back next week).

getting enthusiastic for the impending ESS plugin with these new functions [need M62 & M63 working too! + thc (i can live in hope for the next plugin update)]

Rob
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”