Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

loss connection to target when deploy project to rpi 4

Every time i try to deploy a project to raspberry pi 4 i have got a message about losing connection to target. here's a screenshot

Untitled.png

i have tried to many things. like 

sudo schroot -c labview -d /usr/lib -- ln -s liblinxdevice_rpi2.so liblinxdevice.so

but none of theme works.

can any idea please? 

thanks in advance.

0 Kudos
Message 1 of 15
(3,571 Views)

What version of LabVIEW and LINX are you using?

 

What version of Raspberry Pi OS are you using?

 

Does this happen both when connecting over a wired Ethernet connection and WiFi?

David Wilt
The New Standard LLC
0 Kudos
Message 2 of 15
(3,552 Views)

 version of LabVIEW 2020 community

version of Raspberry Pi OS : 10.7

Untitled.png

this happen when connecting over wifi and Ethernet

0 Kudos
Message 3 of 15
(3,549 Views)

Well it will be tricky to diagnose a WiFi issue as your setup could cause the issue.

 

Try a wired connection and does it work?

 

I post this before your update.  Well if the something happens over wired that is a different story.

David Wilt
The New Standard LLC
0 Kudos
Message 4 of 15
(3,535 Views)

the same thing does happens with wired connection!

i doubt about setting up Raspberry Pi with LabVIEW? 

 


sudo sh -c 'echo "deb [trusted=yes] http://feeds.labviewmakerhub.com/debian/ binary/" >> /etc/apt/sources.list' sudo apt-get update
sudo apt-get install lvrt20-schroot -y
sudo mv /etc/systemd/system/multi-user.target.wants/nisysserver.service /lib/systemd/system
sudo mv /etc/systemd/system/multi-user.target.wants/labview.service /lib/systemd/system
# link liblinxdevice.so to the Raspberry PI device driver file liblinxdevice_rpi2.so
sudo schroot -c labview -d /usr/lib -- ln -s liblinxdevice_rpi2.so liblinxdevice.so
# Enable the nisysserver.service and labview.service to start on boot
sudo systemctl enable nisysserver.service
sudo systemctl enable labview.service
# Start the nisysserver.service and labview.service
sudo systemctl start nisysserver.service
sudo systemctl start labview.service

 did i forget anything?!

0 Kudos
Message 5 of 15
(3,522 Views)

Why are you setting it up manually?  Why not use the tool built into LINX and LabVIEW 2020?

David Wilt
The New Standard LLC
0 Kudos
Message 6 of 15
(3,517 Views)

i just followed the instructions 🙄.

i will try to re-install it from LINX and LabVIEW 2020.

do i need to delete or reset some files in raspberry ?

0 Kudos
Message 7 of 15
(3,514 Views)

I would start from a fresh install of the Pi OS if you have made a bunch of changes you don't want to do I would at least delete the LabVIEW schroot so there is no conflict.

David Wilt
The New Standard LLC
0 Kudos
Message 8 of 15
(3,507 Views)

this is very painful😥  

reinstalling Rpi Os is not recommended. So, i have tried to delete schroot using this command

sudo apt-get --purge remove lvrt-schroot

sudo apt-get remove lvrt-schroot

sudo apt-get purge lvrt-schroot

 

i reinstall using labview and linx.

i have got the same error.

 

i dont know what to do else!

0 Kudos
Message 9 of 15
(3,501 Views)

Why is reinstalling the RPi OS not recommended?  If you don't want to mess with the SD card that you are using do you have a spare SD card to try a fresh install on and the LINX tool to install LabVIEW?  Right now there are too many variables to determine what is wrong.  First you need to verify your setup.  Once you can trust your setup you can return to this specific SD card if you need to.

David Wilt
The New Standard LLC
0 Kudos
Message 10 of 15
(3,485 Views)