When I try to open a sub vi in labview i.e. also display the sub vi when called it hangs half of the time. Are there any special settings for displaying the front panel of sub vis during runtime?
I don't think there is anything special about subVIs. However, don't forget that subVIs will only start running when all the required inputs have received their data. Also, If you want to open the front panel so that the user can see the UI, you should select show front panel when called. This will make the subVI pop up, and the user will be able to see the UI.
Yes that was the option i selected to view the UI during runtime. And basically the second VI is independent of the first, so no inputs there.
Also, I have used the Event structure in both the vis. Could this be causing any problem as the Event structure is UI driven? Another thing is that there is on ecommon library between the two vis, which shouldn't cause a problem in my opinion.
Thanks, Yatin
PS: I am using Linux so does that make a difference with the graphics settings and all?
if one VI is called by the event structure of another, your event structure could be waiting on a previous event to complete before allowing the subvi event to process. if you go in and edit your event cases, try unchecking the "lock front panel until this event completes" box
The option for lock front panel is unchecked. The event structure of the first vi calls the second vi. Still the hang is occuring in the second vi not the first. Can there be a problem while using two timeouts? Or is it something else?
I've never had a problem with two timeouts, unless your "outer" timeout calls your subvi, which could cause your main vi to hang while waiting for the subvi if the subvi is already open (and just as a quick check, are your timeouts wired?).
Well, we got the obvious questions out of the way. My guess would be there is a subvi inside your subvi-with-event-structure that is hanging, or your event structure is waiting for user interaction that either never comes or is impossible to get. Any more help will be difficult unless you can attach your code so we can look through it.
yeah i guess without the code it would be difficult. But I should warn you the code already is too messy and long. . it already has a plane scanning using meilhaus cards, apd counts via a pci card diff types of ccd camera functions thorugh the driver and many other things... so i'll try and attach a small part of the code asap..