08-15-2006 09:35 AM
08-15-2006 09:50 AM
You can get the name of the VI by placing a property node on the diagram, right clicking it and selecting Select Class>>VI Server>>VI and then selecting the VI Name property which you can wire into the Open VI Reference VI. You can also get to the VI class by wiring the output from an Open VI Ref into a property node and then disconnecting it.
You should note that since a property node set to the VI class defaults automatically to the current VI you shouldn't have a reason to use Open VI Ref unless it would sometimes be the current VIs and other times other VIs.
08-15-2006 09:51 AM
From your description, I think you want "Current VI's path"
Rod.
08-15-2006 09:51 AM
Hi Robert,
One way is using the "Current VI's Path" constant under File I/O -> File Constants. Use that as an input to open vi reference, and you can get the history from that reference.
Regards
//Martin
08-15-2006 09:52 AM
08-15-2006 10:50 AM - edited 08-15-2006 10:50 AM
Message Edited by Jarrod S. on 08-15-2006 10:51 AM
08-15-2006 12:48 PM
Thanks for all the responses. I'm using 7.1 so won't be able to use the very welcome "this VI" constant. Using an unwired property node is obviously (now) the way to go.
Robert
08-16-2006 03:46 AM
One thing to note about the Current VI's Path primitive is that it will only work if the VI has been saved.
Another option (besides the VI Name property) is to use the Call Chain primitive with a and index the second element.