07-05-2018 09:28 PM
Hello all,
I am trying to manipulate an GPIB error handler to display my own messages. The error handler needs to check if both devices are connected during all iterations, if it is not display a personal error window.
Where would the One button dialog go?
If it's in the loop it outputs the dialog box with every iteration, which I think is because it checks every iteration, correct? But this is not completely what I am trying to do. When I turn off the device halfway nothing happens, all I get is dialog windows at the beginning for every iteration. If it's outside the loop it only checks once, so that's not it, right?
07-05-2018 11:48 PM
Use a feedback node and only pop the error message if there is an error AND there was no error in the previous iteration. You can event stop the loop on error if that's reasonable.
(Seems all a bit inflexible. It would make more sense the design a state machine instead)