Measure Time Betwee...
 
Notifications
Clear all

Measure Time Between Input Triggers

4 Posts
1 Users
0 Reactions
6,675 Views
(@asterof)
Posts: 17
Active Member Guest
Topic starter
 

So here is what I have so far
but could use some help to clean it up

a=0 b=0 c=0 d=0 e=0 CLK=0

C2
GOTO 3

C3
d = CLK
WHILE UAI == 1
LOOP

WHILE UAI == 0
a=a+1
e = CLK - d
e = e/3 'to get 1000 miliseconds why do I need to divide by 3
PRINT(e,#13)
IF e > 400 GOTO4
ENDIF

WHILE UAI == 0
LOOP
LOOP
GOTO3

C4
PRINT(e," - ERROR TO SLOW ",#13)
'SPEEDUP VT VALUE
'G
'ON NEXT TRIGGER SLOW BACKDOWN
'ADD TO COUNT
GOTO3

END

 
Posted : 02/06/2015 6:00 pm
(@csearcy)
Posts: 316
Reputable Member Guest
 

I'll try to work with this some today. I haven't been getting notifications of posts, so let me know if you've made it past this issue already.

 
Posted : 11/06/2015 8:41 am
(@asterof)
Posts: 17
Active Member Guest
Topic starter
 

most of the questions I had sent over the last week or so I figured out by trial and effort of other forums. I figured it was a problem or you were on vacation
I will post my complete code for other to review or use and do have a few questions on the way I did it.

I used the CLK function but maybe I should have used encoder position
as I may need to go back and index each drop instead of monitoring each drop using time

 
Posted : 11/06/2015 10:09 am
(@csearcy)
Posts: 316
Reputable Member Guest
 

Understood, Thanks.

 
Posted : 12/06/2015 9:35 am
Share: