08-30-2024 06:08 AM
Hello NI community ,
I’m currently using an NI USB-6009/6008 for data acquisition, and I’ve developed a custom UI in LabVIEW. I’m considering using a Raspberry Pi with a connected display for monitoring the data. Is it possible to run my LabVIEW UI on a Raspberry Pi display while using the NI USB-6009/6008 for data acquisition? If not, are there any recommended approaches or alternatives to achieve this setup?
08-30-2024 09:19 AM
Hi
Using a newer Raspberry Pi is not low cost once you include all the requires add on's, like an enclosure or a power supply and what else.
On YouTube you can find several discussions comparing an RP kit with a miniature low cost complete Intel NUC computer running Windows 7, 10 or even 11. The price difference can be less than a factor two.
Regards
08-30-2024 10:37 AM - edited 08-30-2024 10:40 AM
While you can sort of run LabVIEW on a Raspberry PI using the Hobbyist Toolkit (Lynx)
I do not believe there is a DAQmx equivalent to run your NI USB-6009/6008 on a Raspberry Pi.
08-31-2024 03:52 AM - edited 08-31-2024 04:11 AM
Hi again
The RP functionality supported ( when it works at all ) by LINX or in the rebranded Hobbyist toolkit is nothing more than exposing the hardware features like PWM on the RP. Like an instrument would do. Send command and get response. So no UI directly from the RP to a display. Nor USB control.
There was once an ambitious project to implement LabVIEW VI's on the RP. A company called TSXperts created such a compiler. The compiler is dead since long and now on Github. See :
https://github.com/labviewforRaspi/LabVIEWforRasPi/wiki
Regards
PS : If the main objective is getting some low power computer to display the signals from the USB DAQ device then look for a cheap refurbished notebook like the Lenovo MIIX-310. It draws no more than 5 Watts. With 4 GB RAM and 64 GB disk it even runs Windows 11.
08-31-2024 04:21 AM - edited 08-31-2024 04:22 AM
It’s doomed for two reason:
1) A LabVIEW program on the RPi does not have a GUI. The LabVIEW runtime on it has no GUI support and is running inside its own chroot on a minimalistic Debian distribution with no installed X-Windows support. Adding X-Windows would not help since the chroot has no access to the display hardware and even if you would manage to enable it anyhow, the LabVIEW runtime on there lacks any capability for using it.
2) NI DAQmx does.not run on this.
08-31-2024 08:57 AM
Look into a Radxa X2L
08-31-2024 09:33 AM
If you really want a DAQ with RPi, get one of the DAQ Hats - https://digilent.com/shop/mcc-daq/data-acquisition/mcc-daq-hats-for-raspberry-pi/
08-31-2024 11:58 AM
DAQ hat still doesn't give you the ability to have a LV GUI running locally.
08-31-2024 01:40 PM
Re: DAQ-Hats
Aside from the missing GUI, you need to compile the MCC C source code for their driver into a shared library for for the LabVIEW chroot and call that through Call Library Nodes. This is not rocket science but still a significant amount of work.
08-31-2024 08:50 PM
@IlluminatedG wrote:
DAQ hat still doesn't give you the ability to have a LV GUI running locally.
I meant DAQ Hat as an alternative, and yeah, not in LV; it has to be another language with GUI support in Linux.