+ Post New Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 25
  1. #1
    Junior Member level 1
    Points: 1,208, Level: 7

    Join Date
    Sep 2006
    Posts
    16
    Helped
    0 / 0
    Points
    1,208
    Level
    7

    C++ or Java for getting real time data serially

    which of the following programin language can be used either c++ or java, for getting real time data from real world serially ( via serial port to the PC ). kindly suggest me the direction to proceed.

  2. #2
    Banned
    Points: 5,790, Level: 18

    Join Date
    Jun 2005
    Location
    scotland uk
    Posts
    646
    Helped
    96 / 96
    Points
    5,790
    Level
    18

    Re: C++ or Java

    any lanaguage can be used
    java is free
    c++ is free

    both are fine at the level they function at

    c++ is a lower level language then java as java reuses c++ componenets

    but this makes java a little faster and nicer interfaces are easier to make
    just a little extra code is needed for exception handling

    if your new to programming
    use c and c++ then java when you learn c++

    a tip is to have lots of example sources

    here is some cd volumes for c++
    they are cheep and downloadable

    http://www.exhedra.com/exhedra/PlanetSourceCode/CD.aspx
    http://www.exhedra.com/Exhedra/Plane...px#ProductId_1


    1 members found this post helpful.

  3. #3
    Full Member level 1
    Points: 1,897, Level: 10

    Join Date
    Jul 2006
    Posts
    97
    Helped
    7 / 7
    Points
    1,897
    Level
    10

    Re: C++ or Java

    Actualy I prefer C/C++, I feel they are more relaibale in embeded and realtime systems.

    Regards,
    Shohdy


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  4. #4
    Full Member level 4
    Points: 4,651, Level: 16

    Join Date
    Nov 2001
    Posts
    236
    Helped
    9 / 9
    Points
    4,651
    Level
    16

    C++ or Java

    D'ont forget Java have always a JRE at the midle, so performance is lower thant C++ (compiled directly for the OS), so in some scenarios of realtime JRE brings problems..

    HH

    NeuralC



  5. #5
    Member level 4
    Points: 1,546, Level: 8

    Join Date
    Jul 2006
    Location
    Karachi, Pakistan
    Posts
    68
    Helped
    4 / 4
    Points
    1,546
    Level
    8

    Re: C++ or Java

    Assalamo Allykum !

    I Think the C/C++ is best for your reequirement.

    I prefer to use C/C++ for the serial communication.

    On the otherhand Visual Basic 6.0 is another good option for you that you can use for serial communication.

    Take Care :D

    Zeeshan Shareef



  6. #6
    Junior Member level 2
    Points: 1,636, Level: 9

    Join Date
    Mar 2004
    Posts
    23
    Helped
    0 / 0
    Points
    1,636
    Level
    9

    Re: C++ or Java

    With C or C++ you have direct access to serial ports, its easy to control and R/W from serial ports.

    I do not suggest JAVA for these things.



  7. #7
    Full Member level 5
    Points: 3,276, Level: 13

    Join Date
    Jan 2005
    Location
    Asia
    Posts
    311
    Helped
    23 / 23
    Points
    3,276
    Level
    13

    Re: C++ or Java

    go for C or C++ , they are made for doing things like this , whereas java is more of an network language, so u may also use java, but C++ would be simpler and faster.(in writing program).

    and you may easily find some code in C/C++ on this....

    check out www.beyondlogic.com

    bye



  8. #8
    Junior Member level 1
    Points: 1,241, Level: 7

    Join Date
    Jul 2006
    Posts
    15
    Helped
    0 / 0
    Points
    1,241
    Level
    7

    Re: C++ or Java

    when u interact with hardware, c / c++ is the best



  9. #9
    Newbie level 3
    Points: 1,216, Level: 7

    Join Date
    Apr 2006
    Posts
    4
    Helped
    0 / 0
    Points
    1,216
    Level
    7

    Re: C++ or Java

    i think C++ has more systems commands for such purposes, also many drivers are written in C++ so i would suggest u to use C++



    •   AltAdvertisement

        
       

  10. #10
    Member level 5
    Points: 2,367, Level: 11
    Achievements:
    7 years registered

    Join Date
    Sep 2006
    Location
    Kolkata, India
    Posts
    81
    Helped
    6 / 6
    Points
    2,367
    Level
    11

    Re: C++ or Java

    hi guys,
    these are from my point of view and real life experience:-



    for embeded programming --- C is the best.
    for application development for general purpose computer where memory is not a concern and slight speed reduction is also not a concern : JAVA is really the best. currently it is the language of choice for most application programmer(for general purpose computer and web based applications).

    also you can put c code/programs in java code where necessary. and also java really got a futurestic look.

    c++ is the between of these two languages. and i should tell ther is very large difference between C and C++. so dont mix the two. Java looks much more than C than C++.

    arnab



    •   AltAdvertisement

        
       

  11. #11
    Full Member level 3
    Points: 3,412, Level: 13
    ivar4ever's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    189
    Helped
    79 / 79
    Points
    3,412
    Level
    13

    Re: C++ or Java

    c++ is better



  12. #12
    Member level 3
    Points: 1,607, Level: 9

    Join Date
    Aug 2006
    Location
    ankara turkey
    Posts
    60
    Helped
    2 / 2
    Points
    1,607
    Level
    9

    Re: C++ or Java

    do i have to know C to begin studying C++??



  13. #13
    Newbie level 1
    Points: 1,107, Level: 7

    Join Date
    Oct 2006
    Posts
    1
    Helped
    0 / 0
    Points
    1,107
    Level
    7

    Re: C++ or Java

    hello



  14. #14
    Newbie level 2
    Points: 1,529, Level: 8

    Join Date
    Jul 2004
    Posts
    2
    Helped
    1 / 1
    Points
    1,529
    Level
    8

    Re: C++ or Java

    No you don't have to study C.

    I think it is better for you to study C++ in order to really understand object oriented programming.

    This is a powerful programming paradigm and it should allow you later on to learn more easily Java and other similar languages



  15. #15
    Member level 4
    Points: 1,986, Level: 10
    _TopGun_'s Avatar
    Join Date
    Aug 2005
    Location
    Zelenograd, Russian Federation
    Posts
    75
    Helped
    9 / 9
    Points
    1,986
    Level
    10

    Re: C++ or Java

    I think you should learn C before C++.
    C is a base of C++ programming.
    C is more easy and you'll spend less time to understand C-programming.
    After that you can learn C++ - when you know basics it's very easy to learn some new useful features.



  16. #16
    Newbie level 3
    Points: 1,089, Level: 7

    Join Date
    Dec 2006
    Posts
    4
    Helped
    0 / 0
    Points
    1,089
    Level
    7

    C++ or Java

    well, is depend on the need of the program ... for me i will go for c/c++ , more straight forward to be implement



  17. #17
    Junior Member level 1
    Points: 1,209, Level: 7
    mkjjtamz's Avatar
    Join Date
    Aug 2006
    Posts
    17
    Helped
    0 / 0
    Points
    1,209
    Level
    7

    Re: C++ or Java

    for me C++ is better because it is user friendly than java.....



  18. #18
    Newbie level 4
    Points: 1,104, Level: 7

    Join Date
    Dec 2006
    Posts
    6
    Helped
    0 / 0
    Points
    1,104
    Level
    7

    Re: C++ or Java

    start programming using any language. You would have been done by now..The "C++ or Java" argument will never end so don't wait for it.

    Oh...and C is nothing like C++. Keep that in mind



  19. #19
    Newbie level 1
    Points: 1,443, Level: 8

    Join Date
    Jan 2007
    Posts
    1
    Helped
    0 / 0
    Points
    1,443
    Level
    8

    C++ or Java

    Yep...i agree with eusto!dont get stuck making a choice..once u start with any language..picking the other one will be a piece of cake..lietrally!!!

    All the best!



    •   AltAdvertisement

        
       

  20. #20
    Member level 2
    Points: 1,828, Level: 9
    king_rero's Avatar
    Join Date
    Sep 2005
    Posts
    51
    Helped
    2 / 2
    Points
    1,828
    Level
    9

    Re: C++ or Java

    Quote Originally Posted by omrox
    which of the following programin language can be used either c++ or java, for getting real time data from real world serially ( via serial port to the PC ). kindly suggest me the direction to proceed.
    the best programming language is CCCCCCCCCCCCCCCC


    1 members found this post helpful.

--[[ ]]--