LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elapsed timer to start stop the ouput with specified time and stop with while loop

Solved!
Go to solution

I want to turn on the output for 10s and than off for 15s and run the cycle and want to stop the Vi as soon as i press while loop stop button.

 

please share the solution by showing block diagram.

0 Kudos
Message 1 of 12
(1,056 Views)

There are millions of decent ways to do this...

 

None involve a global. 😉

 

You'll make a huge step if you learn about shift registers. And event structures.

 

Since you want to stop as soon as you press a button, an event structure makes a lot of sense:

 

Boolean on off timer.png

wiebeCARYA_0-1686571749505.png

 

0 Kudos
Message 2 of 12
(1,037 Views)

Hi Holas,

 

Try the attached code below

0 Kudos
Message 3 of 12
(1,009 Views)

Thank you,

 

but this Vi is of latest version V19.1 and my version is V15 , so not able to open . 

any other way to open this , can you let me know .

 

Thnaks.

0 Kudos
Message 4 of 12
(985 Views)

Thank you !!

 

0 Kudos
Message 5 of 12
(975 Views)
Solution
Accepted by topic author Holas1505

Hi Hola,

Can you try again? Let us know if it works and if it does, do not forget to choose best answer.

0 Kudos
Message 6 of 12
(963 Views)

Still not working, attached is snap for error details. thanks

0 Kudos
Message 7 of 12
(938 Views)

Hi Holas,

 


@Holas1505 wrote:

Still not working, attached is snap for error details. thanks


Why do you even try to open a VI using AdobeAcrobat?

Why don't you use LabVIEW to open a VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(927 Views)

Ohh really sorry, now it is working fine.

 

Thank you so much for your quick response, this realy help me well.

0 Kudos
Message 9 of 12
(918 Views)

Does the code work as you were expecting? Let us know. If it works as expected, mark it as solution. 

0 Kudos
Message 10 of 12
(900 Views)