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: 

how to make acquired values to zero during exection of program

Hi

 

I need a help from you guys .

I created a small application of Encoder , purpose of which is to increase the count values.

 

if i have to make zero to the count values ,I have to stop the exection then run again .

 

Is there any other method by which i can make value of count to zero during execution of program?

 

Reagrds

nitin

0 Kudos
Message 1 of 3
(2,235 Views)

Hi nitin,

 

what about an additional RESET? input to your "encoder" function?

 

IF RESET? THEN
   count := 0
ELSE
  do nothing
ENDIF

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,225 Views)

@Nitin_110051 wrote:

Hi

 

I need a help from you guys .

I created a small application of Encoder , purpose of which is to increase the count values.

 

if i have to make zero to the count values ,I have to stop the exection then run again .

 

Is there any other method by which i can make value of count to zero during execution of program?

 

Reagrds

nitin


A simple boolean and a Select function can take care of this very easily.


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 3 of 3
(2,211 Views)