• 0
Murphy

Deployment Error When Deploying Labview to Raspberry Pi through LINX

Question

I am using Raspberry Pi 3 with raspbian jessie and installed labview 2014(32bit) in my windows 7 laptop.

Everything goes smoothly as I connect to my rpi using the linx target configuration. The problem is that everytime deploy a vi (I deployed blink), i get this:

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying NI_PtbyPt.lvlib
Deploying LMH-LINX.lvlib
Deploying LMH-LINX.lvlib:Local IO.lvlib
Deploying LMH-LINX.lvlib:Device.lvlib
Deploying LMH-LINX.lvlib:myRIO.lvlib
Deploying LMH-LINX.lvlib:Interaction Parts Kit.lvlib
Deploying LMH-LINX.lvlib:Ultrasonic.lvlib
Deploying LMH-LINX.lvlib:TMP3x.lvlib
Deploying LMH-LINX.lvlib:TCN75A.lvlib
Deploying LMH-LINX.lvlib:PmodTC1.lvlib
Deploying LMH-LINX.lvlib:PmodGPS.lvlib
Deploying LMH-LINX.lvlib:PmodMAXSONAR.lvlib
Deploying LMH-LINX.lvlib:PmodBT2.lvlib
Deploying LMH-LINX.lvlib:PmodGYRO.lvlib
Deploying LMH-LINX.lvlib:PmodALS.lvlib
Deploying LMH-LINX.lvlib:PmodACL2.lvlib
Deploying LMH-LINX.lvlib:PmodACL.lvlib
Deploying LMH-LINX.lvlib:PmodTMP3.lvlib
Deploying LMH-LINX.lvlib:PmodMIC3.lvlib
Deploying LMH-LINX.lvlib:PmodJSTK.lvlib
Deploying LMH-LINX.lvlib:PmodCMPS.lvlib
Deploying LMH-LINX.lvlib:LTC2631.lvlib
Deploying LMH-LINX.lvlib:AD9850.lvlib
Deploying LMH-LINX.lvlib:WS2812.lvlib
Deploying LMH-LINX.lvlib:BlinkM.lvlib
Deploying LMH-LINX.lvlib:SSD1306.lvlib
Deploying LMH-LINX.lvlib:HiTechnic.lvlib
Deploying LMH-LINX.lvlib:HiTechnic.lvlib:Accelerometer.lvlib
Deploying LMH-LINX.lvlib:Servo.lvlib
Deploying LMH-LINX.lvlib:DS1307.lvlib
Deploying LMH-LINX.lvlib:MMA8452.lvlib
Deploying LMH-LINX.lvlib:MMA8451.lvlib
Deploying LMH-LINX.lvlib:ADXL345.lvlib
Deploying LMH-LINX.lvlib:MPU60X0.lvlib
Deploying Raspberry Pi 2 B(successfully deployed target settings)
Deploying TagReturnType.ctl (1.32 K)
Deploying whitespace.ctl (1.32 K)
Deploying LMH-LINX.lvlib:Device.lvlib:TCP Config.ctl (1.58 K)
Deploying LMH-LINX.lvlib:Platform.ctl (1.32 K)
Deploying Trim Whitespace.vi (3.18 K)
Deploying LMH-LINX.lvlib:Channels.ctl (4.50 K)
Deploying Search and Replace Pattern.vi (8.40 K)
Deploying Find Tag.vi (11.43 K)
Deploying LMH-LINX.lvlib:Device.lvlib:LINX VI API Version.vi (2.93 K)
Deploying Format Message String.vi (6.47 K)
Deploying NI_PtbyPt.lvlib:Update Summation.vi (7.55 K)
Deploying GetRTHostConnectedProp.vi (3.83 K)
Deploying LMH-LINX.lvlib:Device Firmware.ctl (2.51 K)
Deploying LMH-LINX.lvlib:Device.lvlib:Bit Pack.vi (5.18 K)
Deploying LMH-LINX.lvlib:Error Type.ctl (1.32 K)
Deploying VISA Configure Serial Port (Instr).vi (7.45 K)
Deploying LMH-LINX.lvlib:Interface.ctl (1.32 K)
Deploying NI_PtbyPt.lvlib:Mean PtByPt.vi (10.42 K)
Deploying LMH-LINX.lvlib:Loop Frequency.vi (4.69 K)
Deploying Check Special Tags.vi (5.77 K)
Deploying DialogTypeEnum.ctl (1.32 K)
Deploying LMH-LINX.lvlib:User Platform.ctl (1.32 K)
Deploying LMH-LINX.lvlib:Get Platform.vi (3.61 K)
Deploying LMH-LINX.lvlib:Clean Error Call Chain.vi (13.03 K)
Deploying DialogType.ctl (1.32 K)
Deploying LMH-LINX.lvlib:Device Data.ctl (2.37 K)
Deploying Error Code Database.vi (4.39 K)
Deploying General Error Handler Core CORE.vi (47.32 K)
Deploying General Error Handler.vi (10.75 K)
Deploying LMH-LINX.lvlib:Device.lvlib:Firmware Version.ctl (1.43 K)
Deploying LMH-LINX.lvlib:Device.lvlib:Packet Number FGV Action.ctl (1.32 K)
Deploying Error Cluster From Error Code.vi (9.29 K)
Deploying LMH-LINX.lvlib:Device.lvlib:LINX Device Config.ctl (5.16 K)
Deploying LMH-LINX.lvlib:Device.lvlib:Serial Set Baud.vi (6.57 K)
Deploying LMH-LINX.lvlib:LINX Ref.ctl (5.32 K)
Deploying LMH-LINX.lvlib:Local IO.lvlib:Load Device Channels.viLMH-LINX.lvlib:Local IO.lvlib:Load Device Channels.vi loaded with errors on the target and was closed.
Deployment completed with errors

 

How can I complete deployment without having any errors?

Share this post


Link to post
Share on other sites

18 answers to this question

Recommended Posts

  • 0

I have reinstalled my raspbian a lot of times already but this problem still keeps on popping up. And yes, I have followed the steps in the guide available. Any suggestions on how to fix this? By the way, I'm still a noob in using raspberry.

Share this post


Link to post
Share on other sites
  • 0

When you say 'deploy' do you mean clicking the run button (arrow in the LabVIEW VI) or building a startup executable by creating a build specification in the LabVIEW project, building and deploying it?

LabVIEW developers refer to the first as 'running in interactive mode' because your VI runs on the target but it sends data back to the LabVIEW editor on your PC so you can see values and debug your code.  The second scenario is commonly referred to as 'deploying a startup exe'.  In this case your LabVIEW application is built into a stand alone exe, saved on the target and run each time the target boots.  There is no connection back to your PC in this scenario (unless you program one yourself) and no GUI.

Let us know which one is causing this issue for you and we'll suggest some troubleshooting steps.

Thanks!

-Kristoff

Share this post


Link to post
Share on other sites
  • 0

Hey Murphy,

LabVIEW calls into liblinxdevice.so on the target to access the hardware IO.  It sounds like LabVIEW is not able to load this shared library when you click run.  The shared object should be installed when you run the LINX target setup, and the fact that LabVIEW is running on the target means that step at least partially worked.

Are you using the Jessie lite or full image (I recommend full, I've never tested lite).

If you're already using Jessie full, you may need to SSH into the target and confirm that the .so is created and linked into the correct location.  Can you try the steps in the first post here and report what you see in /usr/lib

Thanks!

-Kristoff

Share this post


Link to post
Share on other sites
  • 0

HI Mr. Kristoff,

I followed the steps from the link you gave me, but after I input sudo schroot --run-session -c lv, I got this reply (I have attached the image).

However, I tried this commands, which I think is just the same with the steps you gave.

cd /srv/chroot/labview/usr/lib

ln -s ./liblinxdevice_rpi2.so .liblinxdevice.so

I then tried deploying my VI again. The deployment was succesful, but even before I can even click anything in the VI's panel, a pop-up window suddenly appears and says that the connection to my raspberry pi is lost. Do you have something in mind on how to fix this?

My primary guess for this error's culprit is my internet connection with my rpi; it is connected to the internet through lan cable. I plugging out the cable and plugging it in again, but the problem still persist. I also tried rebooting my rpi, but the same happened.

 

reply.PNG

Share this post


Link to post
Share on other sites
  • 0

When the command prompt changes to 'root@raspberrypi' you are in the chroot so that is good, however before you run the  'ln -s' command you need to navigate to the /usr/lib directory.

Can you run the following

cd /srv/chroot/labview
sudo schroot --run-session -c lv
cd /usr/lib
ls -al liblinx*

and post the output.

Thanks!

-Kristoff

Share this post


Link to post
Share on other sites
  • 0

That looks correct.  Can you reboot the RPI and then try running the LINX Blink example from the LabVIEW Example finder and see if that has the same issue. 

Thanks!

-Kristoff

Share this post


Link to post
Share on other sites
  • 0

Can you hold control and click the run button.  This should force re-compile the project.  Then click the run button to try to deploy again.

-Kristoff

Share this post


Link to post
Share on other sites
  • 0

Hi Mr. Kristoff,

After I force re-compiled the project and deploy again, the deployment became successful, but even before I have tried clicking a button on the VI, a warning pop-upped which warns that the connection to the rpi was lost (the same warning as the last photo in the document I posted).

Share this post


Link to post
Share on other sites
  • 0

Can you post the block diagram of the VI you're running.

Can you also try deploying a VI with only a while loop, stop button and iteration indicator to see if that deploys and runs successfully.

Thanks!

Share this post


Link to post
Share on other sites
  • 0

The varying results and the other losses of connection make me suspect a networking issue. 

Are you using an official Raspberry Pi 3?

Can you describe your network.  How is the Raspberry Pi connected, how is your PC connected.  What type of routers / switches, etc are between the two.

 

Share this post


Link to post
Share on other sites
  • 0

Hi Mr. Kristoff,

I am using the Raspberry Pi 3 that is available in my school's laboratory. I have attached a picture of the back panel of my rpi's box.

I am connecting both my devices, Raspberry Pi 3 and laptop, to the internet via lan wires present in our computer laboratory. 

IMG_20180310_080116.jpg

Share this post


Link to post
Share on other sites
  • 0

Hi Murphy,

is your problem still alive?

 

Havel you controlled this serial connection on your Pi?

This was the problem by me.

 

Screenshot 2018-04-03 um 18.59.15.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now