Simple Serial port programming in VC++
-
Hi, I would like to program a serial port in my VC++ program. All I want to do is whenever I had a mouse click event, I would like to send a positive trigger (sort of a TTL) signal over the com port (so that I can analyse the signal over an oscilloscope for furthur analysis). Is there any simple way of doing this?? thanks, -Pavan
-
Hi, I would like to program a serial port in my VC++ program. All I want to do is whenever I had a mouse click event, I would like to send a positive trigger (sort of a TTL) signal over the com port (so that I can analyse the signal over an oscilloscope for furthur analysis). Is there any simple way of doing this?? thanks, -Pavan
1)Open Port 2)Write Port 3)Close Port on the button event. have a look http://www.ontrak.net/mfc.htm
Appu.. "If you judge people, you have no time to love them."
-
Hi, I would like to program a serial port in my VC++ program. All I want to do is whenever I had a mouse click event, I would like to send a positive trigger (sort of a TTL) signal over the com port (so that I can analyse the signal over an oscilloscope for furthur analysis). Is there any simple way of doing this?? thanks, -Pavan
for anything to do with serial ports you have to check out the CSerial library found right here on codeproject. Ive used it many atime and quite frankly its the bomb! http://www.codeproject.com/system/serial.asp
-
for anything to do with serial ports you have to check out the CSerial library found right here on codeproject. Ive used it many atime and quite frankly its the bomb! http://www.codeproject.com/system/serial.asp
Thanks for the link... that library seems great to work with Serial communication. But how can I send data over a single pin on a com port?? Like say, I want to send a 5V signal over pin1 of a serial port on an event in my program, how can I do that?? My program is not an MFC based program, its a pure C++ program written in VC++, to say its actually a DLL I use to interact with from matlab. -Pavan
-
for anything to do with serial ports you have to check out the CSerial library found right here on codeproject. Ive used it many atime and quite frankly its the bomb! http://www.codeproject.com/system/serial.asp
Hi... I managed to use the library provided over here. Thanks for that great library... -Pavan