08-21-2015 06:03 PM
I have added two targets in my project. A cRIO and an Ethernet Expansion chassis.
When they are turned on and connected to the network I can run my vi in "My Computer".
How can I run my vi if they are not turned on?
Do I have to remove them from the project when I don't have access to them ?
Solved! Go to Solution.
08-21-2015 06:30 PM
Any code that references a VI on the missing target will cause your VI to not run. Its a little like having a single-target system and trying to run a VI after "removing" (deleting) one of it's sub-VIs.
However, you certainly can run code from a Project that does not reference the missing target. For example, my Real-Time Project includes several Analysis routines that run on the Host (including Generate Configuration File). These will run fine, both in Development Mode and in Compiled Mode, with my Remote System turned off (or otherwise not connected).
Bob Schor
08-23-2015 09:23 AM
So, which is the correct way to handle this issue?
Remove the targets from the project and add them again when they are connected ? If this is done, then all the shared variables that link to the channels of the modules need to be re-linked.
08-23-2015 01:15 PM
I have my RT Project on Subversion, so I download the entire Project to whatever computer I am using, In particular, my Laptop is not connected in any way to the Remote Host.
If I am developing code, even code that will (eventually) be deployed on the Remote Target, and hence (in the Project) shows the name of the Remote Target, there has never been a problem. Code develops just fine, though (of course) it cannot be Deployed or tested without the Remote. I do sometimes find that when I open the Project and click on the Remote Target, it may take a minute for it to figure out how to open all the VI.
Note that any routines that run on the Host and do not require the Remote should compile and run just fine.
Bob Schor