Hello Guest it is July 21, 2019, 09:38:45 AM

Author Topic: Quicky Wizard and/or Macro variable value viewer function.  (Read 2290 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,231 2,231
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Quicky Wizard and/or Macro variable value viewer function.
« on: February 23, 2015, 03:45:49 PM »
This is a simple Variable value displaying function, that you can display the
values of your variable that are in you Wizard or Macro as they occur.
it will default to a wxMessageBox display or optional MachErr.

The wxMessagebox is used since it is modal, and "stops"
    the program from continuing till you click the OK button.
    The wxMessageBox is the default behaviour, but you can add
    an optional "1" as a third parameter which will send it to
    Mach Error, which is NOT model. So, if you have this function
    in a series it will log to the error history box, but only the
    last error will show in the Mach error.

    Params:
        1st Param is the Variables Name as a String, i.e. myvar would be "myvar".
        2cd Param is the Variable itself, i.e. you would put myvar as param #2.
        3rd Param is optional, and if a 1 is used, will send the data to Mach Err,
        if there is nothing for a 3rd param or other than 1 it will default to
        display in the wxMessageBox.
        NOTE: The wxMessageBox will sometimes appear BEHIND your Mach 4 window!

the .mcs file is setup as a Macro for your testing to see how it works.

Happy Debugging,

Scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline BR549

*
  •  6,874 6,874
    • View Profile
Re: Quicky Wizard and/or Macro variable value viewer function.
« Reply #1 on: February 23, 2015, 04:16:04 PM »
Just a Question on that one .COULD the results be piped into the top left corner of the  toolpath dispay ??

(;-) TP

Offline poppabear

*
  • *
  •  2,231 2,231
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Quicky Wizard and/or Macro variable value viewer function.
« Reply #2 on: February 23, 2015, 10:05:59 PM »
You have the Source Obi-wan, modify it as you see fit.
Or... as the Hackers say, "Use the source Luke".

Scott
« Last Edit: February 24, 2015, 06:53:13 PM by poppabear »
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/