View Full Version : ADXL345 SPI Accelerometer set/get Refnum
Our accelerometer works great using SPI and the provided example in Labview. However, I don't see any set/get Refnum vi's other than the generic ones for SPI communications in the palettes. Of course, it can be wired up using typedefs as well, but I'd rather stick with a consistent way of handling device references.
Any suggestions from the Labview experts out there?
Doug Norman
16-02-2010, 09:43
Is there a reason you wouldn't use the "generic" SPI get/set RefNum VIs?
In the ADXL345 SPI Accelerometer example, have you tried wiring an SPI RefNum Registry Set after the open, removing the RefNum wire into the loop, and then using an SPI RefNum Registry Get to read the RefNum inside the loop?
I will do that today. Thank you for the rapid response!
Joe Ross
16-02-2010, 10:20
It's also not that hard to make your own get and set refnums. Just take them from another library and change the device reference to the typedef you want and change the icon. Besides the get and set refnum there is a get/set refnum that both of those call.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.