05-14-2010 06:39 AM
Hi all.
Have Main app and 4 sub-apps. Each of the 4 sub-apps has functional global (or action engine) to which it writes and reads a cluster of app specific data.
The idea was that using a functional global for each app then data could be passed between them all and the Main app.
For example, I want to be able to drop the FG of sub-app1 on the BD of sub-app2 and read the cluster of data. At the same time sub-app1 would be updating its FG on its own BD.
This does not seem to be working. For example the FG1 is being updated by sub-app1 BUT the instance of FG1 on the sub-app2 BD is empty.
None of the FG's is reentrant; therefore there should only ever be one instance of each FG, correct? There is only one(1) instance of each FG on disk. Each sub-app and FG is located in a separate LV Project.
Confused.
Battler.
Solved! Go to Solution.
05-14-2010 06:48 AM
That definitely doesn't seem to make sense. What I would like you to do is to make a simple project that replicates the issue between two VIs and see if that is still causes issues. Maybe it would be worth to then post that project over here so we can understand clearly what's going on?
05-14-2010 07:13 AM
I may be wrong but since the FG is running in different projects, i.e. different application instances, it cannot be used to exchange data.
In any case that are other way to do this, for example DataSocket....
Marco
05-14-2010 08:14 AM
MarcoMauri wrote:I may be wrong but since the FG is running in different projects, i.e. different application instances, it cannot be used to exchange data.
In any case that are other way to do this, for example DataSocket....
Marco
I believe you are correct.
While both VIs are running in the two project go to the hiarchy screen and hit "ctrl-a" to show all.
You will see that the two FG are running is unique contexts. So this is the equivelent of one app talking to anothe app on the same machine or across PCs, so Datasockets, TCP/IP, VI server...
Ben
05-14-2010 11:45 PM
Thank you all for your responses. Kudos for everybody! 😉
I migrated all my apps into a single(1) Project. Thusfar eveything seems to be operating correctly.