ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counter

Hello i am Danny. 

Just start with labview basics, but i can use some help. 

I have a (pressure) signal from a QuantumX MX840B. The signal is from a pressure vessel and i want te count how often the barrel is at 8 bar.

This is working but it counts continulously. so i need a kind of stop or reset.

 

thanks 

0 Kudos
Message 1 of 13
(4,949 Views)

You acquired data once and Just Increment in a loop, Even the Acquisition should be inside loop and Incremet the counter only when it is above 8.

use Shift registers to hold the previous count.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 13
(4,943 Views)

Thanks 

 

I just use Shift registers and put a slide i it. so it easy to test. 

 

The pressure signal is sometimes hours above 8 (bar) and the counter should only add 1 at a time.

0 Kudos
Message 3 of 13
(4,927 Views)

Hi Daan,

 

so you should determine when the value is crossing the limit - and not, when it is greater equal limit!

 

There is a function named PtByPt BooleanCrossing: that will help you…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(4,924 Views)

Even your Acquisition logic should be inside the loop.

Its Simple add/Increment whenever Pressure signal (in bar) is above 8, else hold with the old value using shift register.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 13
(4,917 Views)

the is no PtByPt BooleanCrossing in my labview.

fout.png

is there another solution?

 

i try to update 

0 Kudos
Message 6 of 13
(4,905 Views)

Try This

 

Count.png

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 7 of 13
(4,902 Views)

Hi Daan,

 

are you really using such a tiny font size on your computer???

 

See the LabVIEW help

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(4,901 Views)

Thanks Palanivel 

Unfortunately this is not the solution, the counter must stop at 1 now he count continues.

when the pressure vessel is empty it will pumped fully with air. when it is at 8bar a 2 must be made of the 1 

 

i am updating labview!

0 Kudos
Message 9 of 13
(4,897 Views)

I found a solution, maybe a bit cumbersome but it works for me. 

thanks for help. 

working.png

0 Kudos
Message 10 of 13
(4,848 Views)