Hello,
I have developed a application in LabWindows. Now I would like to link it with the console. I do know how I can call my *.exe Data and the files the program needs. When I start the program there is a problem. I generate a signal for example 10 seconds but in reality I generate only 550 ms. So the conclusion is, that the program ends before it really should end.
I have no idea where this behavior comes from. I tried to toggle the stop moment but the program didn't run in any of my breakpoints.
So I think I have a failure in the main menu. In the following you can see the test how I tried to run it. (Here I can toggle my program)
int main (int argc, char *argv[])
{
// **********************************************************************************
// Calls the interface
// **********************************************************************************
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((PanelHandle = LoadPanel (0, "AWG.uir", MainPanel)) < 0)
return -1;
argc = 2;
argv[1] = "test.uir";
if(argc == 1)
{
DisplayPanel(PanelHandle );
RunUserInterface ();
DiscardPanel(PanelHandle );
return 0;
}
else if(argc > 1)
{
// Load the file the program needs
if(RecallPanelState (PanelHandle , argv[1], 0) < 0)
MessagePopup("Error","File could not be loaded!");
// Gets a value that is important for the program
GetCtrlVal (PanelHandle , MainPanel_TREE, &g_Mode);
// Starts the program
ChooseMode(MainPanelHandle);
}
}
My courser runs into ChooseMode and the program starts. It runs to all funktion and I see the little part of the signal I described above.
Did I made a mistake when I wrote this part or is there a part absence for running my program correct?
Best regards