Galilio Posted April 13, 2016 Report Share Posted April 13, 2016 Hello,I have an app where I use a Event Structure.How can I carry out the error handling ? Quote Link to comment
hooovahh Posted April 13, 2016 Report Share Posted April 13, 2016 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. Quote Link to comment
Galilio Posted April 13, 2016 Author Report Share Posted April 13, 2016 Have you one example of how to convert Event Structure to state machine? Quote Link to comment
hooovahh Posted April 13, 2016 Report Share Posted April 13, 2016 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.