06-08-2021 01:41 PM
I'm relatively new to programming a test stand user interface, so this might just be me not knowing the right terms to search for. Thanks in advance.
I have a really simple technician interface written in LabVIEW for selecting sequences and running. I'm a little stuck on what to do if the test halts and an engineer wants to debug. I have the ability of an admin to approach the station and login if the station halts on an error. I'm wondering if there is a way to (programmatically within LabVIEW) launch the Test Stand Editor into a execution and see the executions state while halted. I'm really not wanting to reinvent the wheel and program a ton of editor functions into my UI, so I'm hoping I can just use the full capability of the existing TS editor.
Solved! Go to Solution.
06-08-2021 03:37 PM
You can't really move the execution from one application to another like that. Basically you can hide a tab or expand the window to show certain controls/indicators that are always there but only shown when someone logs in with certain credentials (this would be the simplest).
Debugging is quite simple to add to a TestStand UI. Basically you just connect buttons to the manager controls and set them to step into, step out, continue, etc...
The full-featured UI shows how to connect the debug buttons so they can be used.
06-08-2021 05:04 PM
Thanks! I'll take a look at the fully featured example (and probably copy a lot). The application i have will be able to launch multiple executions. Would it be possible to have a single "debug window" within the application that gets pointed to a execution and launched (or made visible) when needed? Would this sort of approach save on having any overhead of an execution viewer attached to a process until it's needed?
06-09-2021 10:48 AM
What are you doing with the debug window? Is it debugging TestStand (i.e. step through steps, look at variables, etc...) or do you want an actual GUI that you can interact with instruments and the UUT?
06-09-2021 11:29 AM
@~jiggawax~ wrote:
What are you doing with the debug window? Is it debugging TestStand (i.e. step through steps, look at variables, etc...) or do you want an actual GUI that you can interact with instruments and the UUT?
Debugging test stand (and yes, all of those). Basically a pause on fail, look at the state, and possibly run/rerun steps.
06-09-2021 02:42 PM
you can just use your execution view for the debug window. That's how all of the UIs do it.
06-09-2021 02:44 PM
You could have the debug controls reattach to each execution view manager depending on which window the user is selected on.
06-09-2021 02:57 PM - edited 06-09-2021 02:58 PM
Works for me. I think that gave me an idea of what to do. Thanks for the help.