LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copied the project folder to use subpanel- confilcts

Hi,

I would like to run same application twice 

i make it with subpanel method.

 

what is the better why to copy the same folder proj ?

i got conflicts .

 

please see the snapshots  .

thanks 

Download All
0 Kudos
Message 1 of 5
(2,228 Views)

The problem you're having (conflicting files) is because you have two files with the same fully-namespaced name in memory at once.

This is unsurprising, because you've intentionally copied your files, but they don't have a namespace (library etc).

 

One option is to provide a namespace by placing them in a library, and then when you Save As, it gives an option to copy with a new library name.

However, this leads to code duplication and is not a good idea really (although it's probably your quickest fix, it will lead to the most trouble in future).

 

A better choice is to have only one copy of your code, and make the VIs you need reentrant. You'll need to ensure that the behaviour isn't changed in this transformation - things to be careful about include Uninitialized Shift Registers and global VIs/memory.

 

You can then run the same code twice using asynchronous calls.

You could also consider looking at the Actor Framework for inspiration or as a possible framework to use. Note this has something of a learning curve...


GCentral
0 Kudos
Message 2 of 5
(2,218 Views)

More options please 

0 Kudos
Message 3 of 5
(2,181 Views)

thanks , 

i think that the 1st option i did, burn_in and burn_in_1 folders? 

 

the 2nd option is very problematic for me . many VIs to edit

 

0 Kudos
Message 4 of 5
(2,165 Views)

Folders don't provide a namespace. 

 

You need to specifically add the VIs to a library (lvlib) before copying them for option 1.


GCentral
0 Kudos
Message 5 of 5
(2,147 Views)