06-25-2010 11:03 AM
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!?
Solved! Go to Solution.
06-28-2010 02:52 PM
Stranman,
I'm looking further into your question.
Kevin S.
Applications Engineer
National Instruments
06-30-2010 08:49 AM - edited 06-30-2010 08:49 AM
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
06-30-2010 11:23 AM
Kevin,
Thanks for the clarification.
- Paul