Hello
Guest
it is
November 22, 2024, 08:20:32 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
Lua loop speed?
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Lua loop speed? (Read 3369 times)
0 Members and 1 Guest are viewing this topic.
robertspark
595
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
Logged
Rob
Albert Einstein ―
“If you can't explain it to a six year old, you don't understand it yourself.”
DazTheGas
778
DazTheGas
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
»
Logged
New For 2022 - Instagram: dazthegas
DazTheGas
778
DazTheGas
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
Logged
New For 2022 - Instagram: dazthegas
robertspark
595
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
Logged
Rob
Albert Einstein ―
“If you can't explain it to a six year old, you don't understand it yourself.”
Print
Pages:
1
Go Up
« previous
next »