Hello Guest it is March 29, 2024, 07:17:05 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 - thespindoctor

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
131
The problem is solved.   There was a version of minimal.mcs in the profile subdirectory that was causing the problem so I just deleted it and now all is well.   
Lesson is - don't put wizard files in the profile subdirectory or they will load every time Mach4 boots.

132
Maybe a copy of the minimal widget in another directory is loading.  I will look for and delete.  I hope that is the issue.  It would be nice to load a wizard automatically later if that is an option.

133
That is the wierd problem, the miminal wizard is loading by itself and will not exit.  It persists as a second window when Mach loads. Now it is a permanent fixture.  Howevee the other wizards still run.

134
Mach4 General Discussion / wx.widgets example minimal will not close
« on: April 04, 2017, 09:02:21 AM »
I have the minimal example from widgets loading and running every time I start Mach4 and it will not close even from the task manager.  New widgets that I am trying to author will not start either.
In fact, the minimal app will not close until I close it from the task manager even after exiting Mach4.  Very odd and frustrating.  How can I learn which such obstacles???

Thanks

135
Mach4 General Discussion / How to interrupt a program in Lua
« on: April 02, 2017, 03:00:02 PM »
Making lots of progress with Lua now understanding controlling Gcode including G31, writing values to the probefile, and setting up screens to function.

The program to digitize is working very well but it takes a long time to run and sometimes there is a need to interrupt and start over. 
I tried to look for an axis with enable of false but that did not work.  Estop does work but I have to restart Mach4 since it goes into lockdown mode...

How does one implement a pause or stop condition during a running Lua program.

Thanks

136
Mach4 General Discussion / collecting keyboard input in Lua
« on: April 02, 2017, 02:44:06 PM »
Very confused about use of wx versus Lua programming.  I have looked at the links for Lua docs and the references for widgets -  very complicated!  I would like to use widgets but even the example below is confusing.
How do I edit the code below to make it function.  I just want to be able to input a file name from keyboard.  Is there an easier way to collect keyboard text in Lua?

Quote

function M401()
inst = mc.mcGetInstance();
    -- create the wxFrame window
    mainframe = wx.wxFrame( wx.NULL,          -- no parent
                        wx.wxID_ANY,          -- whatever for wxWindow ID
                        "DummyFrame", -- frame caption
                        wx.wxDefaultPosition, -- place the frame in default position
                        wx.wxDefaultSize,     -- default frame size
                        wx.wxDEFAULT_FRAME_STYLE ) -- use default frame styles

    -- create a panel in the frame
    panel = wx.wxPanel(mainframe, wx.wxID_ANY)--We are not going to show it but we need to have this to use the File dialog

local file = wx.wxFileDialog(panel, "Select Probe File", "", "", "Text files (*.txt)|*.txt|Tap files (*.tap)|*.tap",
                             wx.wxFD_SAVE,wx.wxDefaultPosition,wx.wxDefaultSize, "File Dialog" );
        if(file:ShowModal() == wx.wxID_OK)then
            local path = file:GetPath()   
         --wx.wxMessageBox(tostring(path))
         --[[
         Set the output of the probe points with the format String
         Example:
         X%.3AXIS_X
         will output X<xprobevalue>
         ]]--
         mc.mcCntlProbeFileOpen(inst, path, "X%.3AXIS_X Y%.3AXIS_Y Z%.3AXIS_Z A%.3AXIS_A\r\n", true);
        end

end

if (mc.mcInEditor() == 1) then
    M401()
end



137
Mach4 General Discussion / Re: probing with do loop
« on: April 02, 2017, 01:36:17 PM »
Probing success!

138
Mach4 General Discussion / Re: G31 will run twice only
« on: April 02, 2017, 01:35:47 PM »
Working fine now but not sure what I did to fix it!  Probing!!

139
Mach4 General Discussion / Re: G31
« on: April 02, 2017, 01:35:02 PM »
Working fine now but not sure what I did to fix it!

140
SmoothStepper USB / Re: G31 will run twice only
« on: April 02, 2017, 01:34:17 PM »
Working but not sure what I did different!

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »