Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Best language to access serial port?

Status
Not open for further replies.
is there any good r*s232 driver for kylix?
nrcomm is very expensive!!!
Regards.
 

To those who use matalb to acess the serial port could you explain how. please also give the hardware interface. my problem is as follows:

i want to read analoge value convert it to digital then read the digtal value in a pc using serial port and matlab.

help please
 

LabView is from the best languages for computer interfacing , you can access serial port easily in its enviroment . of course your background in c will be useful in using labview (you can import codes from c or matlab )
 

whatever they say i love to program in assembly.every progammer must have some experience with assembly.you can feel that tou are controlling something
 

If you want a full control the language must be assembler or machine code to ensure that ney smart as* HLL compiler ain't include no stupid additional code that you don't want :)
From assembly part code is very simple - you need to know just 2 instruction IN\OUT, and, of course the structure of the port's registers (wich bit is what for).
 

Hi Everybody,

Everyone will say the best language is his use.
The most important thing is to many know his language.
I think for this purpose,C and Assembly languages may be good.
For C user,try with C.
For Assembly user ,try with Assembly.
I think VC,VB will not suitable for the serial communication.
MATLAB is not bad,but it system requirement is high.

Bye,
Zaw Min Oo
zawminoomc@gmail.com
 

the main problem with accessing ports on o/s like windows xp is that people do insist on using software made before windows xp was compiled like visual studio v6 etc....


so they will have restriction in some components caused by the older librarys and headers sets the older compiler will use when you make your software

this way componenets /objests more often that not arent avalible

or have problems accessing the ports


its simple use a recently updated software like digital mars for c++ or mingw

visual c microsoft keep moving the goal posts around and changing core units

so problems appear

visual studio should be renamed visual windows studio
 

VSMVDD said:
the main problem with accessing ports on o/s like windows xp is that people do insist on using software made before windows xp was compiled like visual studio v6 etc....


so they will have restriction in some components caused by the older librarys and headers sets the older compiler will use when you make your software

that's not true

programs which use the win32 api have no problem accessing the serial port, even when compiled with VS6

the problem arises when a program tries to access the serial port using the 16 bit api remant from windows 3.1 and which should've been buried 10 years ago

so now you know that programs which have to run in compatibility mode to use the serial port were written using win 3.1 code
 

IMO, as long as the language allows serial port access, then all these languages are equally fine. Based on what assessment should we claim that one language is "better" over the other? Speed? (RS232 baud rates are much slower than cpus of today) Ease in interfacing? (That pretty much depends on whether you used a third-party wrapper which provides an easier interface, or directly call win32 API functions)
 

C is best language for any type hardware ports interface.
It has got inline assembly language so u can go more in deep.
u can get lots of programs for these at beyondlogic.org
C can operate on bit level also it is given more control to u.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top