LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Blackfin UART problem

Hi all.
I try to implement serial comunication between BF537 and PC.
As I know, LabVIEW give 2 ways to do it:
1) Serial compatibility VI's;
2) BF UART VI's;
Simple echo-projects works OK, but if I try to do some manipulations with 
received buffers (for example send back 2 and 4 byte), I have a problems.
If I use Serial compatibility VI's, BF send me all received buffer, but on PC it works OK
If I use BF UART VI's, sometimes BF works correct, sometimes (after rebuilding project)
it doesn't work.
So I have a question: is it bug of LabVIEW or I do something wrong?
P.S. I use LabVIEW 2009, VisualDSP 5.0
Download All
0 Kudos
Message 1 of 3
(6,162 Views)

Hi YDen,

 

I am a little confused about your two options. Do the Serial VIs work, while the UART VIs only sometimes do, or are you having trouble with the Serial VIs as well?

 

Let me know, and I will try to see if I get the same problems with your code.

 

Regards,

Stephen S.

National Instruments
Applications Engineering
0 Kudos
Message 2 of 3
(6,145 Views)

Hi, Stephen.
Serial VIs works if I send to BF buffer and BF send this buffer back to PC.
But if I want that BF send me back not all buffer, but some bytes of this buffer, 
BF send me all buffer(UART_SerialCompatibility.vi).
If I run this VI(UART_SerialCompatibility.vi) on PC, instead a BF, VI works OK(send back 
that bytes, which I need).
With UART VIs I have a problems too.In general UART VIs works and my VI(UART_BF.vi) works.
But if I rebuilt project with this VI, sometimes after that this project doesn't work(I mean
BF doesn't send me back nothing or send me some other bytes, not that, which I need).

0 Kudos
Message 3 of 3
(6,134 Views)