Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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
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
 

BradtheRad

Super Moderator
Staff member
Joined
Apr 1, 2011
Messages
13,808
Helped
2,738
Reputation
5,473
Reaction score
2,648
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
103,058
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
 

bhimasandeep

Newbie level 1
Joined
Jan 21, 2014
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
14
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

Top