Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Nick

Junior Member
Registered:
Posts: 10
Reply with quote  #1 
Hello everyone

I am a returning user of monkeylogic and apologise that my first post is a question.

How can one intialise XGL? Is there a driver needed? The xgl folder is in the path but when attempting to run monkeylogic it reports an error:

<<< MonkeyLogic >>> Using configuration file: C:\Matlab\MonkeyLogic\dms\dms\dms_cfg.mat
Error using xglmex
XGL has not been initialized

Error in xglshowcursor (line 12)
xglmex (29, rhs1, rhs2);

Error in mlvideo (line 210)
        xglshowcursor(devicenum, val);

Error in monkeylogic (line 148)
    mlvideo('showcursor', videodevice, 1);

Error in mlmenu (line 2326)
                monkeylogic(condfile, datafile, testflag);
 
Error while evaluating UIControl Callback
0
Edward

Administrator
Registered:
Posts: 260
Reply with quote  #2 
This might be happening if your video resolution is set to something your monitor doesn't support. 
0
Edward

Administrator
Registered:
Posts: 260
Reply with quote  #3 
If you type, xglinit on the matlab command line, do you get an error?
0
Nick

Junior Member
Registered:
Posts: 10
Reply with quote  #4 
xglinit does not give an error. Could it be an issue with using dual monitors with different resolution? Alternatively, would a failure of communication with the camera cause such an error?
0
Edward

Administrator
Registered:
Posts: 260
Reply with quote  #5 
have you checked your video settings? Be default, ML starts with a screen resolution of 320x200 CDL. So if you forget to change that, or for some other reason it starts up with that settings, XGL will fail to initialize. If that isn't the cause, i don't know.
0
Wael.Asaad

Administrator
Registered:
Posts: 51
Reply with quote  #6 
Try different settings in the video control panel (left side of the main menu) and hit "video test."  As mentioned above, often this can result when the selected screen resolution (or refresh rate) is not supported by the hardware.  To start, try something very basic that every monitor should support (e.g., 1024 x 768 @ 60 Hz).
0
Nick

Junior Member
Registered:
Posts: 10
Reply with quote  #7 
Changing the default video settings to the screen resolution solved the problem. Thank you!
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.