01-25-2015 09:19 AM
Hello,
I would like to run a VI on a RT PXI target in a project.
The VI contains DAQmx function (to acquire AI data from 6221 module).
When I try running the VI remotely using VI server palette, it claims for invalid DAQmx name, means that the VI is configured as my Host PC, and not as my PXI, even it's brunched under the PXI.
Is there any way running a VI remotely as my desired configuration?
My system Spec:
Win7
LV2013
DAQmx 9.7.5
PXI - 81086 Controller (Pharlap 13)
AI Module - 6221
LVRT13
Thanks,
Yakir.
01-25-2015 12:12 PM
Have you added the DAQmx drivers to your RT target?
Are you developing the VI under the chassis or under the PC?
There's no such thing as the AI-6221. Do you have the USB-6221, PCI-6221, or PXI-6221?
01-25-2015 12:27 PM
Hello,
Thanks.
Have you added the DAQmx drivers to your RT target?
Yeas I have. If I run the VI directly on PXI it works, but the vi server - remote mode - not.
Are you developing the VI under the chassis or under the PC?
The VI is saved on the PC, but it lays under the PXI VIs.
There's no such thing as the AI-6221. Do you have the USB-6221, PCI-6221, or PXI-6221?
PXI-6221
01-25-2015 02:24 PM
At some point, you'll want to deploy the VI to the PXI controller so that it's not on the PC. If you're running it from the PC instead of the controller, that's part of your problem.
01-25-2015 02:45 PM
You need to be developing this code as part of a LabVIEW Real-Time Project, with your remote PXI identified (in the Project) as the target of the DAQmx VI. Note that the code for this VI is still on your PC, but when you open the Project, you drag it from the My Computer section into the Remote Target section. Once you've done this, you can "deploy" to download your code to your PXI. You can then, while still connected, run the VI remotely, with probes in place to ensure that it is "doing the right thing".
Are you already doing this? If so, does it look like the code deploys correctly? Can you run it remotely from the Project Explorer?
Bob Schor
01-25-2015 06:35 PM
Building on what Bob said, you should be able to attach a copy of your project to your posts so we can take a look at it and see if you're setting it up correctly. A simple data acquisition program shouldn't have anything proprietary to keep you from doing so. Show us what you have and we'll try to help point you in the right direction.
01-26-2015 09:08 PM
Also following up on what I said, my current RT Project has all of the DAQmx functions on the PXI. Since I'm running "modern LabVIEW" (2012 and 2014), my RT code is on the PXI "branch" of the Project. To test the code during Development, I simply Connect to the PXI, Deploy, then Run the top level VI on the PXI. When I'm ready to actually run in "executable" mode, I build an RTEXE and set it to run as the Startup VI -- when it asks if I want to reboot the PXI, I say "Yes". Now I can start the Host code, establish commnication with the RT program (I use Network Streams), and I'm off and running.
BS