- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My answer got me to thinking: Will the upcoming Intel Visual Fortran include the SPORT routines?
Mike
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you mike.
Think: How many fortran and c/c++ compilers are we going to have installed in the next 2 years?
Agostino
Think: How many fortran and c/c++ compilers are we going to have installed in the next 2 years?
Agostino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Paul Curtis
pcurtis@kiltel.com

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page