Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 23, 2008, 09:19:32 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
Mach SDK plugin questions and answers.
Automating Mach from external software
Pages:
«
1
2
Go Down
« previous
next »
Author
Topic: Automating Mach from external software (Read 1812 times)
0 Members and 1 Guest are viewing this topic.
jemmyell
Active Member
Offline
Posts: 70
Re: Automating Mach from external software
«
Reply #10 on:
February 16, 2008, 03:15:53 PM »
You are welcome. Since I run as a plugin I am not concerned with Mach3 lifetime control.
I'm glad you were able to get this running.
-James
Logged
-James Leonard
www.DragonCNC.com
-
www.LeonardCNCSoftware.com
-
www.CorelDRAWCadCam.com
babinda01
Active Member
Offline
Posts: 12
Re: Automating Mach from external software
«
Reply #11 on:
March 02, 2008, 12:37:20 AM »
Hi Guys,
I am working on remoting mach from C# as well. I have got most things working, but I am tearing my hair out with a problem. Brian added into Mach3 the .GetMessage call (to display the status label data), this returns a BSTR, now that is well and good in C++ but it is killing me with C#. Do you guys know of a way of accessing a BSTR in C#???
Thanks
Andrew
Logged
jemmyell
Active Member
Offline
Posts: 70
Re: Automating Mach from external software
«
Reply #12 on:
March 02, 2008, 11:17:43 AM »
Quote from: babinda01 on March 02, 2008, 12:37:20 AM
Hi Guys,
I am working on remoting mach from C# as well. I have got most things working, but I am tearing my hair out with a problem. Brian added into Mach3 the .GetMessage call (to display the status label data), this returns a BSTR, now that is well and good in C++ but it is killing me with C#. Do you guys know of a way of accessing a BSTR in C#???
Thanks
Andrew
Hi,
I really don't know .NET at all, but I believe that you need to write a COM Interop for the Mach object model
Logged
-James Leonard
www.DragonCNC.com
-
www.LeonardCNCSoftware.com
-
www.CorelDRAWCadCam.com
davew
Active Member
Offline
Posts: 8
Re: Automating Mach from external software
«
Reply #13 on:
March 04, 2008, 10:30:52 AM »
Quote from: babinda01 on March 02, 2008, 12:37:20 AM
I am working on remoting mach from C# as well. I have got most things working, but I am tearing my hair out with a problem. Brian added into Mach3 the .GetMessage call (to display the status label data), this returns a BSTR, now that is well and good in C++ but it is killing me with C#. Do you guys know of a way of accessing a BSTR in C#???
Andrew,
I haven't needed strings yet, but as I was getting started, the following article was helpful for me.
http://msdn2.microsoft.com/en-us/magazine/cc301501.aspx
Dave
Logged
babinda01
Active Member
Offline
Posts: 12
Re: Automating Mach from external software
«
Reply #14 on:
March 10, 2008, 06:18:54 AM »
Hi,
Not sure if this would be any help to anyone, but here is a rough test application I was using to get the hang of remoting Mach3 from C#. I can't post the finished code as it is for a customer, and I don't think he would like me posting it here.
Any questions or suggestions please give me a yell.
Regards
Andrew
Mach.Remote.zip
(513.25 KB - downloaded 40 times.)
Logged
carlo
Active Member
Offline
Posts: 7
Re: Automating Mach from external software
«
Reply #15 on:
March 29, 2008, 05:54:38 PM »
hi,
can we do this in VB.NET ?
regards
carlo
Logged
babinda01
Active Member
Offline
Posts: 12
Re: Automating Mach from external software
«
Reply #16 on:
April 09, 2008, 05:53:19 PM »
Hi Carlo
Sorry for not replying sooner, but I have been away.
Yes you can do this with VB.net. I have only just started using C#, I used to use vb.net for everything, but I am now a convert and use C#.
If you would like to use INSTANT VB (tangiblesoftwaresolutions.com), my C# example should convert to VB ok - I havn't tried this, but I have used this converter software in the past and it seems to work perfectly from C# to VB but a little dodgy from VB to C#.
Hope this helps
Andrew
Logged
carlo
Active Member
Offline
Posts: 7
Re: Automating Mach from external software
«
Reply #17 on:
April 15, 2008, 01:21:03 PM »
thanks Andrew,
I'll see what i can do.
i've never used the SDK untill now so i have a couple of questions befor starting.
* When we use VB.NET and Mach SDK, does it mean we can run MACH3 without acually running MACH3 standard application?
* When I run the test C#, on the screen ther is the load button, when i load the MACH from the test screen the standard Mach is running on the backround and displayed within the screen, I don't understand why to run a screen like test C# when you have the same screen running on the backround.
i hope you understand my point
Logged
Pages:
«
1
2
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...