Current Position:Home > Keeping count of how many times a case structure has been entered.

Keeping count of how many times a case structure has been entered.

Update:10-11Source: network consolidation
Advertisement
I have a "Case" structure (when a button is pressed, it is "case True").
I want to keep track of how many times this "case True" has been entered.
How can I do this?
Solved!
Go to Solution.

The Best Answer

Advertisement
For that you need to have a shift register or a feedback node and keep counting whenever the case structure case is executed the count will be increased by one see the attached snippet.
Good Luck
The best solution is the one you find it by yourself
Attachments:
CaseStructure count.png ‏10 KB
  • Keeping count of how many times a case structure has been entered. Update:10-11

    I have a "Case" structure (when a button is pressed, it is "case True"). I want to keep track of how many times this "case True" has been entered. How can I do this? Solved! Go to Solution.For that you need to have a shift re

  • Case structure/event counting Update:11-30

    Thanks so much everyone for your help. I was able to get it to work. I now have a second question that I have been wrestling with on my program for some time. I am hoping to be able to count the number of times each event happens, be it >0, <0 or 0.

  • Counting only once when a case structure is true in a while loop Update:11-30

    Hi. First time posting here so do pardon me. I have tried searching for answers in the forums along with attempting the solution myself but to no avail. Here is the problem. I am trying to collect voltage signals via the DAQ assistant. When a certain

  • Can I use a formula node to start the execution of a case structure? Update:10-11

    Hi, I am working on editing a VI to make it much easier to understand (for colleagues and non LV users). For one reason or another, the VI's creators did not fully make use of the power of case structures and other structure types. In the application

  • How can I pass data generated in a SubVI inside a Case Structure out of the Case Structure? Update:10-11

    Hello, I am using a USB 2701 to control a heater.  I have three SubVIs that are all working properly on their own.  I'd like to use an Enum to select which of the SubVIs is running at a given time.  The problem is that no data is passing out of the c

  • Resetting a Case structure Update:10-11

    I am writing a VI that reads in a signal to a comparator and sends the output to a case structure. The ides behind the project is EMG (monitoring muscle active/inactive times). The case structure is as follows: If 1: count up and if count reaches 10

  • Multiple booleans controlling one boolean input for a case structure Update:10-11

    Hello, I have four boolean buttons and a case structure with a boolean input. I would like to write the program so that whenever any one of the four boolean button changes value, the case structure reads true for one loop interation, and then returns

  • Problem with a case structure Update:10-11

    I have the following problem: I want that the structure from the TRUE case of the bigger case structure to start only when I switch from the button and activate the TRUE position. I observed with the probe tool that the structure is still executed in

  • I HAVE A QUESTION ABOUT USING CASE STRUCTURE Update:11-30

    Can I compute a percentage using case structure? In the following query below, I have been able to use CASE STRUCTURE to add to a counter when days were between 0 and 30, or when days were between 31 and 60 or when days were between 61 and 90 or when

  • Stooping a case structure Update:11-30

     Hi everybody.. I want stop the most inner case structure after executing only once but the count is keep on increasing i cannot use STOP...please help Thanks in advavce Attachments: Modified_DiscreteInput..vi ‏27 KBHi Everybody In this VI when Boole