-
Posts
6,196 -
Joined
-
Last visited
-
Days Won
104
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Michael Aivaliotis
-
-
Thanks Darin for the response. Ya, figures I'd run into a corner case. All is good now.
-
Awesome thanks. I think I figured out why Application Instance Close? wasn't working for me.
So the WM_CLOSE message requires a handle to a window name. My executable had a custom window name. I was using this as the window name. So the window was closing fine but the event was not firing and the app remained in memory.
In your example, if you set the VI title name to CloseMe, instead of the default CloseMe.vi, then it won't work. So the message gets sent to the window instead of the app, which is also called CloseMe.exe.
Now I just have to make sure that my window title doesn't match my exe name.
-
The simple answer is that the 'correct' way to handle this message is indeed with the Application Instance Close? event. I can pump this message directly to a LV executable and it fires the event every time (so far).
The Application Instance Close? event doesn't work. If you can attach an example that works, that would be nice, but my tests show it not working.
You're correct in catching my bug. Nice to have a second set of eyes
. That was the problem. After I fixed that it worked as expected.
So the updated diagram for anyone else needing this:
-
How can my LabVIEW EXE application handle the windows WM_Close message correctly?
I have tried the Windows Messaging Queue library without any resolution to this problem.
The behavior I'm seeing is that my application window closes but the app remains running as can be seen by looking at the process list in Windows Task Manager. The images below don't show it but I've added the Quit LabVIEW function to exit the app. So far I've tried:
- Creating a loop that monitors the windows message queue:
- Application Instance Closed? Event:
- Panel Close? Event:
I've read this thread but it didn't seem to address the issue head-on. Or I didn't see what the resolution was.
Any help is appreciated. Thanks.
- Creating a loop that monitors the windows message queue:
-
- Popular Post
- Popular Post
-
This is why LAVA exists. Love it!
-
Ok, just got notified of this post. I'll fix it as soon as I can. Sorry about that. I have no idea what the problem is but no worries. I'll fix it.
Thanks for you continued support of the LAVA Forums.
-
1
-
-
So one time we had the LAVA BBQ, I noticed that the establishment had posted the following sign on the door to guide guests to the right place:
I wonder where the heck they got that idea from. Now I know:
-
2
-
-
Ya, thanks. Was on my list to fix and now it's fixed.
-
1
-
-
The certification team should also keep tabs on this board.
-
So it seems that Jack is having a problem building a package with Friend Classes and applying password protection using VIPM. VIPM applies passwords to VIs and libraries using standard LabVIEW VI Server calls so not sure what the problem is. I've filed this as an issue that I need to look into and will probably be calling on NI for validation.
-
I'm confused. If you open this on your machine
C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2012\Lv3rdPartyCopyright.htm
You will see that NI in fact does call code that has a BSD and even a GPL license. So I guess everyone should stop using LabVIEW now?
What's the problem again?
-
<iframe width="640" height="360" src="http://www.youtube.com/embed/zh7XDB0Y9uw?rel=0" frameborder="0" allowfullscreen></iframe>
-
How about a hook into LabVIEW to allow developers to add their own right-click menu items similar to the "JKI Right Click Framework"?
That would be awesome to have in addition to what's there (great idea). But it won't satisfy the question asked by crelf because I don't want to do work or programming to add features that should already be there. So user defined augmentation is great, but I should have a fleshed-out base to begin with.
Unfortunately, that is what I'm saying. There is, as it turns out, a reason why we went without multi-select right-click menus for so long.It's only software...
-
1
-
-
I think the issue is that the feature list is vague and possibly misleading: "Right-click menu option for multiple selected items" does not indicate how many menu items, which ones or even if it's more than one. So hey, they added one menu item so the feature's complete? But I agree, it's kinda lame to just do the bare minimum and call it done. NI could have gone the extra mile and delighted the customer by fully fleshing out the list.
Christina, asking us to vote on menu items probably won't work. None of the menu items will garner enough votes to get on NI's radar.
-
- Popular Post
- Popular Post
Ah, I miss the good old days of the LAVA Lounge. Where have they gone?
Let's liven it up a little!
<iframe width="640" height="360" src="http://www.youtube.com/embed/9bZkp7q19f0?rel=0" frameborder="0" allowfullscreen></iframe>
-
4
-
Ya, I know. It seems like none of your RSS feeds are compatible with this forum import tool.
-
We have a knowledge base article on how to install VIPM 2010 for Mac on OSX 10.7+ located here:
-
Alternative Link:
https://lumen.ni.com/nicif/us/evallvuser/content.xhtml
Interesting change. Looks like the eval is set to 7days, and you must request an extension from within LabVIEW for another 30days.
-
We've had some great questions come in so far for our VI Shots Live panel. Thanks for all who posted so far. If you haven't yet, go here to enter your question:
-
I've been offered a great opportunity by National Instruments to take VI Shots on the road and bring it live to NIWeek 2012.
I will be joined by several prominent members of the LabVIEW community at the technology theater in the exhibition hall on Tuesday Aug. 7th between 4-5pm.
I will be recording the discussion live. If you are attending NIWeek, then come watch and be part of the show. We will be taking questions from the audience. However, your best bet to get a question in will be to post it ahead of time for consideration. Anything is fair game.
Just go here and fill-in your question that you want to ask me or the rest of the panel:
Click here to submit a question for VI Shots Live.
Some of my guests will include:
- Brian Powell (NI)
- Justin Goeres (JKI)
- Christopher Relf (V I Engineering)
- Jack Dunaway
-
1
- Brian Powell (NI)
-
- Popular Post
- Popular Post
Thanks to Justin for the link:
<iframe width="640" height="480" src="http://www.youtube.com/embed/s-cnNJ5cDUc?rel=0" frameborder="0" allowfullscreen></iframe>
-
4
-
I downloaded it and got a zip file, not a vip. What do I do?
The reason this happens is probably more info than you really need. Just rename the file to VIP and you should be fine.
The permanent quick fix:
- Goto your Internet Explorer>Internet Options>Security Tab
- Make sure the Internet zone is highlighted
- Under: Security level for this zone, change the slider bar from Medium-High to -> Medium
- Click OK
This problem only happens in IE. The best solution is to stop using IE
. Also, It might not be possible to switch the security level because of your IT dept. restrictions, but if you can, then this is the way to go.
The super-long-term fix:
Sourceforge needs to add the VIP MIME Type to their web server configuration.
- Goto your Internet Explorer>Internet Options>Security Tab
-
I think the most underutilized feature in LabVIEW is the SubVI. Use more subVIs people! Sheesh.
-
1
-
Unable to upload files
in Site Feedback & Support
Posted
Sorry about not getting back to you all. The upload issue is fixed. So Ton, feel free to upload your new add-on tool
.