11-14-2010 06:26 PM
Hi,
I have this weird problem with a real time project using a PXI8184, PXI 8164 and a PXI 6511 boards. When I run the host and target vi's from inside the project (i.e., launching the host and target vi's from the project window), eveything is OK. However, when I run the host and target vi's from outside the project (i.e., running both vi's independently, without opening the project) the PXI 6511 board does not work and the 200220 error appears. Notice that everything is OK with the PXI 6511 board in MAX and another strange symptom is that when I try to include a DAQmx channel constant in Labview (when running the target vi from outside the project), no devices are detected. Can anyone help me please?
Thanks in advance,
João Barata
porto/Portugal
11-15-2010 10:15 AM
Hi Joao,
Your "problem" is totally normal.
I guess you realized that when you launch your RT VI from the project, the code and other files are deployed to the RT controller before the VI is running.
This is because the code is transferred to the controller, and is executed on the controller. This transfer is done thanks to the project, wich determine on wich target you're working, and thanks to the IP adress declared in the project.
If you look at the bottom-left corner of your VI, you'll see that it execute on the RT instance.
If you open your VI without the project, the only known instance for LabVIEW is the main instance, wich runs on Windows. In this way, there is no link between your VI and the RT target.
That's why you are not able to designate DAQmx channels either.
If you really want to use you RT VI without a project, you need to compile it into an RT stand-alone executable.
Best Regards
Olivier L. | Certified LabVIEW Developer
11-15-2010 05:58 PM
Hi Olivier,
Thank you for your answer. However, I have already used this "strategy" (launching the host and target vi apart from the project) with another similar PXI setup and it worked just fine...furthermore, how can one explain that all the shared variables work well when I launch the host and target vi separately from the project? There is definitely connection between host and target vi's: if the host and target weren't deployed, the shared variable engine wouldn't work, am I right? The only thing that doesn't "work" is the PXI6511 not being recognized...
Thank you once again,
João Barata
Porto-Portugal
01-20-2011 10:43 PM
Hi Joao,
Yes. You are right that the shared variables are working fine. But they will be through the main instance which is in Windows. As Oliver said, you will have to deploy the VIs in the RT module, to solve this.