1
VB and the development of wizards / Use VB outside of Mach3 to control a machine
« on: October 21, 2010, 12:00:41 PM »
I have a piece of equipment in my lab that is designed to acquire data from a single sample and store the data in a file. I have modified the machine by adding a motorized XY stage (no Z) that allows me to move the stage and position additional samples for analysis. I use Mach3 to control the XY stage. Using VB script within Mach3 I am able to link the data acquisition program to Mach3 (sort of) to automate the data collection for multiple samples
The following is a thread relating to how I used (sucessfully!) a macropump within Mach3 to move the stage between samples:
http://www.machsupport.com/forum/index.php/topic,8252.0.html
I have a new data acquisition program that allows me to sequence events from within the application and these events include the ability to run an external file. My hope is that I could simply run a VB script to move the XY stage between samples. The VB script would likely be very simple, but my question is this: can I control Mach3 using a VB script from outside the Mach3 program? If both Mach3 and this data acquisition program are running, can I basically use the data acquisition program to execute individual VB scripts that would in turn tell Mach3 to do basic movements (e.g. move 9 mm to the right)? I know that I can do this easily from _within_ Mach3, but I'm not sure if it is easy to do this by executing a VB from outside of Mach3.
Thanks for any comments or code suggestions that you may be able to supply.
The following is a thread relating to how I used (sucessfully!) a macropump within Mach3 to move the stage between samples:
http://www.machsupport.com/forum/index.php/topic,8252.0.html
I have a new data acquisition program that allows me to sequence events from within the application and these events include the ability to run an external file. My hope is that I could simply run a VB script to move the XY stage between samples. The VB script would likely be very simple, but my question is this: can I control Mach3 using a VB script from outside the Mach3 program? If both Mach3 and this data acquisition program are running, can I basically use the data acquisition program to execute individual VB scripts that would in turn tell Mach3 to do basic movements (e.g. move 9 mm to the right)? I know that I can do this easily from _within_ Mach3, but I'm not sure if it is easy to do this by executing a VB from outside of Mach3.
Thanks for any comments or code suggestions that you may be able to supply.