Hello
Guest
it is
March 29, 2024, 11:31:53 AM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
api ,how get response from mach that file had been compleate
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: api ,how get response from mach that file had been compleate (Read 971 times)
0 Members and 1 Guest are viewing this topic.
KatzYaakov
590
api ,how get response from mach that file had been compleate
«
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
Logged
smurph
1,544
"That there... that's an RV."
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
Logged
KatzYaakov
590
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 ?
Logged
smurph
1,544
"That there... that's an RV."
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.
Logged
Print
Pages:
1
Go Up
« previous
next »