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.

Unit for com port

tctctctc Posts: 1Member
I made a progam (typed over from a book)
But in the book they uses commands like:

lst - aux - kdb

example:
writeln(aux,regel);


regel is a var. but aux is unknown
But they do not use a unit or something.
These commands don't work here.

Does anyone know how to fix this? which unit i should use?

Comments

  • ibyiby Posts: 323Member
    : I made a progam (typed over from a book)
    : But in the book they uses commands like:
    :
    : lst - aux - kdb
    :
    : example:
    : writeln(aux,regel);
    :
    :
    : regel is a var. but aux is unknown
    : But they do not use a unit or something.
    : These commands don't work here.
    :
    : Does anyone know how to fix this? which unit i should use?
    :
    :


    I'm not sure what was that about but if you are looking
    for units that will allow you to use COM port, use any
    search engine for keywords like ASYNC, TERMINAL etc.
    In fact, check the download side of the porgrammers heaven.
    There are few files that do just this.

    Iby
  • jasonpsagejasonpsage Posts: 37Member
    : I made a progam (typed over from a book)
    : But in the book they uses commands like:
    :
    : lst - aux - kdb
    :
    : example:
    : writeln(aux,regel);
    :
    :
    : regel is a var. but aux is unknown
    : But they do not use a unit or something.
    : These commands don't work here.
    :
    : Does anyone know how to fix this? which unit i should use?
    :
    Iby had a good suggestion. I think aux is auxilary channel - like when you are writing to a file writeln(file,data);

    This method of talking to the comm port on a DOS machine is far from IDEAL. People used to load what they call fossil drivers to ease writing comm port apps. Are you using a DOS machine? If you are using windows, I would try to use an api for the communication protocol you are trying to use. Straight Comm port? Will TAPI or something work for you? I don't know - since the internet - I haven't had to do any direct commport stuff. I have written commport stuff to talk with devices other than modems though - and I used VB and a comm control that was more or less a lib to do the actual communication stuff - simplifying it greatly.

    Good Luck.


Sign In or Register to comment.