Jump to content
  • 0

Deployment Error When Deploying Labview to Raspberry Pi through LINX


Murphy

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?

Link to comment
Share on other sites

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...