Multiple KmotionCNC instances

Moderators: TomKerekes, dynomotion

Post Reply
User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Multiple KmotionCNC instances

Post by cnc_freak » Sun Jul 10, 2022 7:25 pm

Hello.
Sometimes by accident, i start two or more instances of KmotionCNC, which gives me strange programm behaviour. Is there a way, not to alow a second instance of KmotionCNC to be executed, or popup a warning window that KmotionCNC already is running.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: Multiple KmotionCNC instances

Post by TomKerekes » Mon Jul 11, 2022 12:48 am

Here is a simple PC WinForms program that will check for two instances of KMotionCNC class windows and if present display a warning. Otherwise it does nothing and exits. Copy the executable to the \KMotion\Release folder and assign it to the KMotionCNC Startup Action.

HTH
Attachments
MutexSource.zip
(16.3 KiB) Downloaded 25 times
Mutex.exe
(8.5 KiB) Downloaded 27 times
Regards,

Tom Kerekes
Dynomotion, Inc.

User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Re: Multiple KmotionCNC instances

Post by cnc_freak » Mon Jul 11, 2022 7:13 pm

Thank you for the reply but
assign it to the KMotionCNC Startup Action.
How do i do that?
Regards.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: Multiple KmotionCNC instances

Post by TomKerekes » Mon Jul 11, 2022 8:26 pm

KMotionCNC | Tool Setup | M0-M30 | Prog Start | Execute PC
Regards,

Tom Kerekes
Dynomotion, Inc.

User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Re: Multiple KmotionCNC instances

Post by cnc_freak » Wed Jul 13, 2022 7:55 pm

Thank you very much.

Post Reply