LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of Event Structure and push button

Look at the learning resources listed at the top of this forum.

Message 11 of 29
(729 Views)

@altenbach wrote:

Look at the learning resources listed at the top of this forum.


You might also read my earlier message (#3 in this chain).

 

Bob Schor

0 Kudos
Message 12 of 29
(707 Views)

I have reviewed the topics you mentioned, thank you. I was wondering if you could recommend anything regarding elapsed time calculation? Kind regards.

0 Kudos
Message 13 of 29
(702 Views)

There is a build in function for that:

aeastet_0-1745244659288.png

 

Tim
GHSP
0 Kudos
Message 14 of 29
(652 Views)

Since I mostly stay away from express VIs, I typically prefer to do my own timing, e.g. as described here.

0 Kudos
Message 15 of 29
(645 Views)

Hello again,
Yesterday, I tried to understand the structure you shared with me and modified it to better fit my homework. I’m currently working on completing the required timing functionality. For that, I used the Elapsed Time block, but after making such a change, I started getting some errors. I’m trying to complete my assignment quickly, but I’m having a hard time fully understanding and resolving the structures I see online. However, with the feedback I receive from this forum, I’ve been able to make progress. Thank you all for your help.

 

dogukan12324_1-1745254096540.png

In this step, I’m trying to make the program automatically stop if it runs continuously for 60 seconds.

0 Kudos
Message 16 of 29
(641 Views)

Never ever modify a VI and attach it with the same name as a VI that I attached earlier. You need to give it a different name!

You also forgot to "save for previous". I cannot open 2025 VIs.

0 Kudos
Message 17 of 29
(608 Views)

The changes of the time being exactly 60 secs is miniscule. Change to Equal or greater comparison. You can't wire 2 booleans directly to the Stop button, they need to go through a logical gate, i assume an OR.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 18 of 29
(587 Views)

Hello again,

I have carefully reviewed the guidance you previously provided. I’ve also explored relevant forum topics, studied various resources, and watched several YouTube videos to better understand the subject. I’ve now reached the final step of my assignment.

In this step, I’m trying to implement a system where, once the Start button is pressed, the program counts 60 seconds. If the program runs continuously for 60 seconds without pressing the Stop button, it should automatically terminate. I tried designing a system that measures the elapsed time accordingly, but I encountered issues such as missing tunnel errors and red "X" indicators.

If possible, could you please make this final adjustment directly on the RunStopEvent.vi file you previously shared and send it back to me?

Thank you very much in advance for your help.
Best regards.

0 Kudos
Message 19 of 29
(540 Views)

Hi dogukan,

 


@dogukan12324 wrote:

If possible, could you please make this final adjustment directly on the RunStopEvent.vi file you previously shared and send it back to me?


Did you even care to read the previous messages in this thread?

(They contain a possible solution to your problem and the suggestion to downconvert your code to help us to help you…)

 

As you don't seem to follow our advice why should we solve your homework for you?

 


@dogukan12324 wrote:

If the program runs continuously for 60 seconds without pressing the Stop button, it should automatically terminate.


Yamaeda gave you the solution, you just need to read it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 29
(533 Views)