Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Waste time in CAPL program.

Status
Not open for further replies.

lucnicol

Newbie level 1
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top