It's still jumbling the main with speed when I hit preview. It all works except the speed routine.
Speed:
wTimer1=0 ' clear Timer1
T1CON.0=1 ' start timer1
pause 1000 ' acquisition time
T1CON.0=0 ' stop timer1
pause 100
return
I call this from a gosub in the main routine. I know it gets here because if I put a number in wtimer1= it will display that number.




Bookmarks