03-11-2008 08:16 PM
03-13-2008 07:03 AM
03-13-2008 05:56 PM
03-14-2008 11:21 AM - edited 03-14-2008 11:23 AM
Hello kazinoz,
I couldn't run your project because I don't have the same DAQ configuration as you, but I'm pretty sure I know why you're having this problem. You're passing the wrong value as the panel handle to SetCtrlVal. You're passing TESTPANEL (this is the panel resource ID from new85.h) when you should instead be passing TestPanel (the panel handle that is returned by the LoadPanel call in main). This might have worked in a previous iteration of the .UIR because, by sheer luck, the order of the panels in the .UIR was such that the numbers were the same. But obviously, you can't rely on that.
The fact that the error is "invalid control ID" instead of "invalid panel handle" is unfortunate. The reason for that is because (again, by coincidence), that TESTPANEL resource ID happens to have the same value as the handle of some other panel, one which does not contain a control whose ID is 34 (TESTPANEL_BRAKE_STATUS). So the SetCtrlVal function thinks that you're passing a bad control, and not a bad panel.
You don't have to regenerate any of your .uir files. You just have to pass TestPanel instead.
Luis
03-16-2008 03:33 PM
03-17-2008 02:00 AM
01-05-2013 01:39 AM
Hi,
I experienced the same problem after migrating an old project (I guess it was created in 8.6) to CVI2012. I changed the control IDs which were causing the problem with Ctrl + T on the corresponding panel. Then problem solved.