LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the serial port of the ADSP-BF537 EZ-KIT Lite using the LabVIEW Embedded Module for Blackfin Processors

This has beeen a perplexing problem.
 According to a contact at NI, the serial compatibility VIs do not keep track of per port information. It will be fixed in a future release. You can only use one port at a time with that API. With the BF UART VIs, you can have multiple ports, but you'll have to deal with the lack of a 'Bytes at Port' function.


If anyone can figure out the following instructions...please try.... and post the results & an example.
Thanks


"'In your callback VI, use the Get Callback Args VI, and if the case is ADI_DEV_EVENT_BUFFER_PROCESSED, increment a global integer. If the global is ever >8192 (or your buffer size), then you have an overflow, so you can zero out the global and throw an error.
 A read callback decrements the global by the size read. Any time you want bytes at port, just read the global!"'
Message 21 of 22
(3,810 Views)
Hm, that's not what I wanted to hear 😉

I've never done anything with callbacks, so I guess either I'll have a look at them, or I change all occurences of the Serial VIs (for writing on Serial Port 0) with the corresponding BF UART Write VIs so that I can use the generic Serial VIs to read from Serial Port 1. I think the solution with callbacks would be much more interesting, but the project should be finished soon. We'll see.

When I decide to try the callback solution and it works then I'll post it here.
0 Kudos
Message 22 of 22
(3,796 Views)