Back
[00:04:13] -!- ve7it [ve7it!~LawrenceG@S0106001c10b7770f.pk.shawcable.net] has joined #linuxcnc-devel
[00:31:57] -!- tjb1 has quit [Quit: tjb1]
[00:36:43] -!- ve7it has quit [Remote host closed the connection]
[00:37:25] -!- andypugh has quit [Quit: andypugh]
[00:39:17] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[00:40:15] -!- Guthur has quit [Remote host closed the connection]
[00:45:40] -!- rob_h has quit [Ping timeout: 248 seconds]
[00:51:25] -!- erictheise has quit [Quit: erictheise]
[01:01:11] -!- draig has quit [Quit: draig]
[01:09:40] -!- gmagno has quit [Ping timeout: 248 seconds]
[01:13:04] -!- delkin has quit [Quit: On my way.]
[01:52:03] -!- alpha1125 has quit [Quit: Computer has gone to sleep.]
[01:52:16] -!- tjb1 has quit [Client Quit]
[01:58:17] <jepler> I don't think you've correctly analyzed the problem. An s32 can count up to about 2 billion and a __u32 can count up to about 4 billion. That's 68 and 136 years, respectively.
[01:59:40] <jepler> However, I don't immediately spot what part will overflow. "double totalnsec" will only begin to lose precision after about 2^53 nanoseconds, which is 104 days; but its ability to count up accurately won't be seriously compromised until about 2^53microseconds, which is 285 years
[02:01:06] -!- joe9 [joe9!~joe9@c-24-126-150-243.hsd1.ga.comcast.net] has joined #linuxcnc-devel
[02:03:13] <jepler> 84 hours = (totalseconds / 3600) % 60;
[02:03:25] <jepler> this line will make 'hours' go back to 0 after 60 hours...
[02:05:35] -!- Thetawaves has quit [Quit: Leaving]
[02:25:33] -!- 17SABJW2B has quit [Ping timeout: 245 seconds]
[02:32:43] -!- joe9 has quit [Quit: leaving]
[03:05:37] -!- tjb1 has quit [Quit: tjb1]
[03:19:16] -!- The_Ball_ has quit [Ping timeout: 265 seconds]
[03:20:29] -!- tjb1 has quit [Client Quit]
[03:30:41] -!- draig has quit [Quit: draig]
[03:32:17] -!- gmagno has quit [Quit: Saindo]
[04:20:11] -!- factor has quit [Read error: Connection reset by peer]
[04:24:56] -!- r00t-Shed has quit [Ping timeout: 244 seconds]
[04:28:08] -!- tjb1 has quit [Quit: tjb1]
[04:35:16] -!- mcenter has quit [Remote host closed the connection]
[04:54:36] -!- Valen has quit [Quit: Leaving.]
[05:03:40] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[05:46:14] -!- draig has quit [Quit: draig]
[05:57:11] -!- dlcervan_ has quit [Remote host closed the connection]
[06:23:35] -!- tjb1 has quit [Quit: tjb1]
[06:56:43] -!- micges [micges!~micges@djp139.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[07:02:15] -!- pjm has quit [Read error: Connection reset by peer]
[07:12:40] -!- samkan has quit [Quit: Ex-Chat]
[07:53:03] -!- toner has quit [Ping timeout: 245 seconds]
[08:02:38] -!- mk0 has quit [Ping timeout: 240 seconds]
[08:07:52] -!- Komzpa has quit [*.net *.split]
[08:07:52] -!- shurshur has quit [*.net *.split]
[08:07:52] -!- jdh has quit [*.net *.split]
[08:07:52] -!- djinni`_ has quit [*.net *.split]
[08:07:52] -!- RagingComputer has quit [*.net *.split]
[08:07:54] shurshur_ is now known as shurshur
[08:10:50] -!- bassogigas has quit [Quit: LinuxCNC 2.5.0!]
[08:13:00] -!- Komzpa has quit [*.net *.split]
[08:13:01] -!- jdh has quit [*.net *.split]
[08:13:01] -!- djinni`_ has quit [*.net *.split]
[08:13:01] -!- RagingComputer has quit [*.net *.split]
[08:14:24] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[08:24:38] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[08:39:31] -!- yangchang has quit [Ping timeout: 246 seconds]
[08:49:44] -!- rob_h [rob_h!~rob_h@5e0890f8.bb.sky.com] has joined #linuxcnc-devel
[09:05:23] -!- sumpfralle has quit [Client Quit]
[09:06:13] -!- JT-Shop has quit [Read error: Connection timed out]
[09:07:16] -!- JT-Shop [JT-Shop!~John@184.20.140.167] has joined #linuxcnc-devel
[09:11:19] -!- djinni`_ has quit [Ping timeout: 260 seconds]
[09:12:07] -!- alexis has quit [Ping timeout: 240 seconds]
[09:54:21] -!- phantoxe has quit [Remote host closed the connection]
[10:46:15] -!- Mourner has quit [Ping timeout: 245 seconds]
[10:59:42] -!- ewidance [ewidance!~ewidance@LNantes-156-75-20-242.w82-127.abo.wanadoo.fr] has joined #linuxcnc-devel
[11:11:56] -!- geohacker has quit [Remote host closed the connection]
[11:15:41] -!- sumpfralle1 has quit [Ping timeout: 244 seconds]
[11:19:49] -!- peepsalot has quit [Ping timeout: 244 seconds]
[11:39:07] <jthornton> hi jepler it reset after a little over an hour so there must be something else wrong with my code
[12:17:38] -!- vladimirek has quit [Remote host closed the connection]
[12:22:18] -!- yangchang has quit [Read error: Connection reset by peer]
[12:23:23] -!- yangchang has quit [Read error: Connection reset by peer]
[12:23:56] -!- paresh has quit [Read error: Connection reset by peer]
[13:08:08] -!- chillly has quit [Quit: Leaving]
[13:08:27] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[13:19:43] -!- Mourner has quit [Quit: Page closed]
[13:23:37] -!- delkin has quit [Quit: On my way.]
[13:24:20] -!- alpha1125 has quit [Ping timeout: 244 seconds]
[13:32:04] -!- micges has quit [Ping timeout: 248 seconds]
[13:36:25] -!- alpha1125 has quit [Quit: Textual IRC Client: www.textualapp.com]
[13:36:47] -!- joe9 [joe9!~joe9@c-24-126-150-243.hsd1.ga.comcast.net] has joined #linuxcnc-devel
[13:42:15] <jepler> - totalnsec = totalnsec + period;
[13:42:15] <jepler> + totalnsec = totalnsec + period * 1000;
[13:42:26] <jepler> I ran on a sim setup with this change, so that it counts 1000x as fast as it should
[13:42:32] <jepler> but I didn't observe a "reset" after an hour
[13:43:16] <jepler> tested in halrun with 'setp time.0.start 1', , not with the halui.program.is-running pin.
[13:47:49] <JT-Shop-> I'm running it on sim too and it's been running for a couple of hours
[13:48:03] <JT-Shop-> using setp time.0.start 1
[13:53:16] -!- phantoxeD has quit [Ping timeout: 244 seconds]
[13:53:27] -!- ewidance [ewidance!~ewidance@LNantes-156-75-20-242.w82-127.abo.wanadoo.fr] has parted #linuxcnc-devel
[13:56:27] <jepler> so it seems unlikely but maybe there's a glitch that occurs on halui.program.is-running, which leads to the timer restarting?
[13:56:39] <jepler> if so, you could use halscope and trigger on halui.program.is-running going low
[13:57:14] -!- micges [micges!~micges@djp139.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[13:59:31] <JT-Shop-> ok, I'll set up a test program that will run for a couple of hours and see
[13:59:40] <JT-Shop-> thanks for looking at this
[14:03:23] -!- tjb1 has quit [Quit: tjb1]
[14:04:13] <jepler> sure
[14:06:17] <JT-Shop-> I was running a subroutine so I'll try both as a subroutine and not
[14:06:58] <jepler> so far I've noticed that pausing makes is-running go false
[14:08:59] <JT-Shop-> ah ha I paused the program to clear some swarf
[14:09:12] <JT-Shop-> and didn't even think of that
[14:11:24] <JT-Shop-> I need to add halui.program.is-paused or make halui.program.is-idle what stops the timer
[14:14:52] -!- skunkworks__ [skunkworks__!~chatzilla@str-bb-cable-south-3-102.dsl.airstreamcomm.net] has joined #linuxcnc-devel
[14:18:38] <JT-Shop-> another great mystery solved by jepler :-)
[14:20:06] <skunkworks__> oh - I like a good mystery
[14:20:10] <skunkworks__> logger[psha]:
[14:21:28] -!- ink has quit [Ping timeout: 246 seconds]
[14:39:34] <JT-Shop-> or2ing halui.program.is-running and halui.program.is-paused to time.0.start and the timer keeps timing while paused :-)
[14:44:44] -!- joe9 has quit [Quit: leaving]
[14:45:12] -!- BenceKovi11 [BenceKovi11!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[14:50:17] -!- BenceKovi11 has quit [Read error: Connection reset by peer]
[14:50:44] -!- BenceKovi11 [BenceKovi11!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[14:55:47] -!- BenceKovi12 [BenceKovi12!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[14:56:03] -!- BenceKovi11 has quit [Read error: Connection reset by peer]
[15:09:12] -!- BenceKovi12 has quit [Ping timeout: 256 seconds]
[15:11:10] -!- pingufan has quit [Quit: Konversation terminated!]
[15:12:38] -!- BenceKovi12 [BenceKovi12!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[15:35:09] -!- Gabe_ has quit [Quit: Leaving]
[15:36:33] <jepler> maybe you want the not of is-idle
[15:37:13] -!- MarkusBec has quit [Ping timeout: 245 seconds]
[15:37:19] <jepler> if you use the or of is-running and is-paused, then there's a tiny and probably only theoretical opportunity for a glitch
[15:37:53] <jepler> since halui is a userspace component, that means something running in a realtime thread can see the state of affairs where only some of the pins have been updated to the new value in the userspace component
[15:38:03] -!- BenceKovi13 [BenceKovi13!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[15:38:23] <jepler> i.e., imagine you're switching from paused to running, and then realtime runs between the assignment to *(halui_data->program_is_paused) and the assignment to *(halui_data->program_is_running)
[15:38:32] <jepler> that means they would both be false "at the same time"
[15:38:48] <jepler> this is the sort of thing that you'd probably only observe once in a blue moon
[15:39:43] -!- BenceKovi12 has quit [Ping timeout: 265 seconds]
[15:45:46] -!- ink has quit [Disconnected by services]
[15:47:10] -!- BenceKovi13 has quit [Ping timeout: 252 seconds]
[15:48:23] -!- BenceKovi13 [BenceKovi13!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[15:50:09] <jthornton> thanks jepler that makes better sense than what I came up with and I did have the thought of what if both are off at the same time
[15:52:09] -!- pfred1 has quit [Quit: bbiab have to check for leaks here]
[15:58:10] -!- Roguish [Roguish!~chatzilla@2601:9:1400:73:250:5bff:fe04:62d4] has joined #linuxcnc-devel
[16:06:14] -!- hm2-buildmaster has quit [Ping timeout: 246 seconds]
[16:06:36] -!- linuxcnc-build has quit [Ping timeout: 252 seconds]
[16:14:00] -!- BenceKovi14 [BenceKovi14!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[16:14:17] -!- BenceKovi13 has quit [Ping timeout: 250 seconds]
[16:20:36] -!- Roguish has quit [Read error: Operation timed out]
[16:21:29] -!- Roguish [Roguish!~chatzilla@2601:9:1400:73:250:5bff:fe04:62d4] has joined #linuxcnc-devel
[16:23:06] -!- BenceKovi14 has quit [Ping timeout: 244 seconds]
[16:26:13] -!- joe9 [joe9!~joe9@c-24-126-150-243.hsd1.ga.comcast.net] has joined #linuxcnc-devel
[16:26:32] -!- phantoxe has quit []
[16:27:06] -!- BenceKovi14 [BenceKovi14!~BenceKovi@dhcp-53.r.wlan.bme.hu] has joined #linuxcnc-devel
[16:29:31] -!- BenceKovi15 [BenceKovi15!~BenceKovi@polaris.mogi.bme.hu] has joined #linuxcnc-devel
[16:31:38] -!- johtso has quit [Disconnected by services]
[16:31:56] -!- BenceKovi14 has quit [Ping timeout: 265 seconds]
[16:32:53] -!- joe9 has quit [Quit: leaving]
[16:39:42] <alex4nder> hey
[16:43:42] -!- yangchang has quit [Quit: Leaving]
[16:46:21] -!- r00t-Shed has quit [Ping timeout: 244 seconds]
[16:51:40] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust639.basl.cable.virginmedia.com] has joined #linuxcnc-devel
[16:57:23] <CIA-120> 03jthornton 07v2.5_branch * rc58b74769e37 10/src/hal/components/time.comp: Comp: change description to show how to keep time running when paused
[17:13:59] -!- tjb1 has quit [Quit: tjb1]
[17:19:43] -!- CareBear\ has quit [Remote host closed the connection]
[17:21:38] -!- factor has quit [Read error: Connection reset by peer]
[17:27:03] -!- pronik has quit [Quit: Page closed]
[18:02:54] <jepler> jthornton: did you fix the overflow at 60 hours part? I didn't look at your commit..
[18:15:37] -!- joe9 [joe9!~joe9@c-24-126-150-243.hsd1.ga.comcast.net] has joined #linuxcnc-devel
[18:19:51] -!- tjb1 has quit [Client Quit]
[18:31:12] -!- tjb1 has quit [Client Quit]
[18:53:27] -!- tjb1 has quit [Client Quit]
[18:58:55] <jthornton> jepler, no I just changed the description on that commit
[19:05:13] <jthornton> hmm if I'm using u32 I won't need the modulo part as it will return a u32?
[19:05:20] -!- tjb1 has quit [Quit: tjb1]
[19:05:36] <jthornton> but only for the hours part
[19:06:22] <jthornton> which will be rounded to the nearest hour by having hours = (totalseconds / 3600);
[19:13:48] <CIA-120> 03jthornton 07v2.5_branch * r53eafc0e32f1 10/src/hal/components/time.comp: Comp: fix hours wrapping at 60
[19:14:28] <jthornton> got it jepler thanks
[19:17:46] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[19:23:26] -!- pjm has quit [Quit: TTFO]
[19:28:44] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 13.0/20120601201853]]
[19:35:38] -!- pjm has quit [Read error: Connection reset by peer]
[19:42:20] -!- motioncontrol has quit [Quit: Sto andando via]
[19:43:07] -!- dlcervan_ has quit [Ping timeout: 246 seconds]
[20:21:16] -!- micges has quit [Quit: Leaving]
[20:22:38] -!- tjb1 has quit [Quit: tjb1]
[20:36:24] -!- sumpfralle has quit [Ping timeout: 246 seconds]
[20:47:36] -!- sumpfralle1 has quit [Ping timeout: 246 seconds]
[21:11:37] -!- karavanjo has quit [Remote host closed the connection]
[21:14:11] -!- DJ9DJ has quit [Quit: bye]
[21:20:50] -!- tjb1 has quit [Quit: tjb1]
[21:23:22] -!- sumpfralle has quit [Ping timeout: 265 seconds]
[21:41:46] -!- chillly has quit [Quit: Leaving]
[21:46:07] -!- Loetmichel has quit [Ping timeout: 240 seconds]
[21:49:30] cylly2 is now known as Loetmichel
[21:56:48] -!- taiden has quit [Quit: taiden]
[21:56:58] -!- draig has quit [Quit: draig]
[21:57:28] -!- PCW has quit [Quit: ChatZilla 0.9.88.1 [Firefox 3.6.13/20101203075014]]
[22:00:25] -!- syyl has quit [Quit: Leaving]
[22:13:07] -!- tjb1 has quit [Quit: tjb1]
[22:25:18] -!- dlcervantes has quit [Remote host closed the connection]
[22:27:13] -!- steves_logging [steves_logging!~Steve@wsip-70-168-134-18.dc.dc.cox.net] has parted #linuxcnc-devel
[22:31:45] -!- zzolo has quit [Quit: zzolo]
[22:35:14] -!- steves_logging [steves_logging!~Steve@wsip-70-168-134-18.dc.dc.cox.net] has joined #linuxcnc-devel
[22:43:23] -!- BenceKovi15 has quit [Quit: Nettalk6 - www.ntalk.de]
[22:43:29] -!- taiden has quit [Quit: taiden]
[22:58:10] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[23:05:25] -!- tjb1 has quit [Quit: tjb1]
[23:06:26] -!- WillenCMD has quit [Ping timeout: 252 seconds]
[23:15:58] -!- awallin has quit [Read error: Operation timed out]
[23:17:54] -!- awallin [awallin!awallin@lakka.kapsi.fi] has joined #linuxcnc-devel
[23:48:35] -!- A2Sheds has quit [Quit: puff of smoke]