Jump to content

TCP Response with State Machine


Recommended Posts

I have a 2 state machines that are connected through user events.  One of these is for taking measurements and writing data, the other is to control loading, moving and unloading the UUTs this is done through TCP communication (this is defined already from the vendor so I cant change that).  With the the load there is a long wait time until I have a response over TCP and I dont want to have the measurement machine locked until I have a response.  I would assume the best way would be just to ping the TCP read in a timeout loop with the TCP read timeout set to 100ms and clear the error until there is a response.  This should give me the ability to response to other user events and keep the machine active.  


Again maybe I am on the right path for this and it is the best solution but something tells me there is a better option that I am not seeing.

Anyone have a better solution?


Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.