Time window


Closed Thread
Results 1 to 8 of 8

Thread: Time window

Hybrid View

  1. #1
    Franko's Avatar
    Franko Guest


    Did you find this post helpful? Yes | No

    Default

    Thank you all for your fast replies !

    I have several 628s and will use them.

    Melanie, That is extremely kind of you to do the code example,I appreciate it very much.

    I have spent 2 days on this and now I can continue on.

    Thanks again,
    Franko

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Test it, Test it, Test it!

    I wrote it off the top of my head, in five minutes at quarter to two in the morning at the end of a long day, so make sure it works, it makes sense and more importantly that you understand it before 'moving on'.

  3. #3
    Franko's Avatar
    Franko Guest


    Did you find this post helpful? Yes | No

    Default

    I will test it today and reply back. I read it over several times last night so as to understand all the steps and what they do.

    As I test this one section alone, I will understand it even more.

    Thanks

  4. #4
    Franko's Avatar
    Franko Guest


    Did you find this post helpful? Yes | No

    Default

    It works !

    Melanie, I only had to make one change to get it to work...

    While PulseInput=1:Wend
    CounterA=0

    I moved Wend to "after" CounterA=0...

    While PulseInput=1
    CounterA=0
    Wend

    Before I did that, LED would High anytime ButtonInput went Low.Now it only goes High during the "Time Window".
    Works great and now I'll tweak it to suit my application and continue.

    Thanks!!!

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts