11-03-2009 05:33 AM
Hi all
I would like to know Is there a way to get the reference of the VI in which the Xcontrol is placed. During the State change from Edit to Run I would like to change few settings of the VI in which the X control is placed. Please help me. All I need is some thing like the "Caller VI Ref" for the X control.
P.S:
I tried the caller chain Vi it gives only the X control name with proxy appended but not the VI name in which it is called.
Thanks
Anish
அன்புடன்
தமிழ் நேரம்
முதல் இந்திய ஆய்வுமெகபொப சிற்பி
சோதனைநிறுத்தம் சிற்பி
மற்ற சான்றிதழ்கள்
யாதும் ஊரே! யாவரும் கேளிர்!!
11-03-2009 06:06 AM - edited 11-03-2009 06:08 AM
Hi Anish,
I'm not sure if there anything available like "caller VI Ref" for an XControl.
One quick suggestion would be, create a string property node in XControl, in each instance of XControl call, use its property node pass the calling VIs name.
You can then read the property node data in State change event of facade.vi
Hope this helps.
11-03-2009 06:39 AM
If you crosspost, please mention.
Or preferably, start the discussion in one place, and if you don't get
rewarding answers in a few days (>2) start at the other forum. This
will keep the discussion clean.
On topic
The exec State Change Event (which you are looking at) returns the VIRef in the Event data as well
Ton