Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Windows software to drive a relay at a given time?

To: LineOne <[email protected]>
Subject: Re: LF: Windows software to drive a relay at a given time?
From: Andy Talbot <[email protected]>
Date: Wed, 11 Apr 2018 12:22:32 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=K2BUyuJju2xZVJxYJR4p/MuVxcQv+3B5XSnPTCyhXrI=; b=ALTm6kWzAO7WEDptI/v16GwfyBKd9Ud3FCfYu+lGxYs5GmYwIqKuhuLhH/vHINUliC HKxeRWBN1O8ZQioS0uNcUIy/0klIxlTscKCeb3KZpITiQQQNCyccj0/7kAFT9zfsGK1Z 6jEl7PKjthHR82ETkd46GBiVQvsOmEk/CaqfOe+nzsWQW0sK3NPfSvDnUr456NsgcKjS Pk01ztGwjWiwhy8ASXRU686UcTJHibvnkad+AeKqk7RgNyZzawTWC2UIF/daTOpEMuB0 Evw//FiRbT9TAPaqZ6Cl4D7dU2Xsf7gIfx9/NnQh+6Pg3lK9nwRQYF2lSfbhlJOFWRqi 7M/g==
In-reply-to: <CAA8k23TWb-UcDg=FqiqEPaO1gc1o5brVRBB-SLpxaPrJiY+_fA@mail.gmail.com>
References: <[email protected]> <CAA8k23TWb-UcDg=FqiqEPaO1gc1o5brVRBB-SLpxaPrJiY+_fA@mail.gmail.com>
Reply-to: [email protected]
Sender: [email protected]
Just in case it matters, I initially test for all valid COM ports by opening and closing each in turn,  then testing for an error.    
If that causes problems to anything on another port that has not yet been opened, like another PTT control,    it will briefly 'blip'

Any COM port already open will get rejected by this test so no adverse effect there.

Andy


On 11 April 2018 at 12:18, Andy Talbot <[email protected]> wrote:
Try this

It lets you abort the on time using the [esc] key

Source code is in there as well 

All in PowerBasic, command line compiler version
(By far the nicest way to programme simple things that don't need whizzy windows interfaces)

Andy

On 11 April 2018 at 11:16, Chris Wilson <[email protected]> wrote:


Hello LF'ers


Software to close a relay at a given time, perhaps via the serial port?


I am looking for some simple software to enable, at a given time to
within a second or so, derived from the PC time, activate a relay or
semiconductor switch possibly via a true serial port, of which i have
several spare. Does anyone know of anything like that please? Ideally
it would be able to open the relay at a later time. Just two time
based changes of state would be adequate in a 24 hour period. Thanks.
OS is MS Windows 7 64 bit Pro.




--
Best regards,
 Chris                          mailto:[email protected]




<Prev in Thread] Current Thread [Next in Thread>