LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Proper BF UART implementation?

Solved!
Go to solution

There seems to have been a lot of questions on this topic w/o any good answers.

 

Can the BF UART vi's be used in a polling fashion like the Serial Compatibility vi's can, or must the BF UART vi's be used in a callback fashion?

 

The first attachment is the Serial Compatibility vi's used in a polling loop - All works!

The 2nd attachment is the UART vi's used in a polling loop - Doesn't work!?

Download All
0 Kudos
Message 1 of 4
(6,195 Views)

Stranman,

 

I'm looking further into your question.

 

Kevin S.

Applications Engineer

National Instruments

0 Kudos
Message 2 of 4
(6,164 Views)
Solution
Accepted by Stranman

Stranman,

 

I inquired of R&D as to whether there were any additional details or reasons as to when you would want to use one API (the serial compatibility VIs or the Blackfin UART VIs) over the other.

 

In short, the serial compatibility VIs use polling and can perform software initiated reads/writes. You would only use the Blackfin UART VIs if you wanted callback based communication. Based on the architecture in your screenshot, you need to use the serial compatibility VIs.

Just for your information, the callback VIs would work as follows:
1. Configure serial parameters, configure callback VI
2. Pretty much wait for the callback and when it has bytes at port, perform the read

 

 

Kevin S.

Applications Engineer

National Instruments

 

 

0 Kudos
Message 3 of 4
(6,150 Views)

Kevin,

 

Thanks for the clarification.

 

- Paul

0 Kudos
Message 4 of 4
(6,145 Views)