LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-Time Appllication on NI myRIO with host computer

Hello everyone.

 

I am trying to build an application that consists of a host application that will run in a computer and a Real-Time Application that will programmatically be deployed to a NI myRIO board, where it will run. The conexion of both is done via ethernet, and I use a Shared Variables Library in order to communicate data between both devices.

 

I build a real time application called "PenduloGantryPIDRT" with the properties shown in the image "Properties RT". I try to run my host VI ("Pendulo Gantry PID Analisis") with the project configuration shown in the picture "Project", and I have an error with the Library, as "Error SVE" pops up. Of course, I have not deployed my Library to the target, but it seems the RT application is deployed, or at least gives no error.

 

However, if I build my Host Application "PIDGantry" and run it I get the following error:

"Error 7 occurred at an unidentified location
Possible reason(s):
LabVIEW:  File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct."

at the following source:

"Invoke Node in GetTargetBuildSpecs.vi->NI_App_Builder_API.lvlib: Deploy.vi->Pendulo Gantry PID Monitorizacion.vi"

 

I am a beginner with LabVIEW, so please I would like to know what could the problem be, if I am deploying correctly my Real-Time Application (as shown in figure "Deploy").

 

I tried including my library at the properties for the Real-Time Application build (image "Properties RT 2") but it didn't work, and when trying to build a Shared Library at Build Specifications I would take the error shown in "GNU" picture. Therefore, I would like to know what is the best/correct way to add my library to the application.

 

I may have not been fully clear, I have just a lot of stuff in my head of all the trials I have already made, so if you have any question please ask.

 

Thanks in advance.

 

 

 

 

0 Kudos
Message 1 of 5
(3,030 Views)

There are probably a couple of things wrong here. However, let's start with error 7, this is an error that occurs when you call a file programatically, but the file directory cannot be found.

Are you calling a file in 'Pendulo Gantry PID Monitorizacion.vi'?

Use general debugging tools like probing the file paths, then check the file path against what's actually in Windows,

 

Are you using relative or absolute file paths?

0 Kudos
Message 2 of 5
(2,990 Views)

Hi there Tom, thank you for answering.

 

I am not calling any file in "Pendulo Gantry PID Monitorizacion.vi" appart from the deployment of the Build Specification "PenduloGantryPIDRT". For this, I am using an absolute path, "G:\Uni\TFM\LabView\Prueba\Prueba.lvproj", which I think is correct. This path leads to an external hardware conected to my computer, but I believe that should not be the error, as I tried storing the files in my computer and had the same result.

 

Cheers,

 

Miguel

0 Kudos
Message 3 of 5
(2,982 Views)

Hi Miguel, I'm having the same problem as you. I have my project where I have a VI for de MyRIO, another in the computer, and a library where I shared variables. Still, I can't make de RealTime Application, works for itself and communicate the variables simultaneously with my computer.

I was wondering if you could help me by telling me how you solved it.

0 Kudos
Message 4 of 5
(1,597 Views)

It is something of a challenge to debug a LabVIEW-RT application for the myRIO from screenshots of Error Messages and configuations.  But I noticed that the SVE Error refers to an IP of 172.22.11.1 -- is this supposed to be the IP for the myRIO (172.22.11.2, usually)?

 

Also, were you able to resolve the GNU error?

 

Other "useful" information (for us to make other than "wild guesses" about your situation) would be answers to the following --

  • What Version of LabVIEW are you running?  Include year, SP1 or not, and whether 32-bit or 64-bit LabVIEW.
  • Are you using the myRIO Software Toolkit?  What version?
  • Where are the Shared Variables being hosted?

Bob Schor

0 Kudos
Message 5 of 5
(1,585 Views)