Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to identify the ports available in my system  RSS feed

 
Ethiraj Palchuru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my below code


While I execute the above code, the control doesn't enter the while loop. I have a serial port in my CPU and its working.

Please help me on this.
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch, Ethiraj.

Not sure on the problem, but when I execute the below code I get 4 ports COM1, COM2, LPT1 and LPT2 in my desktop. Try it and let us know if you still don't get any output.

 
Ethiraj Palchuru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks John Jai for your reply. I hope there is not ports available in my system.



John Jai wrote:Welcome to Javaranch, Ethiraj.

Not sure on the problem, but when I execute the below code I get 4 ports COM1, COM2, LPT1 and LPT2 in my desktop. Try it and let us know if you still don't get any output.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!