measuring digital signal
TG
Posts: 36
I want to measure the time between two digital signals. Is there a command to measure this?
Post Edited (TG) : 10/18/2005 3:26:57 AM GMT
Post Edited (TG) : 10/18/2005 3:26:57 AM GMT
Comments
Measure_Time:
· DO : LOOP UNTIL (Trigger = 1)····· ' wait for edge of first pulse
· DO································ ' measure width of first pulse
··· measure = measure + 1
· LOOP WHILE (Trigger = 1)
· DO································ ' measure time to second pulse
··· measure = measure + 1
· LOOP UNTIL (Trigger = 1)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Label:
IF (tri1 = 1)·AND (tri2 = 1) THEN label1
ELSEIF (tri1=1)·OR··(tri2 = 1) THEN label
ELSE label
Friendly, Provas, GREECE....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--