From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Counter

Solved!
Go to solution

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 

0 Kudos
Message 1 of 3
(2,956 Views)
Solution
Accepted by topic author DEGBM24

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,945 Views)

perfect thanks for your help!

0 Kudos
Message 3 of 3
(2,906 Views)