mike5 Posted February 6, 2012 Report Share Posted February 6, 2012 Hi scripting people. I couldn't find a way to script "Project->Save All". Can anyone offer some guidance to achieve this? Thanks and best regards, Miha Quote Link to comment
jgcode Posted February 6, 2012 Report Share Posted February 6, 2012 Hi scripting people. I couldn't find a way to script "Project->Save All". Can anyone offer some guidance to achieve this? Thanks and best regards, Miha If its not exposed then I am guessing you would have to loop thru and get all children etc... and save based on type. This would be a pain but would make a great reusable VI. I posted this idea a while ago too that you may be interested in supporting: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Expose-all-available-LabVIEW-Project-Methods-via-VI-Server/idi-p/1156887 Cheers Quote Link to comment
mike5 Posted February 17, 2012 Author Report Share Posted February 17, 2012 I have another related problem - you know if you have the same "project" (not lvproj), and it is intended to run on two different targets (Win and PXI RT). I have two different lvproj files, one for each target type. If you build your win32 project first, and then PXI RT after that, LabVIEW recompiles all the VIs for the new target. But, it does the same for all its internal <vi.lib> VIs as well. If I click on the "Project->Save all" LabVIEW takes care of internal VIs, but if I script this, how do I save all the internal <vi.lib> VIs? I tried to get something usefully from Target/Depenedencies, but don't know exactly how to proceed. Do I just iterate over all descendants, and try to cast to appropriate item type? What Items do I have to take care of? VIs, controls, libraries, virtual folders? Anything else comes to mind? Any help will be greatly appreciated. Br, Miha Quote Link to comment
Darren Posted February 18, 2012 Report Share Posted February 18, 2012 Here's a VI that tries to do what File > Save All (this Project) does. We are planning on shipping this VI with LabVIEW 2012. Save All This Project (2011).vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.