Shop OBEX P1 Docs P2 Docs Learn Events
Printing graphic on a serial printer — Parallax Forums

Printing graphic on a serial printer

londlond Posts: 9
edited 2006-02-16 17:07 in BASIC Stamp
Hi!

I have build a acceleration meter and logger and I have got hold on a serial printer with batterybackup.

I can print normal text, but the printer should print graphics to, butt I can't get it to work.

I want to print my values in a graf with the printer. Can anyone help me?!

//Marcus.

Post Edited (lond) : 2/16/2006 4:59:14 PM GMT

Comments

  • FranklinFranklin Posts: 4,747
    edited 2006-02-12 20:58
    Get the manual for the printer. It will usually tell you the "escape codes" you need to send for graphics if they are at all possible.
  • londlond Posts: 9
    edited 2006-02-12 23:04
    The littel of manual I got is telling me that if I use command ESC K m n it's sets singel density gaphics mode, but then?

    The printer is a Kyosha Kyoline and i can't find the whole manual.

    And then how do i convert my data to graphic?

    //Marcus

    Post Edited (lond) : 2/12/2006 11:12:40 PM GMT
  • Robert KubichekRobert Kubichek Posts: 343
    edited 2006-02-13 00:11
    lond said...
    The littel of manual I got is telling me that if I use command ESC K m n it's sets singel density gaphics mode, but then?

    The printer is a Kyosha Kyoline and i can't find the whole manual.

    And then how do i convert my data to graphic?

    //Marcus

    Here are some links that might help;

    www.elfa.se/pdf/25/02578920.pdf

    Take a look at the emulation modes...

    Here is the manufacturers website;

    www.kyosha.net/accueil_eng.htm

    They would have the info you are seeking.


    Bob N9LVU scool.gif
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-02-13 00:12
    lond -

    I guess your best bet at this point is to try and contact the factory here:
    http://www.kyosha.net/contact_eng.htm

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • londlond Posts: 9
    edited 2006-02-15 21:46
    I have been able to print som very simpel graphics on the printer now! [noparse]:)[/noparse]

    Can anyone help me to convert my data, so I can print it from the stamp µP.

    The data is saved as a Word-sized in a i2c-memory and goes from -13.5g to +13.5g.


    //Marcus
  • londlond Posts: 9
    edited 2006-02-16 17:07
    How do I convert data that are fomated like this:

    8000h FFFFh 0000h 7FFFh
    <
    -0.01 0.00
    >

    to this:

    0 256 512
    or
    0 320 640

    Then I can print my data like a graph, one row at the time.

    //Marcus
Sign In or Register to comment.