Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

NI-8452 SPI 16 bit communication

$
0
0

--> This post is about SPI and communicating to by sending 16bits

 

I am trying to communicate with an SPI channel that needs to receive 16bits as opposed to 8bits.

 

Is this possible to do with the NI8452?

Is it possible to do with the sample subVIs that come with Labview, specifically subVI: NI-845x SPI Write Read.vi?

Is there a Write Read vi for 16bits?

 

The sample VI in Labview is "NI-845x SPI Write Read.vi", it has an input for the can be changed to u16 (It is a u8 to start with) this in turn goes into a Call Library Function Node that coerces the input into a 8bits.  In other words, the DLL is looking for an 8bit string of data.

 

A solution that didn't quite work was to take the 16bit data and divide it into two 8 bits, sending it as two bytes but this did not work.

 

Thanks for any help,

 

Jorge Vega

 


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>