07-21-2015 10:31 PM
I have a PXIe-6363 module in a PXI running as a real time target, and I'm trying to talk to an accelerometer that communicates with SPI. I know the 6363 isn't one of the special modules built for SPI, but my understanding is it should be capable; the issue is just the programming. I've seen examples of this for LabVIEW using DAQmx. Are there any examples out there for doing it in LabWindows/CVI?
I'm looking to save time and avoid reinventing the wheel here. SPI is easy on an Arduino, so it should be doable in LabWindows/CVI, right?
Thanks,
Matt
07-23-2015 10:19 AM
Hey Matt,
I was unable to find any full examples of SPI communication with DAQmx in C. My best suggestion would be to use the LabVIEW examples and implement the same series of function calls to implement the LabVIEW code in C. The DAQmx C API is good about keeping a standard with naming conventions to map with the function names in LabVIEW.