Hello Guest it is April 23, 2024, 03:59:20 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 - kc5qoc

Pages: 1 2 »
1
VB and the development of wizards / Re: File selection dialog
« on: August 07, 2006, 01:18:23 PM »
I guess you should not tell on old hacker (in the better sense of the term) that something can not be done  ;)

I have uploaded a file selection script for you to check out. It is not as nice as the one that Mach3 uses to select a g-code file but it works.

It saves the filename in the user variable area (I included the subroutine I use to get it back as well) so other routines can get to it.

The user variable area is GREAT.

Anyway - check it out and have fun  :)



2
I have the shell command working in VB but a word to the wise:
If you have multiple shell command which use the cmd.exe be aware that they all execute in order wheather the previous command is done or not. Thus if one program creates a file that the second is going to use, the file may be in an incomplete state. It varies as to the size of the file being processed. If you wish to do this type of thing use a bat file as this will allow control of the execution.

3
VB and the development of wizards / File selection dialog
« on: July 05, 2006, 11:50:57 AM »
In writing my wizard I need to be able to select a file for processing. I could make the user fill in a textbox but then with a textbox spelling counts and if they are like me  that is problametic (see what I mean).

Does anyone have a VB script to select a file ? Kind of like the one that appears when you load a G-Code file ?
I read the Enable documentation and being rusty to say the least at VB, I would sure appreciate any and all help.

Second Question:  - Is there a way to extract the text associated with a UserLabelXX ?

Thanks in advance.

4
VB and the development of wizards / Re: Calling a specific Wizard
« on: June 29, 2006, 11:07:07 AM »
I tried what you said - call LoadWizard("wizard")

I created a button called "Call Wizard" on my screen which I have added to 1024.set and saved as a new name.
The VB Script for the button is call LoadWizard("Wizard")

On initially starting up of Mach3 (1.90.x) I do the mandatory EStop reset and then select my screen and press the call wizard button - it does not work.

If I go back to the first screen and select the button "load wizard" - and load any wizard - and exit out of that wizard and then go to my screen and my button works fine. Seems like something gets initialized when the "Load Wizard" button is pressed. A call to loadwizard() without initializing that something does not work.  :(

Any ideas ? or did I stumble upon an undocumented feature  ???

Getting Closer -  :P

5
VB and the development of wizards / Re: Calling a specific Wizard
« on: June 28, 2006, 02:54:55 PM »
Thanks Brian - we are off and running now  :)

6
VB and the development of wizards / Calling a specific Wizard
« on: June 28, 2006, 11:14:35 AM »
So I have this Wizard that I would like to call from a button on my new screen.

I can get to it by clicking the "Load Wizard" button and scrolling down the list, selecting it and then selecting "Run".
I am to lazy for that - I want to create a button that just calls my wizard.

What is the VB syntax for calling a specific wizard from a button ?

7
I did some playing around with the shell() command in VB. I figured what the heck - the worst it could do is reformat my drive and I would have to load Linux  :D

I tried X=Shell("MyProg.bat hello there",1)
MyProg.bat is:
---------
echo off
echo %1% %2%
pause
--------------
and to my amazement IT WORKED   :)

It opened a cmd window which said:

Hello There
press any key to continue ....

So the documentation is a little misleading. In the statement X=Shell("command",window_style), "comand"  means anything you would type on the command line including parameters. So one is able to pass it the values from encoders or DROs very easily.

My wizard is 99% done.  :)

Thanks for looking into this - I appreciate your efforts.

8
The program is one I wrote a few years back in C. It is an exe and called from a command line with the parameters mentioned before.

I could put it in a script *********x.bat also if that would help. The biggest issue I have is passing it values read from the encoder DRO

9
I am working on a wizard which needs to execute and external program. I is executable in a cmd window and requires several parameters. (i.e. >stretch file.in file.out xorg xact yorg yact )

Does anyone know how this can be accomplished in VB script ? I have looked at the shell command but can not figure for the life of me how to pass it variables.

Thanks for your help.

10
General Mach Discussion / Re: encoder interface specifics
« on: June 16, 2006, 06:41:57 PM »
I don't thing the 8K read rate will be a problem -
I usually sew at 60 IPM but if I move the sewing head at 200 IPM with a 400 steps per inch (1/2 revolution) motor that is only 1.3K -
I guess 1250 pulses / rev on the encoder would generate (worst case) 2K pulses which would need to be read.

What VB coding are you speaking of ?

I did some for my M6 command - seemed rather straight forward.
And I will have to write some to be able to look at the encoder values and stretch / rotate to tool path accordingly. Cloth stretches and
Quilters are not an exact group - especially considering the finest graduation on their measuring device is 0.125 :D

Pages: 1 2 »