vipm-io / vi-tester

VI Tester for LabVIEW
BSD 3-Clause "New" or "Revised" License
28 stars 26 forks source link

VI Tester GUI cannot be re-opened if closed via "File >> Close All (this Project)" #41

Open jimkring opened 5 years ago

jimkring commented 5 years ago

Steps to reproduce:

1) Open a new project 2) Open the VI Tester GUI (from the LabVIEW project navbar) 3) Select “File>>Close All (this Project)” 4) Attempt to open VI Tester GUI (step 2, above)

Observation: VI Tester GUI will not reopen

Expected result: VI Tester GUI should open

image

jimkring commented 5 years ago

Here's the fix (that I made on my own installed copy of VI Tester, in order to see how best to fix the issues)...

Inside the Main UI: resource\JKI\VI Tester\GraphicalTestRunner.llb\Graphical Test Runner - Main UI - .vi 1) Call "Macro: Exit" if the FP is closed (which is what happens when you select File >> Close All (this Project) from the project environment's menu). Note that we've added a 100ms timeout to the JKI SM, otherwise the Timeout frame of the Event Structure will never execute -- previously, it was unwired.

image

2) Add a little more smarts inside of "UI: Front Panel State" so that it doesn't call the FP.Close() method, if the FP is already closed (otherwise an error dialog occurs, if automatic error handling is enabled -- note that the Main UI has automatic error handling enabled, but that's a separate issue).

image