Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimkring opened this issue Feb 26, 2019 · 1 comment
Assignees
Labels

Comments

@jimkring
Copy link
Contributor

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 jimkring added the bug label Feb 26, 2019
@jimkring jimkring self-assigned this Feb 26, 2019
@jimkring
Copy link
Contributor Author

jimkring commented Feb 26, 2019

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

  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant