02-18-2011 02:53 PM
I have using this command which is
SetAttributeForCtrls(ui, ATTR_DIMMED, 1, 5,
PANEL_LISTBOX, PANEL_COMMAND_SET, PANEL_COMMAND_RUN_TESTS
); on the LabWindows/CVI(2009) at main.c at line 1169,1180 & after running Debugxx.exe for my project that get NON-FATAL run time error message which indicated library function error,return value is -13 -invalid control ID,my question is what is meaning for invalid control ID & how to step by step to debug this error,until found the root cause?
Thank you foor your help!
My email address is syang26@mmm.com or shishenyang@yahoo.com
My phone number is (978)659-9063
Regards,
Shishen
02-18-2011 03:11 PM
Not sure that this can be the reason for this error (I can't test on a CVI machine at the moment) but there is an evident typo in your code: you are passing 5 in numberOfCtrls parameters but then you are passing 3 controls IDs only.
Unless you set 0 as numberOfCtrls parameters (in which case you must add a zero parameter to mark the end of the list), numberOfCtrls must match the number of contrl IDs passed to the function.