LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment with delay and resetting the program

I want to write code where I set a counter to 0 and it goes to 5, but when it goes from 0 to 1, the code has to stop for 5 seconds before it goes from 1 to 2.

0 Kudos
Message 1 of 2
(202 Views)

Hi Elvin,

 


@Elvinn_ wrote:

I want to write code where I set a counter to 0 and it goes to 5, but when it goes from 0 to 1, the code has to stop for 5 seconds before it goes from 1 to 2.


And what is the question?

When you "want to write code" then you need to "start to write"…

 

Should the code "stop for 5 s" when the counter is still "0" or when the counter value is "1"?

How long should "the code" wait for other values of the counter? (LabVIEW can run loops quite fast, so you would not even recognize the other values…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(199 Views)