LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki Code Distribution Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Copy/Move Build Specification from one Project to another, Can this be done and if so how?
Val Brown
post Aug 15 2008, 10:00 PM
Post #1


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


I'm using 8.6 and am wondering if it is possible to transfer a Build specification from one project to another, or do I have to manually re-enter the Build specification in the "target" Project?

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Aug 15 2008, 10:00 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
crelf
post Aug 15 2008, 11:01 PM
Post #2


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3851
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Val Brown @ Aug 15 2008, 06:00 PM) *
I'm using 8.6 and am wondering if it is possible to transfer a Build specification from one project to another, or do I have to manually re-enter the Build specification in the "target" Project?

Thinking aloud: I wonder if you could just copy the build-related portion of the source lvproj xml file to the target lvproj xml file?

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 15 2008, 11:41 PM
Post #3


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


QUOTE (crelf @ Aug 15 2008, 04:01 PM) *
Thinking aloud: I wonder if you could just copy the build-related portion of the source lvproj xml file to the target lvproj xml file?



Yeah, I was wondering that too and, of course, that raises two questions/issues for me:

1. Has anybody done this successfully? (that's the oh my god I don't want to blow up the world or lose my project fear talking)
2. How do I know what the "build-related portion" of the lvproj is? (I know some XML but...)

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 16 2008, 05:25 AM
Post #4


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


QUOTE (Val Brown @ Aug 15 2008, 04:41 PM) *
Yeah, I was wondering that too and, of course, that raises two questions/issues for me:

1. Has anybody done this successfully? (that's the oh my god I don't want to blow up the world or lose my project fear talking)
2. How do I know what the "build-related portion" of the lvproj is? (I know some XML but...)



Well I just tried doing a "cut and paste" of the build specs and got a "Project file corrupt" error message when trying to load it so I don't think this is going to work. sad.gif

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jeffrey Habets
post Aug 16 2008, 10:13 AM
Post #5


Very Active
***

Premium Member
Posts: 111
Joined: 26-October 04
From: Weert
Member No.: 906
Using LabVIEW Since:1997
LV:8.20 ,8.0.1 ,7.1.1
Netherlands hol_limburg Netherlands Antilles


Well, I think it should be doable.. I've done it within the same project (I think it was in LV8, where there was no duplicate option yet).

You should make sure that that you copy the complete item <Item Name="YourBuildName" Type="EXE"> including the closing tag within the <Item Name="Build Specifications" Type="Build"> tag. Then inspect (and if necessary edit) all property tags of your buildspec to see if they relate to stuff that is actually in your project.

I've done the same with DAQ-Tasks in recent projects and it is really important that everything that is refered to is actually present in the project. It's also important that you don't introduce duplicate names/paths etc. by copying tags.

--------------------
Greetings, Jeffrey
NI CLA & VIT


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post Aug 16 2008, 02:09 PM
Post #6


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3851
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Val Brown @ Aug 16 2008, 01:25 AM) *
Well I just tried doing a "cut and paste" of the build specs and got a "Project file corrupt" error message when trying to load it so I don't think this is going to work. sad.gif

Hey Val - can you post your lvproj file? Maybe we could try to give you some pointers...

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 16 2008, 02:23 PM
Post #7


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


QUOTE (crelf @ Aug 16 2008, 07:09 AM) *
Hey Val - can you post your lvproj file? Maybe we could try to give you some pointers...



I'd be happy to do so but I can't seem to make an attachment work. Can someone point me to where there are some step by step instructions on how to do that?

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post Aug 16 2008, 05:26 PM
Post #8


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3851
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Val Brown @ Aug 16 2008, 10:23 AM) *
I'd be happy to do so but I can't seem to make an attachment work.

What about attaching are you struggling with? Are you getting an error message?

Maybe LAVA doesn't accept *.lvproj files. Try zipping it and then attaching it instead.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 16 2008, 09:31 PM
Post #9


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


QUOTE (crelf @ Aug 16 2008, 10:26 AM) *
What about attaching are you struggling with? Are you getting an error message?

Maybe LAVA doesn't accept *.lvproj files. Try zipping it and then attaching it instead.



I actually solved the problem by a back door process. I saved a top-level VI from one project (that didn't have the build specs I wanted) into the project that did have the build specs I wanted to use. A little bit of editing of the overall project to duplicate the virtual folder structure and I'm done.

I'll try the attachment process again so I can generate the error and post the exact error message. I'd really like to know how to do attachments and I suspect I'm just not following the correct procedure here for the forum.

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post Aug 16 2008, 10:43 PM
Post #10


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3851
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Val Brown @ Aug 16 2008, 05:31 PM) *
I actually solved the problem

Good stuff.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
gmart
post Aug 18 2008, 01:08 PM
Post #11


Very Active
***

NI
Posts: 95
Joined: 12-December 05
From: Austin, TX
Member No.: 3674
LV:8.0
United States Nothing Selected Nothing Selected


QUOTE (Val Brown @ Aug 16 2008, 03:31 PM) *
I actually solved the problem by a back door process. I saved a top-level VI from one project (that didn't have the build specs I wanted) into the project that did have the build specs I wanted to use. A little bit of editing of the overall project to duplicate the virtual folder structure and I'm done.

I'll try the attachment process again so I can generate the error and post the exact error message. I'd really like to know how to do attachments and I suspect I'm just not following the correct procedure here for the forum.


There is no built in mechanism to copy build specifications between projects. Since the build specification information is saved in the project file, you could perform a Save As on the project file which will copy the build spec information. One challenge with copying build spec info to another project is that files in the target project may be different than the source project. What would be the best way to handle that? Would the expectation be that the build spec should work or that the user would need to "fix it up"? In general, it is not desirable to create new items that are immediately "broken" so that has been a hurdle to having this feature available.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 18 2008, 02:10 PM
Post #12


Extremely Active
****

Member
Posts: 400
Joined: 26-March 06
From: Victoria, BC Canada
Member No.: 4568
Using LabVIEW Since:1998
LV:8.6 ,8.5.1 ,8.2.1
Canada United States Nothing Selected


QUOTE (gmart @ Aug 18 2008, 06:08 AM) *
There is no built in mechanism to copy build specifications between projects. Since the build specification information is saved in the project file, you could perform a Save As on the project file which will copy the build spec information. One challenge with copying build spec info to another project is that files in the target project may be different than the source project. What would be the best way to handle that? Would the expectation be that the build spec should work or that the user would need to "fix it up"? In general, it is not desirable to create new items that are immediately "broken" so that has been a hurdle to having this feature available.


Yes, that I can understand. Perhaps one way to approach this conundrum would be to have a "Save As" function for Build specifications. That way a Build could be essentially "exported" to a an XML structure with a complete explicit pathname for each dependancy/resource then the newly created BLD could be integrated into an LVPROJ just like any legacy BLDs are.

--------------------
The power of NeuroCARETM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ton
post Aug 18 2008, 03:41 PM
Post #13


CCT It
*****

Premium Member
Posts: 1393
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (Val Brown @ Aug 18 2008, 04:10 PM) *
Yes, that I can understand. Perhaps one way to approach this conundrum would be to have a "Save As" function for Build specifications. That way a Build could be essentially "exported" to a an XML structure with a complete explicit pathname for each dependancy/resource then the newly created BLD could be integrated into an LVPROJ just like any legacy BLDs are.

You can access all the info on the build specifications via VI-server.
Attached Image

If you are smart you can copy the settings from one build to another (source distro's seem the most easy).

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Val Brown
post Aug 18 2008, 03:56 PM
Post #14