ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial Send speed

Isn't it easier to set 255 as termination char?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 24
(1,700 Views)

He / she needs to start reading when 255 encountered

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 12 of 24
(1,694 Views)

I did that but the transfer rate didn't change... (3 or four sets per seccond).

 

0 Kudos
Message 13 of 24
(1,688 Views)

Well how big is a set? How much data is discarded? How much data do you actually recieve?

2MB ~ 200kb of text.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 14 of 24
(1,684 Views)

I added a little information, how does this work?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 15 of 24
(1,674 Views)

I attached an image from the front pannel when the program is running.

as you see the "bit/sec" indicator shows 188717 but it sometimes changes to 188008 bit/sec.

0 Kudos
Message 16 of 24
(1,659 Views)
What is the problem? You are successfully communicating at 2Mbaud. You don't get any errors. You don't get a buffer overflow so it would appear you are keeping up with whatever is transmitting.

What is actually transmitting? How big is each packet? How often is each packet sent?
0 Kudos
Message 17 of 24
(1,654 Views)

It's supposed to recieve 2,000,000 bit in every seccond but as you see in the JPG file the transfer rate is 188717bit/sec not 2mb/sec!!!

The transmeter sends data in a row continusly and the VI should start to read 5000bytes after recieving a "FF" byte and then after recieving consequent "FF" it recieves another 5000bytes and so on....

0 Kudos
Message 18 of 24
(1,639 Views)

No.  Your indicator is showing BYTES per second.

 

It looks like you should have about 11 bits per byte based on having 1 start bit, 8 data bits, and 2 stop bits.

0 Kudos
Message 19 of 24
(1,634 Views)

In other words ~2,000,000 bits/sec, or ~188717 bytes, with start and stop bits.

Putnam
Certified LabVIEW Developer

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


LabVIEW Champion



0 Kudos
Message 20 of 24
(1,628 Views)