01-04-2023 03:19 PM
I'm trying to use the Hobbyist toolkit to read distance from an ultrasonic sensor through a Raspberry Pi 3B+ but just get this error 5004
05-03-2023 01:54 PM
HI
can you help me i have the same error ?
05-03-2023 02:14 PM
I couldn't get the ultrasonic read VI to work. I ended up writing python code to read from the sensor and then used the system exec VI to call the python code using SSH and pass the values into LabVIEW.
You will need to do the Chroot SSH trick for the system exec SSH to work.
The solution on this topic explains the steps you will need to do. https://forums.ni.com/t5/Hobbyist-Toolkit/Run-python-script-in-LabVIEW-LINX/td-p/4174748
05-03-2023 02:40 PM
the code and error
12-29-2023 03:20 PM
I'm having the same issue with accessing an ultrasonic sensor with LabVIEW and a Pi, can you provide an image of the VI or the VI you are using to interface with the ultrasonic sensor.
12-30-2023 10:32 PM
I was able to resolve it by building a VI using the Wait Express VI and Flat Sequence Structure. The following is the code developed. Current code just loops but I will be updating to a SubVI that takes five readings and then returns the average.