03-10-2006 01:34 AM
Hi smercurio...
No this version serves to completely lock up LabVIEW on my PC..., although the refresh issue didn't appear to be a problem.
I think I'm going to abandon this attempt for now, because I am spending way too much time on it, and the potential value added to enhance my program really isn't that much. I have currently integrated most of my other panels using LabVIEW 8.0's subpanel feature, and combined that with the tab structure. That'll work for now.
In the meantime, if you think of something, or run across something, send me a message, as this is eventually something that I would like to employ, if possible.
Thanks,
DJH
03-10-2006 07:44 AM
Well, the good news is that I finally got this one working to my liking... I went back a revision or so, using smercurio...'s first update. Since I had a refresh issue that only occurred when the window was being redrawn, I opened the VI 'hidden', and then once the initialisation was complete, I displayed the VI. This seems to have resolved the issue with no noticeable glitches.
The only disadvantage I have is that this VI is now wholly part of the main VI (looking into the code, this is necessary to incorporate the parent/child relationship). Opening the VI hierarchy shows it to be wholly dependant upon the main VI, and no longer in parallel with the main VI. However, knowing this, I can now use this method whenever I want something displayed in conjunction with the main VI. So, problem solved from my end.
I am attaching my final version, in case anyone else with a similar problem finds this thread. As always, any suggestions for improvement are always welcome. Thanks all for your help!
DJH
03-10-2006 08:56 AM
03-10-2006 09:20 AM
Hi smercurio...
No, I did not mean to imply that... pretty much the way you explained it is what I meant. When I looked at what was actually happening in the hierarchy window, it confirmed what the code was actually doing.
Anyway, if you do have time, I'd like to hear what you come up with. In and of itself, my code is working for me as-is. The next step would be for me to integrate it into my main program.
Thanks again!
DJH
11-27-2006 11:11 AM
What LabVIEW fx allows one to get the window handle for a child window? Any better ways to make a child window since your posts back in March?
Thanks,
Don
11-27-2006 11:46 AM
11-27-2006 12:06 PM
11-27-2006 01:16 PM
11-27-2006 02:52 PM
11-28-2006 07:18 AM
I remembered many years ago some child window code I had used to place IMAQ Vision Windows within a parent VI window, and along with your suggestions and George's, I put together this VI (see attached). It is simpler than yours in the sense I do not need the positioning and refreshing. It works great! Except........it crashed LabVIEW (see the error I pasted directly into the VI diagram) when I stopped running the program. Without the parent-child code, the code performs an orderly shutdown of stopping all VIs and closing all front panels (including the parent VI window) using generated User Events that visit each open VI window.
This gets confusing but I will try to explain. My thoughts were that there was a clash going on between closing these windows and the closing of the parent window that contains these now child windows. So I altered my exiting code so the parent VI user event stop is not generated until after all the other user events to stop the child windows are generated. That seemed to work. So the bottom line is, probably don't stop the parent window until all the child windows are stopped. (I am also assuming, although I have not tested, that just closing a parent window does not STOP all the child VIs from continuing to RUN - i.e., they must be formally stopped as is normal with LabVIEW VIs).
Sincerely,
Don