02-12-2009 02:25 PM
02-12-2009 02:37 PM
02-12-2009 10:10 PM
02-13-2009 01:14 AM
Hi Venkatesh,
If I correctly understand you requirement, you are trying to create a physical folder in hte location of your choice programmatically.
But your question is confusing because there exists a thing called Virtual Folder inside LabVIEW project explorer window.
If you rt-click My Computer in the above lvproj window, there is such an option.
If you want like the former method, you need to use the Create Folder Vi from the File IO pallette.
If it is the later, try to see the example suggested by smercurio_fc, it is crystal clear.
02-13-2009 01:47 AM
Hi Patha,
I would like to clear one thing that i am not trying to create a physical folder in my drive.
I am trying to programmatically create a virtual folder inside project explorer (.lvproj).
Manually you can use that option by right clicking on My Computer in the project explorer(.lvproj).
Thanks ,
Venky.
02-13-2009 02:25 AM - edited 02-13-2009 02:27 AM
Venky,
please take a look into the example. It really contains all info you need......
Norbert
02-13-2009 04:00 AM
02-13-2009 04:24 AM
Venky,
you got all information you need. You have to do the rest on your own. Just take a look into the example smercurio stated and observe the part i extracted as screenshot. Execute the example, build your own VI using the knowledge you acquired by analyzing the example.
This helps more than giving you a VI solving your requested feature. The community serves you as a resource of knowledge, not to take over developement effort. So either do your part, or leave it.... sorry to say that in such a harsh way.
Norbert
02-13-2009 07:33 AM
Hi Norbert,
Thanks for your reply,
I thing my question was not clear enough.
Actually, i already tried the example adding files to project from example finder. And i tried to modify it according to my requirement.
My requirement is to add/create a virtual folder in project explorer(lvproj).So that i can add all the sub vi's which are used in my Top level vi .
According to that example or wat u suggest or smercurio , It can only add folders or files which are already created/present in our drive.
For creating a virtual folder in a Project, I dont see any method/example.
manually we create virtual folder in a project by right clicking on my computer in the project explorer. i am trying to do this programmatically.
Thats y i asked u again mentioning virtual folder(which is not existing in my drive).
Thanks,
Venky.
02-13-2009 07:34 AM
Norbert,
That example creates an lvproj with the specified VIs & Folders that physically exist in the disk in the mentioned location.
But I think what Venky wants to do is to create a Virtual Folder programatically [the manual equivalent of creating a Virtual Folder in the lvproj Explorer window by rt-clicking My Computer >> New >> Virtual Folder] that is NOT going to physically exist anywhere in the disk, but only available inside the lvproj created dynamically y using the Add Files to Project.vi mentioned by smercurio_fc & you earlier.
I think you have grossly misunderstood his query or maybe his phrasing is not clear to you.
Venky,
But, I think a Virtual Folder that is going to exist inside an lvproj CANNOT be created programatically using the ProjectItem >> AddItem method. But I m not so sure...