Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Measure Time Between Input Triggers

Measure Time Between Input Triggers 1 year, 3 months ago #1840

  • asterof
  • OFFLINE
  • Posts: 30
  • Karma: 0
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

Re: Measure Time Between Input Triggers 1 year, 3 months ago #2043

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
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.

Re: Measure Time Between Input Triggers 1 year, 3 months ago #2045

  • asterof
  • OFFLINE
  • Posts: 30
  • Karma: 0
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

Re: Measure Time Between Input Triggers 1 year, 3 months ago #2050

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
Understood, Thanks.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.43 seconds