03-05-2016 04:16 AM
Hello,
How do I get loadcell signals into LabView using LINX and arduino UNO? Loadcell is connected to SPI interface card (see attached image). I use the example program SPI LINX from
LabView. I'm a newbie to SPI, so I have no idea what to do, but I know that all connectors and wires is connected correctly from loadcell to SPI interface card. From SPI card to Arduino I also think it's correct(See attached images).
regards,
paalbrok
03-21-2016 05:01 AM
Hi Paalbrok,
How are you doing with this problem? Are you still experiencing issues? Do you have any documentation for the Load cell?
Some general SPI with Arduino background can be found here: https://www.arduino.cc/en/Reference/SPI
Kind regards
Pete
03-21-2016 05:33 AM
When debugging anything to do with SPI, it's really useful to hook up an oscilloscope (or a logic analyser is even better!) to check the clock/data signals are sending the data you expect and that it matches the datasheet of the SPI device you are talking to.
Some devices say they are SPI...but they actually have a custom SPI-based protocol and that often means it won't work with an SPI library "out of the box".
You might want to try taking LabVIEW out of the equation and try just writing an Arduino sketch to talk to the load cell (there might be a library for the chip you're using...especially if it's a Sparkfun device!) - once you've got that, you might find it easier to implement this as a custom command in LINX, or just implement some simple serial code to output the values and read them in LabVIEW using VISA.
You might also want to ask over the in the LabVIEW MakerHub forums: https://www.labviewmakerhub.com/forums/