Ristow Posted February 2, 2011 Report Share Posted February 2, 2011 Hi, I'm trying to read a SPI sensor with the USB 8451, but i'm getting strange results. The sensor is the DC-SS500 ( http://www.sure-electronics.net/download/DC-SS500_Ver1.0_EN.pdf ),and i'm using the Labview 8.6. The connection scheme is bellow, but i don't belive there is any problem. http://forums.ni.com...?v=mpbl-1&px=-1 The code is attached below, and I wrote it based in "General SPI read script" example and DC-SS500 user guide. When I do the measurement I get response 0 for the read address 0. Changing the read address, as a result I get twice the value of the address. Anyone know what might be causing the problem? Thanks Read DC-SS500 SPI.vi Quote Link to comment
Ristow Posted March 10, 2011 Author Report Share Posted March 10, 2011 Hi, I'm still having problems with the interface between the NI8451 and the sensor. Anyone have any tip? Thanks Quote Link to comment
okeanos Posted March 29, 2011 Report Share Posted March 29, 2011 Hi Ristow, Just noticed this now, and don't know if you've solved the problem already, but it seems to me that you might need to bit-shift the address one bit to the right if you're getting double the address. Just a quick thought. Good luck! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.