LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NON Fatal run time error-Library function error(return value -13,invalid control ID)

 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 

0 Kudos
Message 1 of 2
(3,672 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,667 Views)