NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

run one sequence at a time

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.

0 Kudos
Message 1 of 6
(3,790 Views)

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.

Patrick O.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(3,749 Views)

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

0 Kudos
Message 3 of 6
(3,746 Views)

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.

0 Kudos
Message 4 of 6
(3,740 Views)

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: 

image.png

 

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: 

image.png

 

I did the exact opposite in the end execution VIs. Let me know if you have any troubles with this. 

 

0 Kudos
Message 5 of 6
(3,716 Views)

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

0 Kudos
Message 6 of 6
(1,752 Views)