How do I Communicate Between Multiple LabVIEW Executables using Shared Variables?
Primary Software: LabVIEW Development Systems>>Professional Development System Primary Software Version: 8.0 Primary Software Fixed Version: 8.0.1 Secondary Software: LabVIEW Toolkits>>Application Builder
Problem: I have developed two executables and need to pass data between the two. How is this done using shared variables?
Solution: In order to communicate between multiple executable applications using the shared variables it is important to use one LabVIEW Project. The project should contain all of the Build Specifications for each executable that is to be built.
In order to use shared variables they must be deployed, and when using them with executables it is important to explicitly do this as it cannot be automatically achieved as it normally can within the LabVIEW environment.
This is best achieved programmatically using VI Server and is fully documented in the following document:
One common pitfall is including the Project Library that hosts the Shared Variable(s) within the Executable itself as this is the default destination. Whilst configuring the Build Specifications settings, remember to change the Libraries Destination to the Support Directory or another Pre-defined Directory.
An example project is attached to this document and can be used to demonstrate the behaviour. Remember to check through all of the Build Specification Settings in order to resolve any file paths to suit the local machine.
文章评论(0条评论)
登录后参与讨论