|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
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? |
|
#3
|
||||
|
||||
|
Re: ADXL345 SPI Accelerometer set/get Refnum
I will do that today. Thank you for the rapid response!
|
|
#4
|
||||||
|
||||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with RefNum Registry get vi | zebrabots | NI LabVIEW | 3 | 02-02-2010 22:16 |
| ADXL345 using I2C | tdidi | C/C++ | 1 | 29-01-2010 21:02 |
| hook up ADXL345 to cypress breadboard at driver station | erichahn525 | Programming | 4 | 23-01-2010 12:22 |
| where can i get accelerometer? | M. Gildner | General Forum | 8 | 31-01-2009 10:23 |
| **FIRST EMAIL**/Get Ready...Get Set...Triple Play Begins! | Rich Wong | FIRST E-Mail Blast Archive | 0 | 01-03-2005 22:33 |