LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with the buffer to SPI Module

Hi, I wrote a question about this issue but the people assuming that was about NI USB-8451, it wasn't!
 
   I am working with the ADSP-BF537 EZ-Kit, I made a program to send a coupled of byte via SPI Module. I connect a logic analyzer and I have output in pin SCK but in pin MOSI I have nothing. I think the possible mistake is the way that supply the buffer to BF device Write VI. I search in the help menu of Labview but not say much about that! The VI is attached, If anybody could see it and tell me what is wrong?
 
Thanks
 
The Caribbean!
Download All
0 Kudos
Message 1 of 4
(7,035 Views)
See this thread for responses: http://forums.ni.com/ni/board/message?board.id=beta2&message.id=279

--
Michael P
National Instruments
0 Kudos
Message 2 of 4
(7,025 Views)
Hi Carribean,

A couple things you could try:

- your array that you're sending out is empty, and is not in your connector pane, so just double-check to make sure you're not trying to send an empty array.

- Try getting rid of your "Close" at the end - you may be closing the device before it has a chance to send anything out on the SPI port.

Other than that, I'm not sure what could be causing the problem.  I haven't done any DMA transfers with SPI, so you may want to change it to Interrupt, as I have seen that work.  Let me know if any of this helps.

Regards,
Jason
0 Kudos
Message 3 of 4
(6,988 Views)

Hi Jmburns, well I can fix the problem change the order of VI Buffer supply put it after Data flow VI. I read in System Service Manual of Blackfin Family (page 10-13) that only after the data flow method has been defined can the client supply of buffers (inbound/outbound) to the device.

regards

The Caribbean

0 Kudos
Message 4 of 4
(6,925 Views)