Hello Guest it is April 25, 2024, 04:09:56 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ya-Nvr-No

131
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 30, 2014, 10:06:11 PM »
Here is a stripped down wizard that is simple...  ::) no shoving intended.
you just have to edit the variables in the script before you run it.
It spits out the data in the history box
No reason anyone cant use this as a template and create their own functional wizards, the data can then be copied and pasted in the gcode editor.
take it all in small doses and it starts to be easier to grasp.
All that fancy Lua code can be overwhelming when all you really need is the value of the calculation

I'd mentioned a couple of times in the past I have no interest selling my Sets. Thanks, but don't need to earn a living, done that.  ;D I get to play now, and do what I desire.

And I have provided loads of code.
It just takes a while to get your head wrapped around it.
Good luck and have fun  8)

132
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 30, 2014, 02:37:33 AM »
I could care less to convince you or anyone else to be programmers, I'm just showing what can be done, for the ones that want to learn some new abilities. Its obvious that Mach4 is not going to be for all or many. That is I suppose unless you buy into a turnkey system provider, like machmotion or wait for someone to develop a system your willing to pay more for. I'm too old to just be mean and ornery any longer, I left my stress with working with people that don't care or have no direction in life.

Again its obvious to me that Mach3 is not going to be upgraded or probably ever bugged fixed. As the powers to be seem to be looking more for industrial retro-fitters to step up to the plate and sell a system with support. Mach3 does most of what the hobbyist ever dreamed of and more, stick with that. I'm sure I will still use it for years too. That does not mean I am not going to learn new skills and do what I can with the limited skill set I have.

Far as LinuxCNC, most fight with using their home PC let alone make them figure out how to work in a whole new OS.

No idea why you feel you have to poo poo something and put it in my thread, If you want to bitch please find somewhere else to share it. :-X

I'm just having fun and learning something new. Hell I don't know, but looks to me Mach4 might go either way, but after 6 years of waiting, going back is not happening for ArtSoft. And knowing what it takes to create a user interface for it, you will be waiting along time before you find someone providing free screen sets. Hell, maybe Brian and his support team is writing you one now. Go beat him up Please.  ;)

133
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 28, 2014, 09:53:06 PM »
Those are the kind of things I get paid good money for ;)

I'm just trying to kick a few of you in the programming genes.

Showing you what can be done, when you spend less time whining  :P

134
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 28, 2014, 06:12:55 PM »
Learned a lesson today from Art, thought id pass it on to all you closet coders.  ::)

its called an Iterated function (where it calls itself, Also called a re-entrant function)

I tested it by writing a short series of functions that read and display the unsorted array (a list of numbers), Sorts it, repacks it and then redisplays it.

But the code is kind of a cool way to see how arrays, bubble sorts and functions work; run it or step thru it to learn.

put in the wizard folder.

135
Too F___ing Cool  8)

I love it, One of those many things I took for granted. (not having an ear for anything other than "dinners on")

Good Job, keep us in the loop with a quick video of it in action please.


136
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 27, 2014, 11:32:06 AM »
Thanks, I'm having fun.

Now the other thing you can do is embed images into a wizard and use them as a popup display for visual help. These can be captured right off the web or use photographs you have for setups, training or reminders. No reason you cant create a series of images to use with forward & reverse buttons.

137
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 27, 2014, 07:15:01 AM »
Now that I created this template, I can start creating all kinds of functional popup Charts.
All by reading a text file separated with commas.

138
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 26, 2014, 01:08:59 PM »
There's another 20+ hours to figure out how to read each cell and then write to the csv file; and add framing features to the spreadsheet grid.
So now its sizable and I can add menu features.

NOTHING but a PITA  ;D
but it is possible

The trick to lua programming is using the debug features like break points (F9) and stepping (F11) and Start/Continue (F5) and saving the file before you run/test it, because it will crash and leave ya hard without a  :-*

I try to save it as a new revision level name and then run it. That way I can always go back to the one that worked.

POS... POS ... POS
 >:D


139
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 25, 2014, 02:38:51 PM »
Here is an example of how to use a function with a nested loop to "get" the cells value, pass it with its cell location to a function that sets colors based on what it is.

Code: [Select]
-- this is found toward the beginning of the wizard file, as it has to have been recognized and read before it can be called
function setcolors(rating,r,c)
    if (rating == "R") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(35,170,35))--green
    elseif (rating == "N") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(240,240,100))--yellow
    elseif (rating == "E") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(240,0,0))--red
    elseif (rating == "G") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(240,240,100))--yellow
    elseif (rating == "F") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(35,170,35))--green
    elseif (rating == "P") then
        LumberChartGrid:SetCellBackgroundColour(r, c, wx.wxColour(100,230,230))--cyan
    elseif (rating == "Weak") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(100,230,230))
    elseif (rating == "Light") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(35,170,35))
    elseif (rating == "Medium") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(150,150,150))
    elseif (rating == "Soft") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(140,240,100))
    elseif (rating == "Strong") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(240,140,100))
    elseif (rating == "Hard") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(0,0,0))--black
    elseif (rating == "Heavy") then
        LumberChartGrid:SetCellTextColour(r, c, wx.wxColour(240,0,0))--red
    end
end

function getcolors()
    local rownum = 0
    local colnum = 0
    local rating = "Ya-Nvr-No"
    for rownum = 0, 20 do --Loop through 21 rows
        for colnum = 2, 16 do --Loop through 15 columns
            local rating = LumberChartGrid:GetCellValue(rownum, colnum)
            setcolors(rating,rownum,colnum) -- set the color
        end
    end
end

--and then this will call the feature so I can use it at load and during editing
getcolors()

140
Mach4 General Discussion / Re: Screen Set Ideas
« on: December 24, 2014, 08:13:16 PM »
Merry Christmas to ALL

Here is a RPM calculator wizard, like I had shown earlier (post #244)

Functional and they are also to show you how they are done.

Happy Holidays