NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Communction between TestStand and Application

I have an application which is developed by Labview 8.5, now I want to test the performance of the application using TestStand4.0. Usually, we use TestStand to startup the application, so it can get the right to watch the variables and the functions. Here I found that when I didn’t use TestStand to startup the application, it can’t control the variables and function of the application. Is there a way to solve this problem (maybe it is about process communication ) For example: First I run the application, then I startup the TestStand, here I found that the TestStand can’t control the application which is to be test. Is there a way to solve the problem? Thanks.
0 Kudos
Message 1 of 5
(3,983 Views)
Hi, I want to confirm your question. you said you could start the vi by TS, and watch the variables. And now you want to debug the VI without TS?
0 Kudos
Message 2 of 5
(3,958 Views)

Achilleus,

 

How are you controlling this application?  Are you simply running your code module and retrieving information once it runs, or are you doing some kind of interaction while it executes?  If a VI is run before TestStand is opened you can't use a code module to talk to it directly because it is already running.  If VI is simply open but not running, TestStand will get a reference to it and then run the VI.  Therefore I if you could provide some more detail as to how you are calling this VI, what you meant by 'watching' the variables (I am a little unsure), and, if you want, post a simple example that exhibits this behavior to help troubleshoot the problem.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,920 Views)
Hi, I am sorry that I didn’t make a clear explanation of this question. Now the question became like this: my application (vi) runs in one computer, and the TS is installed in anther one, the application has a data pool (Include some global variables). Now I want to start the application (vi) by TS, and use code module to change the global variables in the data pool. Is there any way to realize this?
0 Kudos
Message 4 of 5
(3,897 Views)
Achilleus,

You can run a VI on another computer by using the 'Run VI Asynchronously' (Right Click»Insert Step»LabVIEW Utility»Run VI Asynchronously) step in TestStand.  This step allows you to specify a remote computer (or deployed device) run a VI from that location.  Then, if you want that VI to talk to your global variables (which are located on the PC with TestStand?) you can convert them to network variables.  These variables will then be visible to any device connected to the same network as the PC hosting them.

Using the aforementioned step and the network variables you should be able to accomplish this goal.
John B.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,780 Views)