BeanieBots
Moderator
I wasn't as sharp eyed as Dippy but it proves my point about having only ONE point were sensors are read. Even if that is called many times by a subroutine.
SERTXD is on page 153 in the latest version of the manual 2.Manual 2, page 146.
Just put the command in a few strategic places in your code.
You can then know WHERE you are in the program and WHAT VALUE various variables are at that time.
It probably is, but the link at the top of the forum still shows it on page 146.SERTXD is on page 153 in the latest version of the manual 2.
OK, done that...and eventually figured I needed to (and how to) turn the terminal screen on so I could actually see it !....looks damn useful stuffSomething like, for xample, in your StillDark routine:-
sertxd(“Still Dark Routine. The value of LDR is ”,#w1,13,10)
yes...or a pause functionDunno.
A 'stop/start' or 'connect/disconnect' button would be nice wouldn't it.
Well spotted that man, I wondered when you'd see my deliberate mistake ...I have now made all the read commands "readldr" and put them in one sub-routine as suggested by yourself and Beaniebots...I can see the benefit of this now.I just noticed In your 'dark:' routine and others you're doing a readadc not readadc10.
....or perhaps directing it into a file so you can save and go over it later ?Technical, how about it? A button on the Terminal Window to control the display. So you can stop great fast lumps of serial so you can take a quick squiz?
Yes it appears to....but only the visible part at the time you request it....I assume "Copy Input Buffer" stuffs it into clipboard?
Seemed like a good idea at the time.....also when you have the terminal window open it seems to miss capturing the first few operations......I am thinking a reset after the prog starts would overcome thisWhy do you want to do that at the start of the programme?
.... the program editor - which is then sent to the PIC with F5 and the program editor then locks up on the PC (and on my laptop), both are using the USB lead as I don't have any serial ports"the PICAXE program .."
- is that the code on your PICAXE or the Programme Editor?
I am using a PIC18X - that may explain it then !......I forget which PICAXE you are using
I am trying to see the result of a continuing READADC function - maybe that's the reasonCertainly if you try to send too much serial data back from a picaxe it will lock up
....which is precisely why I asked whether a "pause" function or a "write to file" option could be added to the terminal program window !But you can't read the data that fast anyway, unless you have super x-ray eyes coupled to a 50Ghz brain!
Aha sounds good....any clues as to how please - I am not up to speed on setting up HT although I have used it - I am using the USB interface lead (no serial ports)assuming hyper terminal is installed you can use that to capture everything to a text file that way you avoid the limitations of the clipboard and the programming editor terminal textbox
This IS post 110 ???I think post 110 on "how to read an LDR" says it all really.
Enough theory, let's try it shall we?
I replied to that yesterday - post #95 ...has it gone un-read ?"Just put pauses in your code."
- I mentioned that yesterday... has it gone unheeded?
As above !Use the Sertxds and pauses and labels and loops like you were stepping through the code.
Hey, nice one....it works a treat !Fire up hyterterminal. Select a name
Now set up the baud rate to 4800, 8 data bits, no parity, one stop bit and set Flow Control to none
Actually I found it easier to switch between them as you can't delve into the listing to see what is happening or make any changes without closing the terminal window first !......And swapping back and forth between hyperterminal and the picaxe programmer is going to be a real pain
Just found this on another threadFire up hyterterminal. Select a name (you can find the little .ht file it creates, then drag a shortcut to the desktop so next time you don't need to add all the settings - just click on that). Select your com port. That might be a bit tricky if you are using USB, but it will be the same number as the com port in the picaxe editor settings (View/Options/Serial tab). For real serial connections, it usually is COM 1.
Now set up the baud rate to 4800, 8 data bits, no parity, one stop bit and set Flow Control to none.