![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

At 04:04 PM 2/4/03 -0800, Noel Henson wrote:
>Elizabeth D. Rather wrote:
>
> > At 06:25 AM 1/30/03 -0800, you wrote:
> >
> >
> >> Is there a way to get SwiftX to print to both the screen and the printer
> >> simultaneously? Currently I'm using >print to print to the printer.
> >> Thanks!
> >> Noel
> >
> >
> > Are you talking about the SwiftX target, or the PC host?
> >
> > For the target, it would be quite easy: you have separate TERMINAL
> > tasks for the printer and display, and they can even be executing
> > the same display word concurrently (with local vectored words
> > for things like CR and PAGE and lines/page, etc.).
> >
> > On the PC side it's harder. The SwiftX host environment isn't
> > really designed to support much Windows programming, which is
> > what you're talking about here. You could get SwiftForth and
> > write code to accept data from the target on the serial port and
> > generate whatever reports & displays you need.
> >
> > Cheers,
> > Elizabeth
>
>I have SwiftForth and SwiftX for the 68K family. Right now I've a
>manufacturing test program for board-level diagnostics that runs on the
>target under the PC host control with (for all practical purposts)
> >print test. Test results appear on the PC printer (after a dialog for
>printing that Windows does automatically). If the tests work out, the
>target programs itself with the assembly-level tests. It works really
>well except that the technician can't see anything happening on the
>display for about 30 seconds and it really bugs them.
>
>To solve all of this I think I need an output personality the combines
>both the winprint personality with that for the screen. Specifically I
>think I need to patch these vectors in winprint: [emit], pr-type and
>[crlf]. I have these in SwiftForth and the seem to correspond with
>what's going on in SwiftX. Is it possible for me to create a new
>personality in SwiftX that would >print+screen ? Can I do it in
>SwiftForth and patch it into SwiftX?
My recommendation would be to approach it from the SwiftForth side
first. Assume you're receiving data on a serial port and would like to
simultaneously display it on printer & screen. Unfortunately, I personally
haven't a clue how to do this (programmatic printer output under Windows is
hard). But if you define that as the mission, you can ask the folks on the
SwiftForth email forum for recommendations & code, and IMO someone there is
very likely to know how. Then you can see about making that work with the
SwiftX host.
Cheers,
Elizabeth
==================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
==================================================
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
How to reply: Use your email client's "Reply All" function to reply to
the entire list (preferred). Use "Reply" for private reply to sender.
----------------------------------------------------------------------
Please send bug reports to support_at_forth.com. No file attachments.
----------------------------------------------------------------------
Received on Tue Feb 04 2003 - 16:15:30 PST
This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 03:04:21 PST