Waste time in CAPL program.

Status
Not open for further replies.

lucnicol

Newbie level 1
Joined
Dec 9, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,288
Hallo to all!!!
This is my first thrad here.
I need a little help.

I like have a few delay in every loop in a cycle for.
I must command a external device with a signal sequence.

My problem is: between each signal i must have a delay.

I don't know how to menage the Time statement.

Thanx
 

I am not familiar with CAPL, but I've heard of devices having a timekeeping variable.

You call it like you would call a function, and it returns a certain number of seconds, or micro-seconds, etc., since it was powered up.

Example: myTimerVariable = FnTickcount

To create a delay of 100 time units:
targetTime = FnTickcount + 100
WHILE FnTickcount < targetTime
WEND
 

Hi lucnicol,

even I too tried to generate delay in general program, i haven't succeeded but i came to know that in TEST Setup's we can give delay,
Try with this function
long TestWaitForTimeout(dword aTimeout)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…