Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

inp port

jackrobisonjackrobison Posts: 3Member
I am trieing to use the inp function to get readings from ports. The only problem is that i do not know what the port numbers are assigned to and when I have tried quickbasic shuts down and says something like "Windows cannot open COM4". What does that mean? How can i find the port numbers?

Comments

  • anthrax11anthrax11 Posts: 511Member
    : I am trieing to use the inp function to get readings from ports. The only problem is that i do not know what the port numbers are assigned to and when I have tried quickbasic shuts down and says something like "Windows cannot open COM4". What does that mean? How can i find the port numbers?
    :

    In most cases you can assume, that the port numbers are the following:

    COM1 - &H3F8
    COM2 - &H2F8
    COM3 - &H3E8
    COM4 - &H2E8

    LPT1 - &H378
    LPT2 - &H278

    Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
    If this didnt help, just ask more questions;-)
  • IDKIDK Posts: 1,784Member
    : : I am trieing to use the inp function to get readings from ports. The only problem is that i do not know what the port numbers are assigned to and when I have tried quickbasic shuts down and says something like "Windows cannot open COM4". What does that mean? How can i find the port numbers?
    : :
    :
    : In most cases you can assume, that the port numbers are the following:
    :
    : COM1 - &H3F8
    : COM2 - &H2F8
    : COM3 - &H3E8
    : COM4 - &H2E8
    :
    : LPT1 - &H378
    : LPT2 - &H278
    :
    : Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
    : If this didnt help, just ask more questions;-)
    :
    Some times winXP won't allow you to use the ports.
  • casio-games.tkcasio-games.tk Posts: 35Member
    : : : I am trieing to use the inp function to get readings from ports. The only problem is that i do not know what the port numbers are assigned to and when I have tried quickbasic shuts down and says something like "Windows cannot open COM4". What does that mean? How can i find the port numbers?
    : : :
    : :
    : : In most cases you can assume, that the port numbers are the following:
    : :
    : : COM1 - &H3F8
    : : COM2 - &H2F8
    : : COM3 - &H3E8
    : : COM4 - &H2E8
    : :
    : : LPT1 - &H378
    : : LPT2 - &H278
    : :
    : : Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
    : : If this didnt help, just ask more questions;-)
    : :
    : Some times winXP won't allow you to use the ports.
    :
    Just wanted to tell that the keyboard is INP(96) :-D

    Its great for games! I discovered that INP in a program by IDK and then changed most of my programs ;-)

    But its not good for text input as you would get key input too often. INKEY$ just returns something a definied times per second.
    [hr][hr]
    Don't write pH, write Ph!



Sign In or Register to comment.