Hi Sima,
This VI doesn't work for network published shared variables because of the way these variables are implemented in LabVIEW. If you change the 2nd variable in the project to network published and probe the output from the Callees Paths property node you will see the difference in the two.
Single process shared variables are saved in the same location as the project as part of the project library. When you use network published variables you are actually making a call to a subvi in the vilib library in the LabVIEW program files folder. Specifically:
C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\variable\NGread_imp.vi
It calls the same VI no matter what you call the variable or what the data type is (although there's a NGwrite_imp.vi for variables you write to). I think there may be a way of doing it by reading the VI as a string and searching for the variable name that way...
Leave it with me and I'll look into it a bit more today.
Regards,
Sarah
Applications Engineer | National Instruments | UK & Ireland