‎07-12-2007 03:39 AM
Solved! Go to Solution.
‎07-12-2007 03:57 AM
‎07-12-2007 04:26 AM - edited ‎07-12-2007 04:26 AM
Message Edited by pincpanter on 07-12-2007 11:26 AM
‎07-12-2007 04:26 AM
@Tournifreak wrote:
Will LV keep them separate because the applications they are part of are exe's?
Yes. Each application has its own memory space, so each application can have different VIs with the same name. You should have no problems doing this as long as you don't try to open both applications in LabVIEW itself at the same time.
By the way, a common way of getting around this is by using namespacing - each application (and module, potentially) gets a prefix or suffix, so that its VIs are guranteed to have unique name (for instance - app1_main.vi, app1_comm_Open.vi, app2_main.vi, etc.).
‎07-12-2007 04:31 AM
Unique names do seem to be the way forward. But not the way back. i.e changing the names of hundreds of VIs at this stage fills me with terror!
@tst wrote:
@Tournifreak wrote:
Will LV keep them separate because the applications they are part of are exe's?
Yes. Each application has its own memory space, so each application can have different VIs with the same name. You should have no problems doing this as long as you don't try to open both applications in LabVIEW itself at the same time.
By the way, a common way of getting around this is by using namespacing - each application (and module, potentially) gets a prefix or suffix, so that its VIs are guranteed to have unique name (for instance - app1_main.vi, app1_comm_Open.vi, app2_main.vi, etc.).
‎07-12-2007 04:41 AM
@Tournifreak wrote:
changing the names of hundreds of VIs at this stage fills me with terror!
This can be automated (you can rename a hierarchy of VIs and maintain the connections), so it's mostly relatively easy when you have the right tool.
You could run into problems, however, if you're doing dynamic loading or refering to specific VI names.
‎07-12-2007 05:17 AM
‎07-12-2007 05:51 AM
@mikeporter wrote:
For example say you have multiple VIs that do the same thing but have different names.
Well, you shouldn't have that. If the VIs do the same thing, there should be a single utility VI called by all programs and it should be placed in the user.lib folder.