02-20-2020 04:35 AM
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
02-20-2020 04:54 AM
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...
02-20-2020 07:25 AM
More options please
02-20-2020 02:07 PM
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
02-20-2020 09:53 PM