LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble creating an executable for my cRIO project

Hello all,

 

I'm using a cRIO-9014 with a couple of NI-9205 modules for data acquistion and I have my project setup and working. However, I wish to create an executable that I can run on any other PC (that has the req'd labview environment installed) and have it connect to my cRIO displaying my output.

 

I have attached a screen capture of my project tree below.

 

I attempted to create an EXE by from Build Specifications under the My Computer branch. I included cRIO_Host.vi as my startup VI and also ensured I have my library of variables load up. I should also mention that the cRIO_Host.vi opens the RIO_thermocouple.vi (I did this using an Invoke Node).

 

However, when I run the .exe none of my gauges/indicators move. There are no errors displayed either. Any help would be greatly appreciated! I'm sure I'm doing something stupid since I've only used Labview for a couple of months.

 

Thanks,

 

Kashif 

0 Kudos
Message 1 of 4
(2,860 Views)

Hi k-efrc,

 

Did you make sure to change the IP address in the *.aliases file that accompanies your Real-Time code? It could be that the cRIO is looking for the shared variables on the Development computer not the Deployment computer you are running the *.exe on. 

 

Here is a link to a Tutorial that goes over using Shared Variables in built applications. The third section goes over editing the *.aliases file to point to the correct machine.

 

<Brian A | Applications Engineering | National Instruments> 

0 Kudos
Message 2 of 4
(2,823 Views)

Thank you very much for your reply!

 

So I should create an executable from the build spec under my target branch? 

 

I've been attempting to create executables using the build spec under My Computer and when I open the .aliases file in notepad I see the correctly assigned IP for my target but 'localhost' for my computer. I changed that to my actual computer IP that I set manually but it still isn't working. 

 

I also tried deploying my shared variables on my compactRIO but didn't seem to help.

 

Kashif

0 Kudos
Message 3 of 4
(2,811 Views)

I got it to work! Thank you for the help! I was trying to get the executable to run on the same computer I was using for development. So I created a real-time application that loads up on startup and then made an exe using build spec under My Computer. Worked like a charm! Smiley Happy 

 

I've attached a screenshot of what the project looks like now. I moved the network variables onto to the target as suggested by another applications engineer. 

 

Now I have to deploy my executable on a TPC-2206 touch panel! 

 

 

0 Kudos
Message 4 of 4
(2,796 Views)