I am trying to add a button on LabWindows-CVI. After I log on the LabWindows-CVI, the title of the first interface is "Sequence Display". I want to add a button F1 in this window. After you click F1 button, I don't want to load any sequence in the interface but the sequence can be executed. I don't need to see any result of the sequence. After the sequence is executed, the background should be still the "Sequence Display" window not the "Execution Display" window.
The function I coded is in the following but I can not get what I want.
CVICALLBACK SD_Function1 (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
Eng_ExecuteSequence("MainSequence", "C:\\Exercises\\TestStand I\\Ex 1-1 Computer Test.seq");
CloseAllCompletedExecutions();
break;
}
return 0;
}
The function Eng_ExecuteSequence() can work. The sequence can be executed and the result can be reported on the "Execution Display" window. But CloseAllCompletedExecutions() does not work. Because if CloseAllCompletedExecutions() can work, the "Execution Display" window should be closed. I want to close the "Execution Display" window. I hope F1 button can have two functions (execute and close). I appreciate any help.