View Single Post
  #3   Spotlight this post!  
Unread 21-02-2010, 02:31
114Klaatu0x72's Avatar
114Klaatu0x72 114Klaatu0x72 is offline
DQN
AKA: Sean
FRC #0114 (EagleStrike)
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Mountain View
Posts: 19
114Klaatu0x72 has a spectacular aura about114Klaatu0x72 has a spectacular aura about114Klaatu0x72 has a spectacular aura about
Send a message via AIM to 114Klaatu0x72
Re: Creating a "delay" for a boolean value

The best solution for this would be to increment a value, and then check if is has reached a certain value. The idea behind it is that given a known period, you can approximate values by repeating that period a certain number of times, all while not having a program get hung up in a loop. You could achieve this by doing a simple if (value >= WhatIWant), do this, else value++ type thing. Or, you could do what I did and check the robot time, (A) because it automatically increments itself, and (B) because it is not dependent on processor time. I know this would be pretty straight forward in c++/java, and can only hope it is the same with labview. Hope this helps.
Reply With Quote