LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elapsed Time

Solved!
Go to solution

Hi! 

I hope so much you could help me in this simple issue. 

 

I would like to start a boolean as true when another boolean become and stay true for 2 second. How can I do it?  Please I am a beginner but it is really important to go on with my work.  

Sorry for the annoyng

0 Kudos
Message 1 of 10
(4,633 Views)

 

bool.png

 

Message 2 of 10
(4,625 Views)

@Artem.SPb wrote:

 

bool.png

 Thank you so so much! But starting from your VI what I would like to do is that when B 1 as a controller stay true for 2 seconds so the other boolean star to be true forever 


 

0 Kudos
Message 3 of 10
(4,623 Views)

Hi mb,

 

then you need to wire B1 to the reset input of the ElapsedTime function.

 

Have you taken those beginner courses offered for free?

Have you even considered to play with that snippet on your own (to learn LabVIEW) instead of requesting "ready-to-use" code?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 10
(4,610 Views)

@GerdW wrote:

Hi mb,

 

then you need to wire B1 to the reset input of the ElapsedTime function.

 

Have you taken those beginner courses offered for free?

Have you even considered to play with that snippet on your own (to learn LabVIEW) instead of requesting "ready-to-use" code?


yes but I have got an emergency. Thank you for all the suggestions but it is still not doing what I want because the the second bolean return true every 2 second and does not stay true forever after 2 seconds.

0 Kudos
Message 5 of 10
(4,595 Views)

 

bool2.png

 

Message 6 of 10
(4,589 Views)
Solution
Accepted by topic author mbindustry

Hi mb,

 

I have got an emergency.

Then you need to learn faster…

 

See this:

check.png

There is just one function hidden behind the frontpanel. Try to figure it out on your own…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 10
(4,588 Views)

@Artem.SPb wrote:

 

bool2.png

 



I am trying to do it but with out success, can you give me the VI?

0 Kudos
Message 8 of 10
(4,569 Views)

@GerdW wrote:

Hi mb,

 

I have got an emergency.

Then you need to learn faster…

 

See this:

check.png

There is just one function hidden behind the frontpanel. Try to figure it out on your own…


I am thinking to subtract the time that pass when B1 is true with the time that characterized the while loop at the start? If I am wrong please help me, I am not so good in Labview, it is not my work but I have to do it because of an emergency and I do not know from what I have to start to overcome the issue.

0 Kudos
Message 9 of 10
(4,564 Views)

it works!!! Thank you so much!

0 Kudos
Message 10 of 10
(4,554 Views)