03-05-2018 06:24 PM
I am developing a custom UI based on the simple UI example and I have most of what I want in it but one thing I want is to make sure that the user can only run one instance of the sequence file at a time. Currently they can run as many as they want.
03-06-2018 04:21 PM
OregonGumby,
Thanks for posting on the forums! In order for me to help you, could please clarify what you mean when you say you want to make sure the user can only run one instance of the sequence file at a time?
I'm not sure if your UI has a run button that can be pressed multiple times, even after the first sequence file has started, or if you want to make it so that the user cannot open multiple UI's in separate windows to open and run the file.
03-06-2018
04:50 PM
- last edited on
11-05-2024
11:06 AM
by
Content Cleaner
Hi Oregon,
What language are you developing your custom UI with?
Are you using the Manager Controls in your user interface? If so, you can use the application manager to query whether there is an execution running using the Executing Property.
03-06-2018 06:04 PM
I am using manager controls in a modified LabVIEW version of the simple TestStand UI. I would like to hide or disable the run button after the first execution is started but it seems like the enabling etc. is done inside the active-x and I can't override it.
03-07-2018
12:50 PM
- last edited on
11-05-2024
11:06 AM
by
Content Cleaner
Hi Oregon,
There is an example with this feature added on Disable Entry Point Buttons During Execution on a TestStand UI.
Since this example was with the full-featured, I tested out with the simple UI to outline the steps. First, in the register Events Callbacks case, add two callbacks following the instructions in the VI, see below:
You can see that I added the StartExecution and EndExecution events with a corresponding VI. Once you have the VI's created, unbundle the TestStand UI Data cluster to extract the references to the three entry point execution buttons and the run this sequence button. Create a property node with the "enabled" proerty selected and accordingly set this in the respective start and end sequence VIs. My start execution VI simply looks like this:
I did the exact opposite in the end execution VIs. Let me know if you have any troubles with this.
02-03-2023 04:22 PM
Hi RoxtheFox,
I know this is an old thread to resurrect but, I have tried this but the buttons seem to be disabled only when the PreUUT window is open and then when it closes they are enabled again. It's seems something else is re-enabling them. Any clues on where this might be? My simple OI is not modified at all (except for the start and end execution Vis) from the one that ships with teststand.
Thanks,
Al