Jump to content

Error Handling in Event Structure


Recommended Posts

The same way you would with any other application.  What part of an event structure is making error handling difficult?  Generally what I do is put my event structure in a state machine.  Then if an error happens go to the error case, where I can take action based on the error.  This might mean log it, prompt the user, re-init or whatever.

Link to comment

There is no converting it is using both as a tool.  You can check out JKI's State Machine for an example of what I was talking about.  Or in LabVIEW go to File >> New... and under From Template, Frameworks, Design Patterns there are several to study which use event structures.  There's also plenty of white papers on NIs site discussing design patterns.

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.