Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: KatzYaakov on May 31, 2019, 12:30:03 PM

Title: api ,how get response from mach that file had been compleate
Post by: KatzYaakov on May 31, 2019, 12:30:03 PM
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
Title: Re: api ,how get response from mach that file had been compleate
Post by: smurph 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
Title: Re: api ,how get response from mach that file had been compleate
Post by: KatzYaakov on September 05, 2019, 02:43:12 AM
is there any event that rise when state change?
to use signal ?
Title: Re: api ,how get response from mach that file had been compleate
Post by: smurph on September 05, 2019, 03:57:24 PM
No.  Just poll it every 100ms or so.