+ Post New Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 54
  1. #1
    Member level 3
    Points: 2,269, Level: 11
    PlatinumT's Avatar
    Join Date
    Sep 2002
    Location
    Arkansas
    Posts
    58
    Helped
    1 / 1
    Points
    2,269
    Level
    11

    access serial port using inpout32.dll vb6

    What is the best language to write windows programs to access the serial port? I have a little experience with C/C++.

  2. #2
    Full Member level 5
    Points: 3,614, Level: 14

    Join Date
    Sep 2002
    Posts
    256
    Helped
    27 / 27
    Points
    3,614
    Level
    14

    best language serial port

    Quote Originally Posted by PlatinumT
    What is the best language to write windows programs to access the serial port? I have a little experience with C/C++.
    Almost every language supports communications via serial. Search in the internet, there are a lot of usefull tips.

    In C it can be simple done if you use interrupts and assembler.



  3. #3
    Member level 2
    Points: 1,983, Level: 10

    Join Date
    Feb 2003
    Posts
    43
    Helped
    1 / 1
    Points
    1,983
    Level
    10

    Best language to access serial port?

    Dear all
    you can use every languge(or compiler) that support windows programming such as Delphi ,VC ,VB or Jave C Bulider ,J Bulider and .....
    but as ahmet2004 said if you choose Delphi or C Bulider you cand find alot of free components that simplify your task
    Bye.



    •   AltAdvertisement

        
       

  4. #4
    Member level 3
    Points: 3,334, Level: 13

    Join Date
    Jan 2003
    Posts
    64
    Helped
    0 / 0
    Points
    3,334
    Level
    13

    Re: Best language to access serial port?

    Hi Ali,
    I use Delphi with TComport

    http://sourceforge.net/projects/comport/

    wich is freeware for all use. I have several projects with it and I can assure that is very simple to use. You have to forget interrupt, i/o, or something else, just concentrate yourself to the protocol you have to implement.

    HTH, Sirio.



  5. #5
    Member level 3
    Points: 3,334, Level: 13

    Join Date
    Jan 2003
    Posts
    64
    Helped
    0 / 0
    Points
    3,334
    Level
    13

    Re: Best language to access serial port?

    Sorry, :?
    I forgot to say that TComport is also compatible with C++ Builder and it comes with some examples of use!

    bye!

    Sirio.



  6. #6
    Newbie level 3
    Points: 1,624, Level: 9

    Join Date
    Sep 2004
    Posts
    4
    Helped
    0 / 0
    Points
    1,624
    Level
    9

    Best language to access serial port?

    Hi,

    There are a loot of Dll sources in C that will do the trick and provide a generic interface for C,C++,VB, PASCAL, embedded design, etc.

    Do a google on "Serial+Dll+source" and you'll come up with a lot of info!



  7. #7
    Advanced Member level 3
    Points: 9,252, Level: 23
    djalli's Avatar
    Join Date
    Nov 2001
    Location
    1600 Pennsylvania Avenue, Washington DC 20500
    Posts
    825
    Helped
    31 / 31
    Points
    9,252
    Level
    23

    Re: Best language to access serial port?

    Quote Originally Posted by PlatinumT
    What is the best language to write windows programs to access the serial port? I have a little experience with C/C++.
    You can use assembly if you like. Actually if you are crazy enough.

    You want my opinion since you asked this question openly.

    C or C++ is most common one. You can be cheap an rely on VBRUNxxxx.dll and use serial.OCX (used to be called *.VBX) to do the same thing.

    You choose.



  8. #8
    Member level 1
    Points: 1,974, Level: 10

    Join Date
    Jul 2002
    Posts
    40
    Helped
    1 / 1
    Points
    1,974
    Level
    10

    Re: Best language to access serial port?

    Quote Originally Posted by PlatinumT
    What is the best language to write windows programs to access the serial port? I have a little experience with C/C++.
    MATLAB has extensive support for serial port interface, including nice debugging feature.



    •   AltAdvertisement

        
       

  9. #9
    Full Member level 6
    Points: 6,652, Level: 19

    Join Date
    Jul 2001
    Posts
    322
    Helped
    32 / 32
    Points
    6,652
    Level
    19

    Re: Best language to access serial port?

    I use LabVIEW. With LabVIEW you don't need to search any DLL.



    •   AltAdvertisement

        
       

  10. #10
    Full Member level 1
    Points: 2,907, Level: 12
    wylee's Avatar
    Join Date
    Feb 2004
    Location
    Malaysia
    Posts
    98
    Helped
    8 / 8
    Points
    2,907
    Level
    12

    Best language to access serial port?

    I know how to do it using Visual Basic, here is 2 links for your reference...

    Sending data from serial port
    http://www.rentron.com/sending_data.htm

    Receiving data from serial port
    http://www.rentron.com/receiving_data.htm



  11. #11
    Full Member level 2
    Points: 2,777, Level: 12

    Join Date
    Aug 2004
    Posts
    135
    Helped
    8 / 8
    Points
    2,777
    Level
    12

    Re: Best language to access serial port?

    VB is very easy for me.
    I used in my projects.



  12. #12
    Full Member level 1
    Points: 2,863, Level: 12

    Join Date
    Feb 2002
    Posts
    106
    Helped
    32 / 32
    Points
    2,863
    Level
    12

    Re: Best language to access serial port?

    Use Delphi components is an easy way.



  13. #13
    Full Member level 3
    Points: 3,707, Level: 14
    tcsa35's Avatar
    Join Date
    Mar 2002
    Posts
    171
    Helped
    10 / 10
    Points
    3,707
    Level
    14

    Best language to access serial port?

    Hi

    You can use VC++

    The file input and output (I/O) functions (CreateFile, CloseHandle, ReadFile, ReadFileEx, WriteFile, and WriteFileEx) provide the basic interface for opening and closing a communications resource handle and for performing read and write operations. The Microsoft® Win32® API also includes a set of communications functions that provide access to communications resources. This overview describes the use of file I/O and communications functions.



    Enjoy



  14. #14
    Member level 3
    Points: 1,866, Level: 10

    Join Date
    Jan 2004
    Posts
    64
    Helped
    2 / 2
    Points
    1,866
    Level
    10

    Re: Best language to access serial port?

    Learnning to programm the serial port is not a simple task, therefore depending on yours goals U can use those advices:

    If U like to be an amator use VB, DOS (it's simple)

    If you are a job hunter for today : use C C++

    If you are a job hunter for today and tomorow use Java, C#



  15. #15
    Newbie level 3
    Points: 1,500, Level: 8

    Join Date
    Sep 2004
    Posts
    4
    Helped
    0 / 0
    Points
    1,500
    Level
    8

    Re: Best language to access serial port?

    Does someone know how to do this in Java? Maybe a link with example programs....
    Thanx.



  16. #16
    Newbie level 6
    Points: 1,530, Level: 8

    Join Date
    Sep 2004
    Posts
    12
    Helped
    0 / 0
    Points
    1,530
    Level
    8

    Re: Best language to access serial port?

    i use in the last project with MATLAB , it is very easy and simple , but may be u face some problem to optimaize the speed of it..



  17. #17
    Member level 2
    Points: 1,876, Level: 10
    mexx's Avatar
    Join Date
    Dec 2003
    Posts
    49
    Helped
    0 / 0
    Points
    1,876
    Level
    10

    Re: Best language to access serial port?

    i think visual basic is the easiest language to control your serial port...its too simple...u can do anything in mscomm environment



  18. #18
    Newbie level 3
    Points: 1,484, Level: 8

    Join Date
    Oct 2004
    Posts
    4
    Helped
    0 / 0
    Points
    1,484
    Level
    8

    Re: Best language to access serial port?

    C is the best. Simple. Seek outportb function and your program will be done.



  19. #19
    Newbie level 6
    Points: 1,600, Level: 9

    Join Date
    Jul 2004
    Posts
    11
    Helped
    1 / 1
    Points
    1,600
    Level
    9

    Re: Best language to access serial port?

    Quote Originally Posted by asrafiel
    C is the best. Simple. Seek outportb function and your program will be done.
    outportb can use in dos and old windows but it can't use in windows xp and nt



  20. #20
    Full Member level 4
    Points: 4,903, Level: 16
    sinatra's Avatar
    Join Date
    Mar 2002
    Location
    Neverland
    Posts
    214
    Helped
    19 / 19
    Points
    4,903
    Level
    16

    Re: Best language to access serial port?

    Hello all.
    For the ones who would like to use a dll to access a hardware port.
    The best dll available now, that doesn't need any installation or copy of files etc... is:
    http://www.logix4u.net/inpout32.htm

    But for a beginer I would advise to use MSComm.
    It is accessible from visual basic and visual c. You will find everything about it in MSDN help (help from visual studio).

    For the ones who are using visual basic, it is worth to take a look in the book:
    "serial port complete", there are many programs available in the disquette.

    For convinience I attached the files to this message.

    Greetings to all.
    S.



    •   AltAdvertisement

        
       

--[[ ]]--