Page 37 of 78

Re: reading Pokeys pins

Posted: Thu Nov 28, 2019 3:45 pm
by gburk
Art

Thanks when ever you get time, I'm trying to get my scripts a little more organized before i post them there all over the place. also hopefully a short video for each one i'm really not good at video's..


Gary 

Re: reading Pokeys pins

Posted: Sun Dec 01, 2019 12:40 pm
by ArtF
Gary:

  I think its working now. The slider should give a message at most 10 times a second when moving.
I will post it tomorrow. There was a serious error in its messaging queue. This may also affect buttons
and some other controls, but I cant see any effect as yet. So Ill put it out tomorrow and we'll see how
it works.

Thx
Art

Re: reading Pokeys pins

Posted: Sun Dec 01, 2019 2:44 pm
by gburk
Art

Will give it a run, if there's a problem I always seem to run into it.. and will let you know..

Gary

Re: reading Pokeys pins

Posted: Mon Dec 02, 2019 2:07 am
by ArtF
Gary:

  New version is online now. It should give proper calls to scripts when controls are changed.

Art

Re: reading Pokeys pins

Posted: Mon Dec 02, 2019 12:18 pm
by gburk
Art

Not sure if its me, the way i am reading the %bar function, seems to lag behind a little..
If i slide the bar from 100% to 40%, and print out the % each time it go's thought the function
when i stop at 40 the last print may show only 47 so almost seems like the slider may be faster
than the function can process and misses some values..
make sense?.

and the values always seem to be a 0.47 always have decimal points

what my goal is to use the percent 0 to 100 and set it to an rpm value say the percent is 20 then that may = 700 rpm.. and so on.

Gary

Re: reading Pokeys pins

Posted: Mon Dec 02, 2019 1:01 pm
by ArtF
Hi Gary:

  It may be the throttling acting up, I didn't want too many messages to swarm the system
so I put in a 100ms timer to limit the traffic to 10 calls per second, but the last call should
still be accurate, so it must be missing messages. Ill set up a variable call and run more tests, I was
only testing using the SlowJog and that has special properties as a systemic global..

  I believe it has two calls it makes, one with percentage and one with the actual value, one is called
as the variable name script, the other as the button name script.

Thx for the test
Art

Re: reading Pokeys pins

Posted: Wed Dec 04, 2019 4:48 am
by gburk
Art

I think I found a small problem with the new version of auggie..

I have a few dialog box's for probing popping up, they worked fine in the last version, but now when I press the button for a dialog to display it runs twice so there is one dialog on top of the other, so if I hit close, it close's the first one, and then I have to close the second one also..

not sure if the %bar has anything to do with this but only change I can think of..

gary

Re: reading Pokeys pins

Posted: Fri Dec 06, 2019 6:49 am
by gburk
Art

Wanted to run another brain storm, i'm thinking about adding..

Do you think it would be better, if I added 3 more buttons and led's that you could change the G31 direction form + to -, led off = + pos direction led on = neg direction for the x y z, i'm not sure if other's would have there directions of travel different than mine, but with the press of a button it would swap the G31 direction in all scripts.. a lot easier that doing each script manually..

Any thought's

Gary

Re: reading Pokeys pins

Posted: Fri Dec 06, 2019 7:54 am
by ArtF
Gary:
I think It'd make a nice addon panel to the panel that now holds the laser3d set and such.
Adding a tab to that isnt difficult and makes it easy to swap to that screen if one wants a
quick probe run for any reason. I do that now when I run laser engravings, just swap to
that panel and use it to zero my passes and such. I could see a quick probe panel similar.

Art

Re: reading Pokeys pins

Posted: Fri Dec 06, 2019 12:49 pm
by gburk
Art

I have added it to my probing panel, so I will have some more testing now..

Did you happen to see what I was saying about the dialog running twice?

I found this only with the newest version of augie, I was attempting a video and showing the Edge probing that has a dialog pop up and during the video I would press a button in the dialog and it should have closed out the dialog.. but I had to close it twice, was strange then I moved the dialog and there was a second one right under it, that's how I found it.

Also when you boot auggie, in previous versions if I hit the script button the last script being edited will display in the window, now the display is empty and you have to reload it form the library...

Gary

Re: reading Pokeys pins

Posted: Sat Dec 07, 2019 4:15 pm
by ArtF
Gary:

Thx, I think maybe I know whats up with that.. Ill check it out tomorrow and fix it up, I suspect my messaging fix for sliders has made the button react twice..

  I like the script being held as well, Ill find out what changed..

Art

Re: reading Pokeys pins

Posted: Sun Dec 08, 2019 6:12 am
by ArtF
Gary :

New version is online. The reason the scripts window wasn't opening is because a recent fixed has caused
it to notice when two or more buttons have the same ID number (11). You need to change the ID of the Aug button,
I made mine 2222 and the Lib button, I made mine 4543 or something. This works because both of those use
their variable names as triggers for action. The Script tab selection uses its name ID as its script selector and
must remain 11.

This appears to fix it up. New version is online.

Art

Re: reading Pokeys pins

Posted: Sun Dec 08, 2019 8:15 am
by gburk
Art

Thanks that fixes the script problem.. but still getting two copies of a dialog loaded with my button press, it works but I have to close the second dialog manually..

What changes were made to auggie I don't see any difference, I went  and changed the ID's then it worked fine..

Gary

Re: reading Pokeys pins

Posted: Sun Dec 08, 2019 8:21 am
by ArtF
Hi Gary:

  The messaging and script calling is pretty complex. I found it was missing slider messages and repairing that
made it sense the duplicated ID numbers which previously went undetected. Inside Auggie I changed a bit of code
related to calling buttons , I was hoping that would fix the double dialog as it made sense.
  I may have screwed up and not included the fix in by build. Ill double check..


Art

Re: reading Pokeys pins

Posted: Sun Dec 08, 2019 8:37 am
by ArtF
Gary:

Redownload. There is a bug in the jog buttons in the most recent versions.

New version is now online as version K.

Art