LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Applications with same project resources running in LabView

Solved!
Go to solution

Hello,

 

is there a way how to force LabView to run VIs (apps) that share resources (VIs Controls etc.) as stand alone.

 

I have a project with TCP/IP networking, that is best debugged localhost, and both apps share some reusable code I use (error reporting, typedefs, thread synchronization)

 

If I run both as VIs, it will obviously end up malfunctioning, because both apps will share some memory, that is supposed to be process only.

 

 

 

Now I have to build these Apps with debugging enabled to solve this, this is very time consuming because every code change has to be rebuild 😞

 

0 Kudos
Message 1 of 5
(2,835 Views)

How did you conclude that it weill end up in malfunctioning? What is the problem you are facing when you run both the apps?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(2,823 Views)

I didn´t conclude, it just does 🙂

 

Example :

 

I have most of threads (while loops) registered to user event called "post", this user event works as post. VIs send messages to other VIs, those who are not recipients do nothing, those who are do what they are supposed to do.

 

Once the VIs get messages with same name from another VI (I do adress groups like all HW controlling threads do this and that etc.), that is supposed to run in different process, they start doing things that they shouldn´t.

 

 

Right now I have three options, build each app with debug info (needs rebuild after every code change)

 

or / and use the same project from different location in different labview version (merging projects back together is nuts)

 

last one is to use different computers (virtual OS), which I cant becouse of HW these apps work with (still needs merging but at least same LabView version)

0 Kudos
Message 3 of 5
(2,820 Views)
Solution
Accepted by topic author Bublina

Do you have both of your applications in the same project?

 

If so, try putting them in different projects.  LabVIEW will create separate memory spaces for them.

Message 4 of 5
(2,804 Views)

Thanks !

0 Kudos
Message 5 of 5
(2,794 Views)