Quote:
Originally Posted by sparrowkc
Please tell me what I did wrong and what could be improved.
|
You're correct... there is no official example for using this sensor over SPI.
From looking at your code it looks like you are accessing it correctly. Well done! You could clean it up a bit by choosing Most Significant Bit First in the Advanced Config VI... then you wouldn't have to reverse the data you get back (don't forget to change the output command too). I would also make subVIs out of the Open and Get parts of the functionality to make it easier to include in user code and remain encapsulated.
-Joe