04-14-2016 08:12 PM
Hi Ni team,
i am trying to program a simple counter see attached vi. Every time the Temperature get above 55C it should count +1 if it goes below -18 +1 cold cycle. Not sure why the event structure never enters the case.
Can someone help me pls.
Thanks,
Martin
Solved! Go to Solution.
04-14-2016 08:51 PM - edited 04-14-2016 08:52 PM
DEGBM24 wrote: Not sure why the event structure never enters the case.
That is because the Value Change event is not fired by you writing to the terminal.
1. You do not need a timeout case.
2. You should have a Stop Value Change event for stopping your loop
3. You should have a Value Change event for your temperature control
4. You really should be using shift registers to keep your cycle counts instead of the local variables
5. Look at the Boolean Crossing PtByPt VI.
04-15-2016 12:36 AM
perfect thanks for your help!