Hi,
I am having trouble structuring a simple program to receive data from the Blackfin UART1. Data is received over the UART1 every second, so I'm planning on creating an interrupt service routine to read in the data and store it to a global string array . After reading the following page on Blackfin callbacks,
http://zone.ni.com/devzone/cda/tut/p/id/3244
I believe this is the general way I should approach the problem:
Main VI:
- Static VI reference that references the UART interrupt service routine VI
- Static VI reference connects to BF UART Open block, BF UART Control block, then to the UART interrupt service routine
- Global string array indicator
UART interrupt service routine VI:
- UART Read block with the output buffer appending string to a global string array
This is not working--the global string array does not update. I have been able to read the data through the UART1 in another VI, but this was not triggered by an interrupt. Is this the right approach to the problem or does someone have a sample VI that I can look at?
Thanks in advance,
Chris