06-24-2011 03:45 AM
Hi,
How can I write an easy program (on Labview) that the word i send , on SPI, is on configuration LSB first or MSB first depending the user's choice.
Kind Regards
Solved! Go to Solution.
06-24-2011 07:21 AM - edited 06-24-2011 07:23 AM
You would use the Swap Bytes function.
Use a Boolean control to allow for selection between LSB and MSB. LabVIEW is big endian (MSB LSB) internally. To send the word as LSB MSB, use the Swap Bytes function before passing the data over SPI. This could be done by passing the word through a case structure.
06-24-2011 08:13 AM
Thanks!!!!
it's really easy, I have searched more difficult than that!
kinds regards