cancel
Showing results for 
Search instead for 
Did you mean: 

uart delay using LABVIEW

Jack_DB
Associate II

Good morning, 

I need to send data using UART to a board with a specific delay between single elements, which I obtain as I'm using LABVIEW, but on the board said specific delay is not obtained, and worst of all the delay between datas is not constant. I figured there would have been some additional delay, but is there a way to decrease it or at least make it constant? or is it intrinsic to the UART technology? 

Thx all

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

Some more detail would help:

How to write your question to maximize your chances to find a solution

 


@Jack_DB wrote:

a specific delay between single elements


What delay, specifically?

How do you implement that delay?

What do you mean by "elements" here?

  • between each byte?
  • between groups of bytes?
  • other?

@Jack_DB wrote:

I'm using LABVIEW,


LabVIEW is an independent 3rd-party product from NI - nothing to do with ST.

You need to go to NI for support with their product:

https://www.ni.com/en/support.html 

https://forums.ni.com/ 

 


@Jack_DB wrote:

on the board


What board?

 


@Jack_DB wrote:

is it intrinsic to the UART technology? 


No - it must be something in your setup.

As we know nothing about your setup, hard to guess what it might be.

 

Try simple something like:

HAL_UART_Transmit( ... );
HAL_Delay        ( ... );
HAL_UART_Transmit( ... );

 

PS:


@Jack_DB wrote:

the delay between datas is not constant.


How do you measure this?

What delay values do you see?

 

#LabViewSupport

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

2 REPLIES 2
Andrew Neil
Super User

Some more detail would help:

How to write your question to maximize your chances to find a solution

 


@Jack_DB wrote:

a specific delay between single elements


What delay, specifically?

How do you implement that delay?

What do you mean by "elements" here?

  • between each byte?
  • between groups of bytes?
  • other?

@Jack_DB wrote:

I'm using LABVIEW,


LabVIEW is an independent 3rd-party product from NI - nothing to do with ST.

You need to go to NI for support with their product:

https://www.ni.com/en/support.html 

https://forums.ni.com/ 

 


@Jack_DB wrote:

on the board


What board?

 


@Jack_DB wrote:

is it intrinsic to the UART technology? 


No - it must be something in your setup.

As we know nothing about your setup, hard to guess what it might be.

 

Try simple something like:

HAL_UART_Transmit( ... );
HAL_Delay        ( ... );
HAL_UART_Transmit( ... );

 

PS:


@Jack_DB wrote:

the delay between datas is not constant.


How do you measure this?

What delay values do you see?

 

#LabViewSupport

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

turned out to be a labview problem... 

thx anyway