LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using Vi server in real time application

HI

I am  using PXIe( 4330, 6363 and 4353) devices and I want to have executable file for the calibration program  ( AI,AO verification procedure and so on). So I think is necessary to have 2 programs for each 'verification procedure', one under host (executable file) and one under target (real time application).  in host program (exe file) I used VI server to call Real time application. There are some problems that I am phasing.

First I can’t select the channels which the reason is abvious because my host program is under my computer not under target, but I do not know what is the solution?

 and second is, error number 7 occurred. which says : the path file is not correct , or the file is removed... 

 

As I mentioned my goal is to have an executable file which contains Real Time application. Please specify If there are other ways to do that. I do not know wether the way I am doing is correct or is somethig impossible ?!!!!!!!

0 Kudos
Message 1 of 3
(2,211 Views)

Greetings, Eric;

 

I am looking at your code and would have a few questions. Is there a reason as to why you are calling the VIs dynamically? 

 

The DAQmx Unflatten Channel string would allow you to enter a string in your Host VI and pass that to the Target VI via a Network Shared Variable. 

 

Additionally, you might want to use the Channel Node channel information in the PXI and then write that to a variable to show the user which chanels are available. 

 

Is something like that what you are looking for?

 

Cordially;

Simon P.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,169 Views)

Hi 

there is no specific reason why I call vi dynamically, as I said I try to generate executable file which contains real time application, but before that I need to run host vi too see if it works or not. I did what you advised and I have same error still. I think there must be something wrong with path address and vi server, but I address .rtexe file or target vi to my host and for both I have error. 

I have attached the projects here.and I have followed this example : 

 

http://digital.ni.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170

BTW , are there some special configuration for Real time application that I might missed ? 

thanks 

 

0 Kudos
Message 3 of 3
(2,147 Views)