10-11-2023 03:13 PM - edited 10-11-2023 03:21 PM
I have a Raspberry pi 4B and have it set up to where I can ssh and vnc into it. I can connect to it with a LabVIEW project set up for Raspberry PI. I am able to load a modified version of the advanced blink example and operate the RP GPIO pins. I have a MCC 128 Dara Acquisition HAT installed on the RP which works with the supplied python examples. I would really like to access it from LV so I don't have to rewrite my whole application in python. Does anyone have advice on how I can get access to this DAQ board (HAT)?
I am using LabVIEW 2023Q3
raspian VERSION="11 (bullseye)"
10-25-2023 07:59 AM
I'm not sure what ADC chip this card uses but it appears to have an on-board micro-controller which everything goes through. Your only option appears to be converting the supplied Python code into LabVIEW . If you need an ADC then it may be a better bet to get a HAT where you can talk directly to the chip (in SPI or I2C).
Have a look at LINX Raspberry Pi Addons from MediaMongrels.
10-25-2023 10:00 AM - edited 10-25-2023 10:00 AM
MCC has their own shared library programmed in C for their Raspberry Pi modules. Source code for those libraries is publicly shared at: https://github.com/mccdaq/daqhats
Seems, that MCC web existence has been discontinued and the entire MCC product portfolio was integrated into Digilent, another NI (now apparently Emerson subsidiary).
I did a few years back work on those MCC modules for Raspberry Pi. My solution was to recompile the shared libraries from MCC for use under the NI Linux RT system that runs as virtual machine on the Raspberry Pi for deployment of LabVIEW programs. I also investigated about using the Linx functionality itself to directly access the I2C channels on the Raspberry Pi to reimplement the functionality of the MCC shared library completely in LabVIEW, but the Linx API does not provide all the necessary access to the various Raspberry Pi hardware resources that would be required for accessing the MCC cards that way.
10-25-2023 10:35 AM
Thanks for your help. I was considering compiling the C libraries and calling them from LabVIEW but realized this is not trivial because of needing to do it in the LabVIEW RT environment of the Pi. I think finding a supported DAQ hat is probably the least expensive option. Time is money (sometimes).
Jim Jones
10-30-2023 12:26 PM
Rolf,
I am interested in recompiling the provided mcc library for the labviewRT schroot environment on the Raspberry Pi. Can you point me to any information on how to configure the environment so that this can be done. I have modified the makefile so that some missing include files can be found but I am obviously missing some information I need to be successful.
Thanks,
Jim Jones