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.
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.
03-02-2022 03:32 AM
Hello everyone,
I am trying to measure/count the time inside the while loop, I tried a couple of methods but the problem is while loop execution.
If I will add time count in the start and at the end using flat sequences in this case I need to terminate while however, I can not terminate while loop. Let's say each iteration or "list of conditions when completed" the time will count automatically.
Here is my current VI.
In short, I am trying to measure the time that how long the "WAIT" is appearing on the button.
If something is not clear then please let me know.
03-02-2022 11:13 AM
@sam67 wrote:If something is not clear then please let me know.
Nothing is clear, really 🙄.
If you want to measure time between the start and an event, why wouldn't you put the first time measurement at the start?
Also, an XOR to invert a Boolean, while the stop condition and be inverted is weird.
A wait for multiple is weird in general.
A wait for multiple in an event structure is most probably simply wrong.
03-02-2022 07:01 PM - edited 03-02-2022 07:16 PM
Sorry, I don't have 2021, so I cannot run your snippet. Still, sometimes it is possible to diagnose basic things from a picture (example). 😄
Feel free to "save for previous" and attach your VI so we can give more detailed advice.
I would recommend to take a step back and describe what the program is supposed to do and how the user interacts with it. Most likely there is much smaller and cleaner code that does it all correctly.