For Programmers: Free Programming Magazines  


Home > Archive > Fortran > March 2006 > Serial port programming with G95









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Serial port programming with G95
Mantas

2006-01-10, 4:11 am

Hi, I am searching information about serial port programming with G95
on Windows (G95 because it is free). Maybe someone can tell, is there
any library (-s) or something like dll's for this task or maybe I can
do this with READ and WRITE?

Joe

2006-01-10, 4:11 am

READ/WRITE to filename "COM1:" will probably work for simple tasks if
you set the serial port defaults to match the desired I/O settings, and
if you are not trying no monitor control lines. You might also need to
set the environment variable G95_UNBUFFERED_ALL, or call flush()
frequently.

Ken Plotkin

2006-01-10, 4:11 am

On 29 Dec 2005 13:57:43 -0800, "Joe" <jkrahn@nc.rr.com> wrote:

>READ/WRITE to filename "COM1:" will probably work for simple tasks if
>you set the serial port defaults to match the desired I/O settings, and
>if you are not trying no monitor control lines. You might also need to
>set the environment variable G95_UNBUFFERED_ALL, or call flush()
>frequently.


WRITE will certainly work, but READ will be uncertain. Likely to
depend on the particular machine. PC hardware/firmware just does not
have a decent device driver built in.

The Windows API does have good serial handling. If serial input is
neeed, it's worth trying to access that.

Ken Plotkin

Mantas

2006-01-10, 4:11 am

Ken Plotkin wrote:
> On 29 Dec 2005 13:57:43 -0800, "Joe" <jkrahn@nc.rr.com> wrote:
>
> WRITE will certainly work, but READ will be uncertain. Likely to
> depend on the particular machine. PC hardware/firmware just does not
> have a decent device driver built in.
>
> The Windows API does have good serial handling. If serial input is
> neeed, it's worth trying to access that.
>
> Ken Plotkin


Maybe there is some links with description how to call API functions
with G95?

mermaldad

2006-03-30, 7:26 pm

quote:
Originally posted by Mantas

Maybe there is some links with description how to call API functions
with G95? [/B]


I'm interested in the same sort of thing. Did you ever find something?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com