ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
已解决! 转到解答。
Hi icemaker
I'm not really sure what you mean. Wouldn't a case structure be a solution?
Could you post some code so we can see what you are doing?
Best Regards
David
NISW
This is very similar another enquiry today...
One possibility: Add a boolean shift register to your loop, initialised outside the loop. When an error occurs and you send your message, set the boolean to a value that means you've sent your message. Your "send a message" should avoid sending a message if the flag says you've already sent one.
You may also want some means to reset the flag so you can send mesages again. Maybe make the shift register hold the time you last sent an error message, so you can send another one after a certain time has elapsed.
Just a thought.....
Rod
Ahh, now I get it. Just one email per error, good morning ![]()
Rod's suggestion is very good, you should give it a try.
Best Regards
David
Have you fixed your non-stop emails yet? You screen cap doesn't have the solution (shift register).