Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   ADXL345 SPI Accelerometer set/get Refnum (http://www.chiefdelphi.com/forums/showthread.php?t=82796)

Jon236 16-02-2010 08:40

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

Re: ADXL345 SPI Accelerometer set/get Refnum
 
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?

Jon236 16-02-2010 09:52

Re: ADXL345 SPI Accelerometer set/get Refnum
 
I will do that today. Thank you for the rapid response!

Joe Ross 16-02-2010 10:20

Re: ADXL345 SPI Accelerometer set/get Refnum
 
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.


All times are GMT -5. The time now is 04:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi