FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer On Delay

I also have been using LabVIEW many years (18) and had never seen or used the VIs you are trying to use.

Plus your references to GE 9070, Allen Bradly, Woodward I felt you were doing something beyond High School robotic.

but want delay 5 seconds (without operator involve)

before I want to process any output

I am assuming you are using Autonomous Independent since you have a while loop in your code.

If what you want is to delay any and ALL action you could just put a simple delay before the while loop which will delay before processing any output.

0 Kudos
Message 11 of 14
(795 Views)

Sorry for going back and forth on this subject. I never done like this either in my career.  It just something

that I can't do in Labview and just want some guidance. You were right about different between LabView and other programming

code. Each one has it Pros and Cons. Well I know what to do to accomplish what I want to do.

Thanks for all your help

0 Kudos
Message 12 of 14
(795 Views)

If you need the delay inside your while loop then Elapsed Time exactly is what you need.

But I will have to say that I have never used the Elapsed Time vi in any of my projects.

I just use the Get Date/Time In Seconds do the math each time around the loop and test to see if the amount of time has passed.

If you dig into Elapsed Time you will see that it uses Get Date/Time In Seconds to do the same thing.

0 Kudos
Message 13 of 14
(795 Views)

I've been looking at the Elapsed Time many times before came up with my own.

Since there are so many inputs/outputs that is why I ignored it. Anyway I've tested this block

and it works for me. Again, thanks for your help

0 Kudos
Message 14 of 14
(795 Views)