LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Blackfin: Multiple Open Devices

Hi,

I am using the Blackfin BF537 EZ-KIT LITE and I am trying to use mutiple devices.  Specifically, read from the UART1 and write that data to the UART0.

I have been able to successfully read and write separately; I have a open block running to a while loop with a read/write block inside.  But when I try to do both on the same VI (copied and pasted both into the same VI) it does not work.  I am guessing that the blackfin is not able to process both the while loops at the same time--is this true?

I then tried to put it in a sequence structure; the two open blocks followed by a while loop with a sequence structure inside: read then write.  In theory, it opens the two devices, reads from one, writes to the other, read, write, read, write, etc.  This also does not work, so I tried to do it another way:

One while loop with the following sequence structure inside: open read close, then open write close.  This was the only way I got the VI to read and write, which lead me to believe LabVIEW only allows one device to be open at a time.  If this is the case, then it seems like the only way to create the VI would be to open and close a device every time it needs to be used.  Is there some way to have multiple devices open at the same time?  If not, is there some way to make it run faster?  The opening and closing of the devices whenever it is to be used causes a long enough time delay to lose data incoming to the UART1.

Thanks in advance,
Chris
0 Kudos
Message 1 of 6
(3,518 Views)
Hi Chris,

Attached is a project that opens 2 UART ports. Can you try running this on your EZ-KIT?
--
Michael P
National Instruments
Download All
0 Kudos
Message 2 of 6
(3,497 Views)
 Can  you send me a project where I read a signal from DAQ  and I send back the signal filtered to DAQ ? thanks.
0 Kudos
Message 3 of 6
(3,460 Views)

Please post the question to the DAQ forum.

Tunde

Message 4 of 6
(3,437 Views)
Hello, you can send me a VI that ago only the reading from the UART0? Thanks
0 Kudos
Message 5 of 6
(3,372 Views)
Hi,

II assume you would like to have an example of using one UART port.  In Michael's last post, he put up an example of using 2 UART ports.  If you would like to use one of them, simply modify the example and remove the UART VIs.  One UART port is opened for reading dataa nd one is opened for writing in his example.

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 6 of 6
(3,344 Views)