There is no built in functionality that allows you to post messages to the Status area in the Parallel UUT Dialog. However, if you have CVI then you can modify the ModelSupport2.dll which is where the dialog functions exist. The ModelSupport2 project can be found in the <TestStand>\Compenents\NI\Models\TestStandModels directory. The code for the Paralell UUT Dialog is held in the paralleluutdlg.c source file. If you take a look at the source, there is actually quite a bit going on. However, it is not too difficult to add a function that hooks into the Status Text controls so that you can post your own messages. I added the following function to the modelsupport2 project and rebuilt the dll. This function allows the user to set a custom message that will be displayed in the Status Text for the given TestSocket. Note that the dlgHandle parameter represents the UUT Dialog panel handle. The handle is actually stored in the Process Model. You can access the Dialog Handle using RunState.Root.Parameters.ModelData.DialogHandle from your client Sequence.
int DLLEXPORT _stdcall PostParallelUUTDialogStatusMessage(int dlgHandle, int testSocketIndex, char *statusMsg)
{ int error = 0;
ERRORINFO errorInfo;
int panelId = dlgHandle;
int childPanel = -1;
PUUT_PanelData *panelData = NULL;
TestSocketData *testSocketData = NULL;
errChk( GetPanelAttribute (panelId, ATTR_FIRST_CHILD, &childPanel));
errChk( GetPanelAttribute (panelId, ATTR_CALLBACK_DATA, &panelData));
testSocketData = &(panelData->testSocketDataArray[testSocketIndex]);
errChk( ResetTextBox (childPanel, testSocketData->ctrls[kTSCtrl_Status], statusMsg));
Error:
return error;
}
If you do not have CVI, then I would be happy to post the modified modelsupport2.dll. The other option is to rewrite the Panel in LabVIEW, which would be a non trivial task. Please let me know what version of TestStand you are using.
Thanks,
Tyler Tigue
Applications Engineer
National Instruments