02-13-2009 07:36 AM
Venky,
You beat me by just a minute... !
02-13-2009 08:03 AM
Partha,
i clearly understand what Venky wants to have.
If you take a look into the example, the physical folders are added as virtual folders to the project. This is done by the type "folder". You can add any item you like to the project as "folder" and will only create virtual folders all the time.
Testing is the key!
hope this helps,
Norbert
PS: If you don't want to add a physical folder as a virtual folder, the "path" input to the invoke node has to be "Not a Path".....
02-13-2009 08:05 AM - edited 02-13-2009 08:06 AM
Norbert B wrote:Partha,
i clearly understand what Venky wants to have.
If you take a look into the example, the physical folders are added as virtual folders to the project. This is done by the type "folder". You can add any item you like to the project as "folder" and will only create virtual folders all the time.
Testing is the key!
hope this helps,
Norbert
PS: If you don't want to add a physical folder as a virtual folder, the "path" input to the invoke node has to be "Not a Path".....
Yes, worked for me!
Ben
02-13-2009 08:22 AM
Norbert B wrote:
PS: If you don't want to add a physical folder as a virtual folder, the "path" input to the invoke node has to be "Not a Path".....
I think, from Ben's picture, it is an empty path.
I tested & Not A Path gave error.
02-13-2009 08:40 AM - edited 02-13-2009 08:41 AM
Well, works both for me.
LV 8.6 eng. on english Windows XP.
Norbert
02-13-2009 08:54 AM
HI Norbert,
I ignored the example and fat fingered my way to a solution but I used Targets rather than Children.
What is the differnce between the two approaches since they both seem to achieve the same end?
Curious,
Ben
02-13-2009 09:03 AM
02-13-2009 09:23 AM
Ben,
Children:
Returns an array of references to all children of the referenced project item. You can use these references with the ProjectItem properties.
Targets:
Returns an array of references to all targets in the current LabVIEW project. You can use these references with the TargetItem properties.
Now to the question: "What is the difference between a child and a target?"
Mainly, i'd say, it is a terminology-issue. Both are "ProjectItems", but specify a little different.
The mayor difference appears in the logical setup within a project:
A project has Targets like "My Computer" (normally not called "child"). Those are not necessarily direct descendants from "Project", so they can be logically be dedicated to other ProjectItems.
Within any target, you have a collection of children, which can of course contain "Targets" (see attached example). This is the point where both termini begin to diffluence.
As a general rule:
- A target is something you add as "New >> Target and Devices" to the project.
- A child is anything else (VI, ctl, lvsc, lvlib, xml, txt, rtf, ....)
I am not sure if this definition is 100% NI'ish, but it fits to my experience an, at least in my mind, makes sense 🙂
hope this helps,
Norbert
02-13-2009 09:29 AM
Attached you can find an improved version of the Children_vs_Targets_86.vi. Please note that in an ideal world, i would close all references. Since i only read properties, it doesn't hurt too much not closing the references in the end....
hope this helps,
Norbert
02-14-2009 03:52 PM