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

F77

e309x5
Beginner
791 Views
Can fortran 77 address usb ports? If so how can impliment?
0 Kudos
3 Replies
Steven_L_Intel1
Employee
791 Views
Quoting - e309x5
Can fortran 77 address usb ports? If so how can impliment?

Fortran, the language, has no concept of USB ports. However, there are many things you can do with USB ports on Windows by calling Win32 API routines from Fortran. (If you're in this forum, Fortran 95/2003 is what you're using.)

What in particular did you want to do with a USB port? The function you want affects how you do it.
0 Kudos
e309x5
Beginner
791 Views
I am basically trying to communicate with a USB dongle. The code that came with the dongle searches for a parallel port dongle. So when we try to find the usb dongle it doesnt find it. We found another vendor that used fortran 90 and effectively found the usb dongle. Unfortunately we are using fortran 77 which does not support the INTERFACE data structure. Thanks for the response.


Fortran, the language, has no concept of USB ports. However, there are many things you can do with USB ports on Windows by calling Win32 API routines from Fortran. (If you're in this forum, Fortran 95/2003 is what you're using.)

What in particular did you want to do with a USB port? The function you want affects how you do it.

0 Kudos
Steven_L_Intel1
Employee
791 Views
Whose compiler are you using? If it is not Intel Visual Fortran or Compaq Visual Fortran, you'd need to ask in the support forum for that other compiler.

Generally, when using a USB to parallel port converter, there is a new LPTn port defined and you would interface to that using the traditional methods for accessing parallel ports.
0 Kudos
Reply