Visit our LabVIEW Wiki Code Distribution Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Aug 15 2008, 10:00 PM
Post
#1
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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
|
||
|
|
|||
| Ad |
Aug 15 2008, 10:00 PM
Post
#
|
||
|
|
|
||
|
|
|||
Aug 15 2008, 11:01 PM
Post
#2
|
|||
![]() I'm a LAVA, not a fighter. V I Engineering, Inc. ![]() Posts: 3751 Joined: 13-October 03 From: Michigan, USA Member No.: 181 Using LabVIEW Since:1993 LV:8.5 ,. ,.
My Blog
|
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? -------------------- ![]()
|
||
|
|
|||
Aug 15 2008, 11:41 PM
Post
#3
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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
|
||
|
|
|||
Aug 16 2008, 05:25 AM
Post
#4
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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. -------------------- The power of NeuroCARETM
|
||
|
|
|||
Aug 16 2008, 10:13 AM
Post
#5
|
|||
![]() Very Active Premium Member ![]() Posts: 107 Joined: 26-October 04 From: Weert Member No.: 906 Using LabVIEW Since:1997 LV:8.20 ,8.0.1 ,7.1.1
|
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. --------------------
|
||
|
|
|||
Aug 16 2008, 02:09 PM
Post
#6
|
|||
![]() I'm a LAVA, not a fighter. V I Engineering, Inc. ![]() Posts: 3751 Joined: 13-October 03 From: Michigan, USA Member No.: 181 Using LabVIEW Since:1993 LV:8.5 ,. ,.
My Blog
|
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. Hey Val - can you post your lvproj file? Maybe we could try to give you some pointers... -------------------- ![]()
|
||
|
|
|||
Aug 16 2008, 02:23 PM
Post
#7
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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
|
||
|
|
|||
Aug 16 2008, 05:26 PM
Post
#8
|
|||
![]() I'm a LAVA, not a fighter. V I Engineering, Inc. ![]() Posts: 3751 Joined: 13-October 03 From: Michigan, USA Member No.: 181 Using LabVIEW Since:1993 LV:8.5 ,. ,.
My Blog
|
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. -------------------- ![]()
|
||
|
|
|||
Aug 16 2008, 09:31 PM
Post
#9
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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
|
||
|
|
|||
Aug 16 2008, 10:43 PM
Post
#10
|
|||
![]() I'm a LAVA, not a fighter. V I Engineering, Inc. ![]() Posts: 3751 Joined: 13-October 03 From: Michigan, USA Member No.: 181 Using LabVIEW Since:1993 LV:8.5 ,. ,.
My Blog
|
-------------------- ![]()
|
||
|
|
|||
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
|
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.
|
||
|
|
|||
Aug 18 2008, 02:10 PM
Post
#12
|
|||
|
Extremely Active Member Posts: 379 Joined: 26-March 06 From: Victoria, BC Canada Member No.: 4568 Using LabVIEW Since:1998 LV:8.6 ,8.5.1 ,8.2.1
|
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
|
||
|
|
|||
Aug 18 2008, 03:41 PM
Post
#13
|
||||
![]() CCT It Premium Member ![]() Posts: 1337 Joined: 13-June 05 From: Woerden, Netherlands Member No.: 2399 Using LabVIEW Since:2001 LV:8.5.1 ,6.1 ,8.2.1
My Blog
My Gallery
|
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. If you are smart you can copy the settings from one build to another (source distro's seem the most easy). Ton --------------------
|
|||
|
|
||||
Aug 18 2008, 03:56 PM
Post
#14
|