04-18-2011 12:04 PM
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
04-20-2011 09:42 AM
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>
04-20-2011 01:15 PM
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
04-20-2011 08:56 PM
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!
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!