Hello Guest it is October 15, 2019, 07:59:10 AM

Author Topic: api ,how get response from mach that file had been compleate  (Read 195 times)

0 Members and 1 Guest are viewing this topic.

when i run mach from external app c# i run the program and when finish this program i want get respone(event) that tell
me to the c# app that this file finish and i can start run the next file
thanks

Offline smurph

*
  • *
  •  1,138 1,138
  • "That there... that's an RV."
    • View Profile
Re: api ,how get response from mach that file had been compleate
« Reply #1 on: June 14, 2019, 01:34:07 PM »
Poll the state of the control using mcCntlGetState(). 

Start the first file running.  Poll for the state to change from idle to running (wait on the file to start).  Once it is started, poll for the state to change from running to idle. 

Steve
Re: api ,how get response from mach that file had been compleate
« Reply #2 on: September 05, 2019, 02:43:12 AM »
is there any event that rise when state change?
to use signal ?

Offline smurph

*
  • *
  •  1,138 1,138
  • "That there... that's an RV."
    • View Profile
Re: api ,how get response from mach that file had been compleate
« Reply #3 on: September 05, 2019, 03:57:24 PM »
No.  Just poll it every 100ms or so.