取消
顯示結果 
搜尋替代 
您的意思是: 

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 

下載全部
0 積分
1 條訊息(共 5 條)
2,275 檢視

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 積分
2 條訊息(共 5 條)
2,265 檢視

More options please 

0 積分
3 條訊息(共 5 條)
2,228 檢視

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 積分
4 條訊息(共 5 條)
2,212 檢視

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 積分
5 條訊息(共 5 條)
2,194 檢視