LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 8451 SPI Communication

Hi All,
 
I am tring to write SPI 16 bits command to TI TLV5638 DAC.
Labview examples are for 8 bits only. can anyone help me?
 
Thanks,
Eliran. 

 



Message Edited by Eliran11 on 06-29-2008 02:44 AM
0 Kudos
Message 1 of 5
(3,036 Views)
On Jun 29, 10:10 am, Eliran11 <x...@no.email> wrote:
> Hi All,
> &nbsp;
> I am tring to write SPI 16 bits&nbsp;command to&nbsp;TI TLV5638 DAC.
> Labview examples are for 8 bits only. can anyone help me?
> &nbsp;
> Thanks,
> Eliran.&nbsp;
>
> &nbsp;Message Edited by Eliran11 on 06-29-2008  02:44 AM

I don't know which examples you followed. But, you only have to join 2
8bit words in one 16bit word.
0 Kudos
Message 2 of 5
(3,029 Views)
But using 2 words of 8 bit causes delay of 10 usec between the 2 words.
0 Kudos
Message 3 of 5
(3,003 Views)
Hi Eliran,

The USB 8451 supports only 8 bit communication.

This KB has a suggestion on how to implement 16 bit commands. "The approach you would take when writing or reading a 16 bit number is to write or read a byte array of length 2. You can use a Type Cast to convert back and forth between arrays of 8 bit integers and arrays of 16 bit integers."

Hope this helps!
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 4 of 5
(2,990 Views)
Hi Eliran,
 
The SPI interface in LabView is configured for 8 bits and there is no pre-developed way of avoiding the 10 microsecond delay. Please check this knowledgebase article for further details. This delay does not cause any serious limitations in your program.
 
Ipshita C.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(2,984 Views)