Call asynchronously, then close. Can't reopen

Hey guys,
I have a problem where I call asynchronouly a VI (graph_sync.vi), when I close it using the X upper right button, I cannot open (or call, perhaps) it again. Close using the 'Close' button in the VI's Front Panel doesn't cause this behavior and the calling works fine whenever I call.
Debbuging remotely, my global variable (sync.graph,isopen?) didn't receive the 'false' value it should at closing the VI through the X button, that's was expected, so I made it receive that value using another VI. Tried to open 'graph_sync.vi' again and nothing happened. Then I opened the VI (double click on the static reference in block diagram), it opened running and I closed it using the 'Close' button in its Front Panel. This time trying to open it again worked.
What's happening exactly? I feel that I'm missing something here but don't know what... that's why I need your help .
Attachments:
Calling_VI.png ‏8 KB
sync_graph_VI.png ‏12 KB

Your "Close" button causes your VI to complete and thus stop.  The "X" button just closes the front panel; it does not stop the VI.  Thus you could not start it again as it was still running.  In some cases LabVIEW automatically ABORTS running VIs with no open front panel, but not in the case of a VI run asynchronously as you have done.
The way to get a VI to properly stop when clicking the "X" button is to use an event structure (there is a "Panel Close?" filter event that you use to trigger shutdown).  I almost never bother with an actual "Stop" button anymore; I just use the "X".
-- James

Similar Messages

Maybe you are looking for

  • Cyan Highlight Behind Text in Design Pane

    Hi, Could anyone tell me why some of my pages have a cyan colored highlight behind the text in the design pane. It does not happen to all of my sites and am wondering why this particular site that is doing this, is doing his. File is a .asp extension

  • Photoshop JPEG Characteristics?

    I am in the process of digitizing my 35mm slide collection. One objective is to be able to view the images on TV. I have been using the "Get Photos From Scanner" feature in Photoshop Starter Edition2 in conjunction with a Pacific Image 1800 Slide Sca

  • How to make this work selecting advanced record set dreamweaver complains and crashes all the time

    Hi There I have met a person who does php and sql work but not with dreamweaver. The code I have works but dreamweaver shows me an error with my record sets and it crash all the time. <?php require_once('../Connections/datexdatabase.php'); ?> <?php i

  • Setting time on RMAN prompt...

    can we timing on RMAN prompt as we set on sql promt like SQL>set time on

  • Released for external use RFMs

    Hello, Is there a comprehensive list of all the RFMs marked as "released for customer/external use" somewhere? If not, is there a way to find if a particular RFM is or not released for external use? BTW, SAP Interface Repository was not a great help