Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Managing serial ports with CVF

agodemar
Beginner
1,024 Views
Is it possible to manage a serial port with CVF ?
The reason for this question is:
I'm going to convert a simulation code written in fortran, and accepting input from file, into a code who
accepts a flow of data coming from a serial port in real-time.
I'm aware I'll need to create separate operational threads to do the different jobs,
but before starting the development of this new code, I'd like to know if I can stay confined in the Fortran world.
0 Kudos
4 Replies
durisinm
Novice
1,024 Views
CVF comes with about 16 SPORT routines for managing a serial port.

The online help states:

The SPORT_xxx routines help the Fortran programmer perform basic input and output to serial ports. The programming model is much the same as a normal file except the user does a connect (SPORT_CONNECT) and release (SPORT_RELEASE) to the port instead of an open and close of a file.

Mike
0 Kudos
durisinm
Novice
1,024 Views
My answer got me to thinking: Will the upcoming Intel Visual Fortran include the SPORT routines?

Mike
0 Kudos
agodemar
Beginner
1,024 Views
thank you mike.
Think: How many fortran and c/c++ compilers are we going to have installed in the next 2 years?

Agostino
0 Kudos
pcurtis
Beginner
1,024 Views
I have a complete multithreaded F90 module for serial communications on multiple ports, using the Win32 API functions (NOT the sport routines). The code is too big to post here, but send me an email & I'll send you a copy.
Paul Curtis
pcurtis@kiltel.com
0 Kudos
Reply