LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO code deployment from linux

Hi,

 

I have a cRIO running out in the field and the only computers permanently connected to it are GUI-less Linux machines. Currently to deploy new code to the cRIO, I go out to one of these Linux machines, steal its network cable, and plug it in to my laptop running Windows. It would be great if I could deploy new code to the cRIOs from one of these Linux machines. Can I simply copy my .rtexe and .lvbitx files over FTP to the cRIO? Does anyone know where I can find more information on this?

 

Thanks!

0 Kudos
Message 1 of 10
(3,010 Views)

Hi Maxwell,

 

What model of cRIO are you using? If you are using anything other than the cRIO-9068 or myRIO (these two run Linux RT as their OS), you can regularly ftp into the target and place the .rtexe in the ni-rt/startup folder(ftp://10.1.X.X/ni-rt/startup/). If you are using a cRIO with Linux RT, you must first install other software.

 

You could deploy the bitfile to the target in NI-MAX using the steps in this link.

 

It becomes a little more complicated to ftp the bitfile. One way to do it is to ftp the bitfile to a location on the cRIO and then modify your Open FPGA Reference VI in your RT app to look for that spot.  

 

FPGA Reference.PNG

 

 

Applications Engineer
National Instruments
0 Kudos
Message 2 of 10
(2,981 Views)

Thanks Holly. That's very helpful about the RTEXE. I won't be able to run MAX on any of the machines that are permanently connected to the cRIO, but that modification of the Open FPGA Reference VI sounds promising.

0 Kudos
Message 3 of 10
(2,978 Views)

You might also want to look into the Repliation and Deployment Utility.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 10
(2,975 Views)

Agreed! However, the reason I did not recommend the Replication and Deployment utility is that you need a cRIO next to the development computer to create the image (it requires a spare cRIO that is not in the field).

Applications Engineer
National Instruments
0 Kudos
Message 5 of 10
(2,972 Views)

I might be able to use a spare cRIO to generate the image using the replication and deployment utility, but how would I run the deployment utility from a text-only Linux machine?

0 Kudos
Message 6 of 10
(2,969 Views)

It looks like RAD requires the Run-Time engine and NI System Configuration 5.5. I'm not sure what version of Linux is on that computer and if it would be compatible with the LabVIEW Linux Run Time Engine. It could be worth a shot.

 

http://www.ni.com/download/labview-run-time-engine-2012/3447/en/

http://www.ni.com/download/ni-system-configuration-5.5/4229/en/

Applications Engineer
National Instruments
0 Kudos
Message 7 of 10
(2,958 Views)

That's an interesting idea but it still doesn't seem possible to me to run the RAD from a text-only environment.

0 Kudos
Message 8 of 10
(2,953 Views)

RAD is a stand alone exe. You should be able to call it from a text environment. However, it may be easier for you to use the previous method where you point the FPGA reference to the bitfile and ftp it onto the cRIO.

Applications Engineer
National Instruments
0 Kudos
Message 9 of 10
(2,947 Views)

Ok, thanks! I will give that a try.

0 Kudos
Message 10 of 10
(2,941 Views)