Discussion Overview
The discussion revolves around whether FORTRAN 95 can support hardware serial ports and allow for their configuration, including parameters such as baud rate, parity, data bits, and stop bits. Participants explore the feasibility of using FORTRAN for serial communication, particularly in the context of the G95 compiler and its capabilities on Windows 7.
Discussion Character
- Technical explanation
- Debate/contested
- Exploratory
Main Points Raised
- Jim inquires about the ability of FORTRAN to read from and write to a COM port, as well as configure it.
- One participant asks about the operating system being used, indicating that the environment may affect the solution.
- Another participant suggests checking a different thread for potential solutions regarding port access.
- It is proposed that FORTRAN can theoretically call system libraries for port access, but practical implementation with G95 on Windows 7 remains uncertain.
- A participant expresses skepticism about using FORTRAN for this task and suggests using a C or C++ library, such as Boost.Asio, to handle serial communication instead.
- Jim mentions that he is currently using a VB6 program to manage the serial port and pass data to the FORTRAN program for processing.
- Another participant challenges Jim's approach, arguing that the architectures discussed do not support extensive string processing or system calls, and suggests using shared memory with a C library linked to FORTRAN.
- Jim defends his use of VB6, stating that it effectively handles the I/O tasks and questions the necessity of switching to C or modifying his current setup.
- A participant reiterates the importance of architecture in the discussion, implying that the choice of programming language and method affects the overall solution.
Areas of Agreement / Disagreement
Participants express differing views on the suitability of FORTRAN for serial communication tasks. While some suggest alternative approaches using C or VB6, Jim maintains that his current VB6 solution is adequate. The discussion remains unresolved regarding the capabilities of G95 in this context.
Contextual Notes
The discussion highlights limitations related to the specific capabilities of G95 and the practical implementation of serial communication in FORTRAN, which may depend on the operating system and the architecture of the programs involved.