LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with OGLConvertCtrl Function

Hi,

I work under W98 with CVI5.0 and I have a problem with the use of OGL functions. When I run projects from the CVI samples/custctrl/cviogl/... here is the error message :

"Function OGLConvertCtrl (return value == -4)..."

This problem is new since these samples have worked on the same machine. I have re-install CVI and it always doesn't work.

Any suggestions

Thanks

ArnO
0 Kudos
Message 1 of 5
(3,278 Views)
If you look up that error code (use GetUIErrorString function), you will see that -4 means "Invalid panel handle..." So that means that CVI is telling you the panelHandle you are sending into this function is invalid. Check the panelHandle value you are sending in and make sure it is valid.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 5
(3,278 Views)
Thanks Cris for your answer but I have already check this. The samples project has not been modified and the panel is valid. Any other idea ?

Thanks

ArnO
0 Kudos
Message 3 of 5
(3,278 Views)
No, that's what the error means so that's my only guess. You are using a 3 year old version of CVI and the first version of the Open GL control. We have fixed many issues with this control, but I didn't see one that was exact to this problem. You can send the project to our support engineers at http://www.ni.com/ask and they can try and reproduce it and find the cause.

Good luck,

Chris
0 Kudos
Message 4 of 5
(3,278 Views)
I have already the same problem with the 5.5 CVI version but only on a PC. On the other one all the OpenGL CVI samples work fine. As I will format my hard disk soon I can work on my other PC for the moment.

Thanks

ArnO
0 Kudos
Message 5 of 5
(3,278 Views)