Hello,
I have created a UI for a TestStand program in LabWindows/CVI; and it's causing me headaches. The problem is two out of several dozen of (nearly) identical function calls:
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, &gTestTemp); basicTest[4] = gTestTemp; //Error here
GetCtrlVal(panel, UUT_Test6, &gTestTemp); basicTest[5] = gTestTemp; //Error here
GetCtrlVal(panel, UUT_Test7, &gTestTemp); basicTest[6] = gTestTemp;
gTestTemp is defined as a static int. The functions are called in a callback function, which runs when the user clicks the "Ok" button in my UI.
When I run my TestStand program and I press said OK button, I get a fatal runtime error: "Invalid argument type: found 'pointer to int', expected 'pointer to char'".
I attempted to fix this issue by defining a new value, gTestTempC, as a static char and using it to retrieve the result for only these two function calls:
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, &gTestTempC); basicTest[4] = gTestTempC; //Error here
GetCtrlVal(panel, UUT_Test6, &gTestTempC); basicTest[5] = gTestTempC; //Error here
GetCtrlVal(panel, UUT_Test7, &gTestTemp); basicTest[6] = gTestTemp;
This results in the fatal runtime error: "Argument too small".
I have gone into my *.uir file and have verified that there is absolutely no difference between the checkbox control elements of the functioning and the error-bringing function calls (apart from their name and their label).
Does anyone have any idea what may be the problem here?
~Cheers,
D.W.