08-29-2024 02:34 PM
Hi There,
A little over a year ago I asked if anybody has had a chance to use any of the hats made by Pi-Plates.com and Labview. It seems nobody has.
There are Node-Red and Python libraries for this family of devices but no LabView. The folks over at Pi-Plates aren't interested in making an LV library so I'd like to take a shot at it.
I need some help at the starting line.
The device, a Pi-Plates DACc2Plate in this case, connects through the main header and uses the SPI port. Aaaaaand that's where I am.
What would be the next couple steps to write a basic vi to talk to it? I don't necessarily want the source, I just want some direction and basic steps. I learn better when I'm a little lost and once I have some momentum, i'll pick it up quickly. Somebody, please shoot this starting gun for me.
Thanks
08-30-2024 12:21 AM
Probably the best bet is to create a C/C++ shared library that can be called from LabVIEW code (Call Library Function Node).
08-30-2024 12:22 AM
Alternatively, you can use the hobbyist toolkit to perform the SPI calls to interact with the plates but you'll be able to pull from less example code but getting started would be easier once you learn the SPI comms the plates use.
08-30-2024 11:29 AM - edited 08-30-2024 11:33 AM
Yes! I thought that [a C library] might be a good approach. While investigating I found a couple older/possibly abandoned C/C++ libraries on GIT. If those are valid and functional, that approach would probably be the most direct, fastest running code, right? I do still want an understanding/experience with the SPI comms, just to have it.
09-09-2024 10:47 AM
What about a python library? Could I use that instead of a C library?