It only returns a vi name, when you start it from the Tools menu of a vi, if you run it directly you get an empty string
Also it must be set to run when opended.
To appear on the Tools menu:
Save your vi in the labview project directory, either directly or as an top vi in an llb.
you must then restart labview once, and when you change the vi name.