LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate way of finding the Windows Reference Number

Hello,

I am using some of the Windows Utilities VIs and I have run into a snag. In my application I lauch multiple template VIs and hence have many Windows that have the same name. This causes a bit of confusion when using a VI like "Flash Title Bar" which takes in a window's name to determine it's reference number. MY question is, is there an alternative method of finding out a window's reference number without having to supply the window's name? Something that determines each window's unique number. I checked various Application and VI Properties without much luck. Perhaps is there some way of converting VI reference to Windows Reference. I dunno. Any ideas???

Thanks fellow LabVIEWers,
Glen D.
0 Kudos
Message 1 of 6
(3,260 Views)
AstroMed Glen wrote:

> Hello,
>
> I am using some of the Windows Utilities VIs and I have run into
> a snag. In my application I lauch multiple template VIs and hence have
> many Windows that have the same name. This causes a bit of confusion
> when using a VI like "Flash Title Bar" which takes in a window's name
> to determine it's reference number. MY question is, is there an
> alternative method of finding out a window's reference number without
> having to supply the window's name? Something that determines each
> window's unique number. I checked various Application and VI
> Properties without much luck. Perhaps is there some way of converting
> VI reference to Windows Reference. I dunno. Any ideas???


Hmm, try attached VI. LabVIEW 7.0 and higher only!

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(3,260 Views)
Hello Rolf,

can you unlock the diagram of your vi?
Where do I find the type definition "window refnum (NaWR)"?

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 6
(3,260 Views)
Is that one included in the winutil.llb file? I didn't see it there. You must have made it yourself. Well thank you. I will give it a go in a bit. I have just been side-tracked to a different project for the rest of the afternoon. I will try it out before the end of the day and comment back to you. Thanks again.
0 Kudos
Message 4 of 6
(3,260 Views)
GerdW wrote:

> can you unlock the diagram of your vi?

Sorry, I can't.

> Where do I find the type definition "window refnum (NaWR)"?

It's in the original winutil.llb or similar library.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 6
(3,260 Views)
Here is an unlocked version of the Get Windows Refnum vi along with the Window Refnum control.
- tbob

Inventor of the WORM Global
Download All
0 Kudos
Message 6 of 6
(3,260 Views)