11-26-2014 04:50 AM - edited 11-26-2014 05:19 AM
Sorry for a simple question.
I have a TestStand sequence that uses units/tests written in LabVIEW. The sequence is started extermnally with a stand alone LabVIEW program. I need to establish simple exchange of information between LabVIEW units of the sequence and the external LabVIEW code.
The information is simple Strings eventually sent in both directions.
Please advice which way of commumnication shall be implemented.
Unfortunately, arttempts to search NI website (or Internet) result in a lot of irrelevant information. Probably I cannot shape out proper keywords. So there is a need in your help.
Thank you
Solved! Go to Solution.
11-26-2014 06:12 AM
I expect your "external LabVIEW application" to be the application which would be called "user interface" by NI.
There is no direct data exchange possible unless you implement something using standard inter-application communication channels (e.g. TCP).
The recommended way by NI would be to use TestStand custom UI Messages to send information from the code module via TS to the UI.
Norbert
11-26-2014 07:32 AM
You could try named queues in LabVIEW to transfer your data between code modules and the user interface.
11-26-2014 08:16 AM
@APSGreg wrote:
You could try named queues in LabVIEW to transfer your data between code modules and the user interface.
This will not work as the UI EXE is a different application instance as the code modules. Yes, you can make the code modules to execute in the EXE context ("Runtime Server"), but this is way more complex than using UI Messages.
Norbert
11-26-2014 09:06 AM
Unfortunately it has to be deployed to computers that do not have development environment.
However, your answer is very important: there is no easy and/or conventional solution. So, I shall try to create something on my own.
Thank you.
11-26-2014 09:48 AM
11-26-2014 09:52 AM
So far my knowledge is not sufficient to understand teh benefit. Probably I will come to it soon
The need is in introducing some initial information (f.ex. user ID) in the sequence and displaying intermediate/final status in the UI.
11-26-2014 10:01 AM - edited 11-26-2014 10:02 AM
@_Y_ wrote:
[...]The need is in introducing some initial information (f.ex. user ID) in the sequence [...]
Use a UI Message to query for that data (data available in UI, sequence execution requires it).
@_Y_ wrote:
[...]and displaying intermediate/final status in the UI.
Use a UI Message to pass that data for display (data available in sequence execution, UI requires it)
Norbert
EDIT: Btw, you should use the TestStand user management for tracking user IDs. This gives you more options and security than some custom implemented stuff in the UI.
11-26-2014 12:23 PM
Thank you.
And thank you for your time.