LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamic enable or disable cluster in array

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:

  1. Read RunState.TestSockets.Count(4 or 6) and dynamically create the corresponding number of clusters.
  2. Focus on the first UUT serial number field, wait for the scan input, then automatically move to the next serial number field.

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.

Download All
0 Kudos
Message 1 of 5
(124 Views)

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?

0 Kudos
Message 2 of 5
(106 Views)

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.

0 Kudos
Message 3 of 5
(66 Views)

sageliu@18053 wrote:

 

In addition, invisible clusters can be used to dynamically update the array order.


I have no idea what that means....

0 Kudos
Message 4 of 5
(43 Views)

Sorry for the confusion caused by my unclear explanation. Let me clarify it:

  1. Initialize and display the corresponding number of array elements based on the TestStand thread count.
  2. Focus on the first thread string control and wait for the barcode scan. After the barcode is scanned, execute the corresponding thread and automatically move the focus to the next thread string control until all entries are completed, then hide the window.
  3. For the second round, if one thread completes, show the UUT window again and update the corresponding array element. The focus should return to the related string control and wait for the next barcode scan to execute again. If there is no action and another thread completes, then continue accumulating/updating the array elements accordingly.
0 Kudos
Message 5 of 5
(33 Views)