04-18-2011 12:54 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
p.s: I also posted this under the Labview forum.
04-19-2011 06:02 PM
Hey Kashif,
Why arent you hosting the shared variables on the cRIO? Also, when you are trying this on a different computer, is this computer on the same network as the cRIO? If not, then the shared variables would not be able to communicate because they seem to be network publish shared variables.
Another option is to bind the shared variables to each other and on the host.vi to make sure that they are always pointed to the cRIO IP address when binding (assuming the cRIO IP wont change).
A great way to check to see if the shared variables are updating when you are running the exe on another computer is to go back to the development computer and run Distributed Systems Manager and look at the shared variables (if the library is located on the cRIO) and you can see if those are updating. If they are updating there, then it has something to do with the communication between the shared variables.
I would recommend having the library on the cRIO. This will then update the shared variables whenever the cRIO has new information for them. This will help narrow down the issue. With the shared variable communication (if that is what the issue is) then either binding the shared variables to each other or making sure the computer you are trying to run the exe on is on the same network.
David A.
04-20-2011 09:12 PM
Hey David,
Thank you for your help! The executable is up and running now. I went ahead and moved all but one of my variables on to the cRIO and used the Distributed Systems Manager to observe them. I created an startup real-time application on my cRIO and modified my .aliases file to include the correct IP address for my PC. I then created an executable for my host VI and everything seems to working.
I decided to create an executable in the first place to experiment with the build process. I now have to make my executable work on a TPC-2206 touch panel (the goal of my project). I have the touch panel module installed on my PC and the TPC has the NI touch panel service on it.
I tried adding the TPC as a target to my project and moved my host.VI under its tree. After creating the executable I attempted to deploy it on the TPC. Unfortunately, I met with an error claiming a certain service wasn't found..I'll post a screen shot from work tomorrow.
Until then, I'm attaching a screen capture of the updated working project.
Thank you!
Kashif
08-08-2012 02:35 PM
Hello Kashif,
I would like to ask you if you finally could make the executable work in the touch panel. I'm starting a project with the TPC-2212, but although the vi works perfect now in my laptop, I still have many doubts about how to create the executable, and even I don't know if I need extra software in order to make it run in the touch panel. Can you please help me with that information?
Thanks a lot!!!
LinaZ.
08-09-2012 09:00 AM
Hi David,
I had asked something to the person who created this discussion but I'm not sure if he'll answer me, so I prefer to make it directly to you.
I'm starting a project with the TPC-2212, but although the vi works perfect now in my laptop, I still have many doubts about how to create the executable, specially I'd like to know if I need extra software in order to make it run in the touch panel. In my laptop I have the LabVIEW Full development System and in my program I'm using the PID and Fuzzy logic module. Can you please help me with that information?
Thanks a lot!!!
LinaZ.
08-09-2012 12:27 PM
Hey Linaz,
A good place to start with creating a Touch Panel application is http://www.ni.com/white-paper/5868/en, depending on how you want to deploy this application you may need to make some modifications to your VI, the touch panel is ment to be a user interface.
Hope this helps.
08-14-2012 05:54 AM
Hello BeauH,
Thanks a lot for your reply. It's a little old this manual because this touch panel comes with WIN7, but I hope the installation doesn't have many changes compared with the other systems. Finally I have the panel in my hands, so I'll start with the process and I'd let you know if I need your help again
Thanks a lot!
Lina Z.