Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: BR549 on December 10, 2012, 02:26:11 AM

Title: Mach3 CB timers()
Post by: BR549 on December 10, 2012, 02:26:11 AM
Has anyone user the Timer() functions lately. I am getting some strange times from it .

Can someone run this CB code and see what time you get.

SetTimer(10)
Sleep(10000)
MsgBox"" &GetTimer(10)

I should get a time of close to 10 sec BUT I get a return time of .38486666666 secs

Thanks (;-) TP
Title: Re: Mach3 CB timers()
Post by: BR549 on December 10, 2012, 03:07:48 AM
OK NEVER mind I found the problem.  I outsmarted myself.

(;-) TP
Title: Re: Mach3 CB timers()
Post by: sebba on May 31, 2015, 04:30:01 AM
hello,

I'm getting similar values from GetTimer(xx), not seconds...
What was the problem?

Thanks
Title: Re: Mach3 CB timers()
Post by: BR549 on June 01, 2015, 01:06:36 PM
I have no idea . THAT was 3 years ago.

The Timers return milisecs

(;-) TP
Title: Re: Mach3 CB timers()
Post by: sebba on June 04, 2015, 02:06:33 AM
thanks for your reply

but... I don't get a value in milisecs...
GetTimer return a value of 3.0yyyy for an interval of 33 seconds

Quote
Thu - 09:03:47 ---Wait for spindle to reach the requested speed... 0
Thu - 09:04:20 ---Spindle Error! Requested Speed Not Aquired!! Program Execution Aborted! - Line: 9 - 3.02204
Title: Re: Mach3 CB timers()
Post by: BR549 on June 04, 2015, 04:18:27 PM
OK i take that back I just tested it here. It has a resoultion of 13 decimals but displays as seconds.

Mach3 V.062