LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial comms

Hi

 

I have some doubt in serial comms, I am trying to send some data at 38400bps and read it back. It reads back as 0. But when i send at very low baud rate(for example: 110bps)it reads the right values. Is this problem because of hardware capability or something else?. Pls give some guidance.

 

I tried to communicate between 2 PC's via hyperterminal at 38400bps, it works fine.

 

Thanks

 

0 Kudos
Message 1 of 8
(3,875 Views)
You will have to know the capability of the hardware that you are talking to. Serial COM is very trick and needs to be done in a very spacific way. You  will need to pull up the specification sheet on the hardware that you are communicating with and find the limit of seep for that device.
Tim
GHSP
0 Kudos
Message 2 of 8
(3,867 Views)

Hi Veeru, 

 

1) have you set up your serial port correctly in LabVIEW?

2) do you have a big enough buffer (see 1)

3) do you have a timing issue

4) can you post your code - no one can diagnose problems easily without looking at code.

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 3 of 8
(3,865 Views)

Thanks All

 

At the moment i just tried to send data to PC and read it back.

 

I used the example program, "Basic Serial Write and Read"

 

Thanks

0 Kudos
Message 4 of 8
(3,849 Views)
Can you post your code, or an image (.png or .jpg, NOT .bmp). There are a number of ways to read serial data, some better than others, some that are much more time sensitive, meaning that they might work at low baud rate and not at higher.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 5 of 8
(3,848 Views)

What kind of cable are you using to connect the two devices?  Success at lower speeds but not at higher ones could be due to bad cabling, no shielding, crosstalk, etc.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 8
(3,830 Views)

Thanks

 

Using the normal RS232 cable

 

0 Kudos
Message 7 of 8
(3,809 Views)

Veeru wrote:

Thanks

 

Using the normal RS232 cable

 


 

It is no such thing as a normal RS232 cable. The cable you have used for RS232 communication so far is a NULL-moden cable. It will work fine for communication between 2 computers. But that is no guaranty that this is the correct cable for instrument. Even if the cable connector fit. The de facto standard then it comes to RS232 cabling is NO standard at allSmiley Very Happy

A reminder regarding RS232 Then in doubt never ever assume



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 8
(3,802 Views)