NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

change tab position UUT batch

Solved!
Go to solution

Hello,

 

In the production we want to enter the serial number in the batch dialog by scanning.

Now we have a problem because if we scan the serial number, it will jump to the "Disable TS FOR NEXT RUN".

 

I have looked in the CVI code of the 'modelsupport2' but could not find a way to change the 'Tab Position'.

The buttons will be programmatically added but where can I change the 'Tab position'.

 

gr,

Bart

0 Kudos
Message 1 of 2
(2,576 Views)
Solution
Accepted by topic author InspectorGadget123123

Just found the solution.

 

Changed the ctrlIndex add by 5.

static int TabToNextTabbableTestSocketCtrl(int childPanel, int startingTestSocketIndex, int startingCtrlIndex, BUUT_PanelData *panelData, int tabbingForward)
{
int testSocketIndex = startingTestSocketIndex;
int ctrlIndex = startingCtrlIndex;
int retval = FALSE;

if(tabbingForward)
{
ctrlIndex=ctrlIndex+5;
if(ctrlIndex == kTSCtrl_NumCtrls)
{
ctrlIndex = 0;
testSocketIndex++;
if(testSocketIndex == panelData->numTestSockets)
goto Error; // Do not wrap!
}
}
else
{
ctrlIndex=ctrlIndex-5;
if(ctrlIndex < 0)
{
ctrlIndex = kTSCtrl_NumCtrls - 1;
testSocketIndex--;
if(testSocketIndex < 0)
goto Error; // Do not wrap!
}
}

0 Kudos
Message 2 of 2
(2,566 Views)