LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Handle help needed

I'm calling an external application from within a vi. The ext ap wants the
calling vi's handle to enable a button to return to the calling program. Can
I get this from Labview 7.0? WinXP platform.

T. Whitaker
0 Kudos
Message 1 of 4
(2,886 Views)
Hi Tom,

VI's do not have handles. What they do have are refnums, which functionally represent the same thing as handles. To pass this to your external application, see the attached example VI. All you have to do to have it work for your application is either change the VI path constant or just copy the code and paste it into your application.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 4
(2,886 Views)
The above example will not work because VI refnum casted to U32 is different than actual window handle.

Whitaker, please take a look at this
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/136f6b1f34cbb76e852563fc007aefc7?OpenDocument

A Rafiq
Message 3 of 4
(2,886 Views)
Thanks, I had searched ni.com to no avail. Your link was what I was looking
for.

Tom

"A Rafiq" wrote in message
news:50650000000500000059C10100-1079395200000@exchange.ni.com...
> The above example will not work because VI refnum casted to U32 is
> different than actual window handle.
>
> Whitaker, please take a look at this
> http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/136f6b1f34cbb76e852563fc007aefc7?OpenDocument
>
> A Rafiq
0 Kudos
Message 4 of 4
(2,886 Views)