Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:06:42 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Understanding the Wizard structure.
Pages: 1   Go Down
Print
Author Topic: Understanding the Wizard structure.  (Read 1185 times)
0 Members and 1 Guest are viewing this topic.
Bertho
Active Member

Offline Offline

Posts: 67


View Profile
« on: September 04, 2008, 02:40:52 AM »

I have been studying the Digitize Wizard to learn how to write my own.  I understand the code section but I am missing some obvious steps:  There are sections of binary code in the beginning and at the end.  Where do they come from and how are the sections linked.  There got to be some obvious help and information available.  Where should I go looking to learn more?  TIA
Bertho
Logged
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #1 on: September 05, 2008, 08:26:06 PM »

Where are you seeing any binary code? That should not happen using any of the right tools.

A wizard is simply a screen set, with buttons that do whatever is needed. The screen set is designed and edited with the Screen4 program. The button code is written and edited by opening the screen in Mach, then selecting the Operator menu then Edit Button Script.

Logged
Bertho
Active Member

Offline Offline

Posts: 67


View Profile
« Reply #2 on: September 05, 2008, 09:07:57 PM »

Thanks Ron for taking the time.
I am trying to learn and understand from an example so I opened Digitze.set in a regular text editor.  I see the top section with a mixture of text and binary, the center section with the actual code generating the G-codes and at the end there is another mixed section.

I am obviously missing the big picture and I will look at the Screen4 program you mention.

The “Customize Mach-2” manual discusses the digitizer as an example but it only shows the center section and nothing about the whole procedure.
Have a great weekend,
Bertho
Logged
Bodini
Active Member

Offline Offline

Posts: 112



View Profile
« Reply #3 on: September 06, 2008, 06:52:21 PM »

".set" files are Screen4 files.  You're interested in the code, i assume.  To see the code, run the wizard in Mach (not Screen4).  When the wizard is open, [pull-down] Operator>Edit button Script.  Then click the button that says "create and load g-code file".  The code will pop up in the 'script editor'.

-Nick
Logged
Bertho
Active Member

Offline Offline

Posts: 67


View Profile
« Reply #4 on: September 07, 2008, 04:39:05 AM »

Thanks Nick,
That was the obvious step that I was missing.  I tried too hard and looked at the generated code not using the script editor.
Bertho
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!