Re: Data logger using HP48GX



On Feb 25, 3:42 am, DMach <dan.m...@xxxxxxxxx> wrote:
Hello,

I have been trying to find a program that can receive data input from
this Computer Serial Temperature Meter & Data Logger (http://www.quasarelectronics.com/3145.htm), the output data is a continuous
stream in simple text format (sensor number 1 through 4 followed by
temperature reading to 2 decimal places).

It should store the data to a file, so I can use it in excel later.

The terminal program in Windows is set to 2400 baud, 8 bits, no
parity, 1 or 2 stop bits, I think the 48GX can handle it.

Can anyone help me find the right direction?

Thanks in advance!

Hi Dan,

A buffer such as the one TomCee describes in his document is necessary
so you can get the HP48 TxD voltage up to something the data logger
will recognize. ONce you get the HW problem solved, you're on to SW
problems. For this you'll use some grunt-level serial I/O commands in
the HP48.

1. First, use the OPENIO command to activate the serial port.
2. When you need to send a command to the datalogger, enter it as an
alpha string in Level 1 and use XMIT to send it. You'll get a
"result" flag in Level 1, which
you can drop (assuming the transfer was successful).
3. When your datalogger is spitting data at you, you have two
options:
a. Use BUFLEN to see how many characters are in the 48 buffer,
then DROP to get rid of the "result" flag in Level 1, then SRECV to
read that number of characters.
b. Put an arbitrary number in Level 1, then SRECV to read that
number of characters.
You'll end up with a character string in Level 2 and another
"result" flag in Level 1. (I always used the BUFLEN DROP SRECV,
because I never knew what
size my data strings were going to be.)
4. The "result" flag can help you diagnose connection problems. See
http://www.hpcalc.org/hp48/docs/misc/iotest.txt for more information
on testing your serial port.
5. When you're finished receiving data, use CLOSEIO to turn off the
serial port and save battery power.

--
Regards
Ray Depew
.



Relevant Pages

  • Re: GetCharacterPlacement() problems
    ... > incorrectly and returning a small number of characters able to be fit into the available space when there's space for plenty more. ... GetCharaterPlacement() twice, the first with the GCP_MAXEXTENT flag only with FLI_GLYPHS ... and GCP_USEKERNING masked off) to get the number of characters of the string that could be displayed on the line. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Limiting characters in a text field
    ... up a "rules of use" guide for all users of Project in your organization. ... In addition to just limiting the number of characters in text fields, ... control (i.e. TaskChange event macro). ... Set up a formula in a spare flag ...
    (microsoft.public.project)
  • Re: Writing a byte to a specific location in a file
    ... what kind of file it is, then encode the characters according to this. ... The preamble for an UTF8 file is the three bytes EF BB BF. ... The first character is a flag indicating the file has changed and the 2 - ... Below is a sub that I am using to try and update the first flag. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Line Method Explanation?
    ... > just the Line method's syntax in comparison to the standard syntax of all ... > a) Where is the Required flag? ... > BF tells the line method you want a Filled In rectangle/Box). ... > characters are either a variable, a constant, or you put quotation marks ...
    (microsoft.public.access.reports)