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

Serial port1

podbelsek982
Beginner
670 Views
Hello.
I have some questions. Is there any possibility to send output signal (let's say I need voltage to switch something) on one of 9 pins in com1. I have a program for Winamp which is using com1 and it goes something like that: there are four buttons and 5 pins of 9 are used. One pin (4 i think) for output voltage and the other 4 are conected trough buttons on this one. So PLEASE help me. Is there any chance to just send some voltage to one of pins for some seconds. If you could tell me something about that, i've got some more questions.
Thank you very much
Urban
0 Kudos
2 Replies
durisinm
Novice
670 Views
Look up the SPORT (serial port) documentation in VF on-line help. That set of routines may help you accomplish what you want to do.

Mike
0 Kudos
james1
Beginner
670 Views
You can use either the SPORT library routine SPORT_SPECIAL_FUNC or the underlying Win32 routine EscapeCommFunction to raise most commonly DTR or RTS, wait the appropriate amount of time, then drop the chosen signal using the same routine.

James
0 Kudos
Reply