05-26-2026 10:31 AM
Hi All,
I’d like to create a custom UUT information window using an array of clusters instead of the default TestStand parallel UUT information window.
Here’s what I’d like to implement:
RunState.TestSockets.Count(4 or 6) and dynamically create the corresponding number of clusters.So far, I’ve only completed part of the code, and I’m not sure how to implement the remaining functionality. Any comments or suggestions would be appreciated.
05-26-2026 11:38 AM
A disabled property applies to all elements of an array.
Maybe you could place the full array in a shift register, the write a shorter array (first with only one element) back to the control.
You could also change the container size to only show a smaller number of items (make sure to hide the scrollbar and index display).
You can always check what item has been clicked and ignore if it is out of order.
Can you explain terms like "focus" and "scan the input field"? Are you just waiting for OK or cancel to go to the next item?
05-26-2026 03:48 PM
Thanks for your input. As you may know, a string control has a “Focus” property. By enabling it and handling the Return key sent by the scanner (default setting: Enter after barcode scan), the program can validate the barcode length and automatically move to the next string control until all entries are completed.
In addition, invisible clusters can be used to dynamically update the array order.
05-26-2026 08:00 PM
sageliu@18053 wrote:
In addition, invisible clusters can be used to dynamically update the array order.
I have no idea what that means....
05-26-2026 08:55 PM
Sorry for the confusion caused by my unclear explanation. Let me clarify it:
05-28-2026 10:27 AM
See if this gives you any ideas. 🙂
06-04-2026 09:43 PM
Thank you for your input; it is very useful to me.
The first round looks good, but how can I always keep the cursor focused on the first string control when the window is loaded?
Ideally, the focus should always be initialized to the first string control. Even if the user clicks on the second or third string control, the focus should automatically return to the first one.
For the second round, the threads may complete at different times.
Scenario 1:
Thread 2 completes, updates the socket number, and the cursor remains focused on the corresponding string control, waiting for the next barcode scan to start the thread again.
Scenario 2:
Thread 2 completes, updates the socket number, and the cursor remains focused on the string control. Meanwhile, other threads also complete. In this case, I would like to accumulate the updates while always keeping the focus on the first available string control.
To be honest, my goal is to use this custom window instead of the default TestStand parallel UUT information window.
06-05-2026 03:49 AM - edited 06-05-2026 03:51 AM
Make sure you update the array before key-focus. Hmm, no. Wait a minute, i'll get back in a couple of minutes.
06-05-2026 04:36 AM
So, if there's only 1 row visible, the (undefined) string-ref must refer to the 1st row.
06-05-2026 08:18 AM
I appreciate your prompt reply. Maybe you misunderstood what I want. Let me put some pictures.
1) How to always keep the cursor on the first string control when loading the vi at initialization?
2) As you know, the second round(it means re-show the VI) is based on the variable of Parameters.UUT.TestSocketIndex value trigger event, update it as below scenarios.