Hey everyone,
Is there a way to run a command after a certain period of time relative to its place in the program as opposed to the start of the scan rate. I'm looking for something similar to the TimeIsBetween function in CRBasic but not relative to the Beginning of the Program Scan.
To elaborate more here's some pseudocode for what I'm trying to do:
//*Program Instructions*
//*....continued*
Timer(1,msec,2)
I2CWrite(x,x,WriteValue1)
//*Continue Running Program*
//When Timer = 100 msec (some kind of check to see if 100ms has passed yet)
I2CWrite(x,x,WriteValue2)
The Delay command would be similar to what we are looking for (i.e. placing a 100ms Delay after the first I2CWrite) but I don't want to hold up the program's processing or measuring instructions.
Thanks
EDIT: Using a Timer works, Admin can delete this question now. Thanks