Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Tools
Old 23rd May 2009, 01:27 PM   #16
Default

yes its possible
Anafam is offline  
Old 23rd May 2009, 10:01 PM   #17
Default

Okay. Here you go Xiptron. Let me know how it works out for you. The txt file and the program file must be in the same directory.
Attached Files
File Type: zip MULTI6.zip (24.0 KB, 7 views)
ccurtis is offline  
Old 23rd May 2009, 11:20 PM   #18
Default

See next post.

Last edited by xiptron; 26th May 2009 at 11:53 PM.
xiptron is offline  
Old 26th May 2009, 07:36 AM   #19
Default

It's working well now CC. I have installed it on an old 286 laptop as it seems to be prefer running under dos in W95. On my current XP machines the program sometimes won't load, or it'll crash or trigger on entering a filename. Not to worry.

One thing is that it won't start by connecting DSR to DTR, but will start with 9V (from a small battery) connected to DSR via a remote switch. (I found that getting it to start by connecting DSR to DTR is dependant on how the DTR interface is configured).

Abort (Control-Break) doesn't function but that's not really an issue.

For now I have to close the program and relaunch it with a new filename for my different timings. This is a bit of a pain and a refinement would be, if you're willing : ), to load a new file without having to close first. Perhaps after timing completion it could ask "Enter new filename"?

I really do appreciate your efforts in preparing the program for me CC, thankyou.

Last edited by xiptron; 26th May 2009 at 11:55 PM.
xiptron is offline  
Old 27th May 2009, 01:57 AM   #20
Default

It's working well now CC. I have installed it on an old 286 laptop as it seems to be prefer running under dos in W95. On my current XP machines the program sometimes won't load, or it'll crash or trigger on entering a filename. Not to worry.

I made some improvements that may solve some of the above. It works for me in an XP cmd window. I cleaned up the counter display to make it easier to read, also.

One thing is that it won't start by connecting DSR to DTR, but will start with 9V (from a small battery) connected to DSR via a remote switch. (I found that getting it to start by connecting DSR to DTR is dependant on how the DTR interface is configured).

You need to short RTS to DSR, not DTR to DSR. Also, the timers start when a change of state is detected on DSR, so holding DSR high will not restart the timers on the next go-around. When running in an XP window there is a couple second delay from the moment a state change on the DSR pin occurs and it is passed to the program. This delay occurs when the program is first run, only. Nothing can be done. The delay is not seen again if the s key is pressed and the timers are restarted with another DRS trigger. That should do it. Of course, the battery applied to DSR will work too.

Abort (Control-Break) doesn't function but that's not really an issue.

Yeah, I see that. It only functions once the counters are running.

For now I have to close the program and relaunch it with a new filename for my different timings. This is a bit of a pain and a refinement would be, if you're willing : ), to load a new file without having to close first. Perhaps after timing completion it could ask "Enter new filename"?

Okay, done. Your welcome xiptron. I've done very little bug testing, so I leave it to you to let me know if anything else needs fixing.
Attached Files
File Type: zip MULTI6B.zip (24.0 KB, 2 views)

Last edited by ccurtis; 27th May 2009 at 03:03 AM.
ccurtis is offline  
Old 27th May 2009, 03:54 AM   #21
Default

Thanks for reply CC.

One thing is that it won't start by connecting DSR to DTR, but will start with 9V (from a small battery) connected to DSR via a remote switch. (I found that getting it to start by connecting DSR to DTR is dependant on how the DTR interface is configured).

OOPS! That was my error! I didn't take enough attention to note that it was from RTS to DSR. I'll try it and dispense with the battery (it is a momentary closure btw).

Something else I would find useful is a PAUSE function acting over all timers.

I've just noticed that the countdown is too fast, gaining 7 seconds over a ten minute period. I wondered why my sums weren't working out! Could the 286 internal clock be running too fast? Not much of an expert in these areas I'm afraid.

Last edited by xiptron; 27th May 2009 at 03:58 AM.
xiptron is offline  
Old 27th May 2009, 05:41 AM   #22
Default

I can add a PAUSE function. I noticed it runs about 7 seconds per 10 min faster than the PC clock too! If anything, I would expect a problem where it runs a bit slow due to processing time??? I'll need some time later to work on those things.
ccurtis is offline  
Old 27th May 2009, 01:40 PM   #23
Default

Ver 6b is working well and the mods are great.

Adding PAUSE to the next version will be cool.

For now I'm applying a correction factor of 1.0117 to obtain the correct durations (thank heavens for spreadsheets!). Let me know when you've found the problem (would slowing down my cpu help? There are a few programs around to do this).
xiptron is offline  
Old 2nd June 2009, 08:50 AM   #24
Default

Just thought I'd let you know CC that I've had to stop using your software for the present. It's a shame after all the work you did for me but the error is a big problem and the correction factor isn't working out over my longer timing periods. I tried slowing the 286 cpu down and it seemed to help but it still doesn't have the accuracy I need over periods like 90 to 180 minutes. Maybe it's not a cpu thing? While I appreciate the problems involved I think the timer design may need to be one compatible with todays faster processors and operate under Windows. You may not want to go to this trouble and I will understand that.

Last edited by xiptron; 2nd June 2009 at 08:59 AM.
xiptron is offline  
Old 2nd June 2009, 01:37 PM   #25
Default

Just read the PC clock and use that to control the durations. It's no harder to read the clock in hardware than to write to the serial port in hardware.
Mr RB is offline  
Old 3rd June 2009, 01:09 AM   #26
Default

Xiptron, this version uses a function which is tied to the PC's clock. I think it solves the timing issue. I also added a pause function. Let me know. Regards
Attached Files
File Type: zip MULTI6D.zip (24.3 KB, 2 views)
ccurtis is offline  
Old 5th June 2009, 10:46 PM   #27
Default

CC many thanks, please see txt attached.
Attached Thumbnails
using Com port for signalling-dostimer-revision-.jpg  
Attached Files
File Type: txt changes4dostimer.txt (1.3 KB, 10 views)

Last edited by xiptron; 5th June 2009 at 10:56 PM.
xiptron is offline  
Old 6th June 2009, 01:42 AM   #28
Default

Gary, I can do most of those things if not all of them. I'll be back with an update in the next few days.
ccurtis is offline  
Old 6th June 2009, 11:49 AM   #29
Default

Someting that could help: PC timer which also raises RTS and DTR on timeout.
dmitry_n is offline  
Old 8th June 2009, 03:05 AM   #30
Default

Cool, thanks cc. Just one last thing, can you replace "EXPIRED' back with the original 00:00:00 syntax. Looks better. Ta
xiptron is offline  
Reply

Tags
port, signalling

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
programmer serial port vs. laptop with usb port crys Micro Controllers 9 18th January 2008 01:52 PM
Signalling rate & data transfer rate? Celestie84 General Electronics Chat 2 17th June 2004 07:36 PM
Operate a relay from a PC port RS232 or Parallel port Eddie ESV Electronic Projects Design/Ideas/Reviews 2 12th June 2004 08:43 AM
[ann] COM Port Toolkit - serial port monitoring on Win32 PCs MGolikov Electronic Projects Design/Ideas/Reviews 0 6th April 2004 07:17 AM
Designing a circuit to convert game port to serial port Diluka Moratuwage General Electronics Chat 1 29th July 2003 05:40 PM



All times are GMT. The time now is 06:01 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker