LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to fasten serial port communication?

Hello

 

I'm using a serial port to communicate with a device with baud rate of 19200

 

I need to send several codes (questions) to the device and I´m receiving and processing the answers

 

Currently I'm sending 9-10 codes to the device and the actualization of, for example, the 1st code I'm sending occurs each 2 seconds (aprox.)

 

In simple terms, is there a way to improve these actualization times??

 

I forgot to tell that I'm a rookie in labview, so forgive me if this is a stupid question...

 

Thanks

0 Kudos
Message 1 of 4
(2,832 Views)
There could be several things that could be done to optimize your application but you did not attach it so it's impossible to say. Just click the 'Add Attachments' below the message body to attach your VI and someone can look at it.
0 Kudos
Message 2 of 4
(2,814 Views)

The simpler advice is, keep your communication functions in one loop and the processing of the answers to another loop.

So you will not have delays due to processing.

As long as you send only a few bytes (if i understood correctly), higher baud rates will not help you.

0 Kudos
Message 3 of 4
(2,794 Views)

Hi,

 

You have a good way to start with serial port in LV with this KB  and a tutorial here

 

I hope this helps.

 

Regards,

Steve M.
0 Kudos
Message 4 of 4
(2,747 Views)