# Unrecognized function or variable 'moglcore'

**URL:** <https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453>\
**Category:** Bugs & Features\
**Tags:** macos\
**Created:** [October 19, 2020, 11:16am UTC](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453 "2020-10-19T11:16:26Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![PaulLinton](https://yyz2.discourse-cdn.com/free1/user_avatar/psychtoolbox.discourse.group/paullinton/32/518_2.png) [@PaulLinton](https://psychtoolbox.discourse.group/u/PaulLinton)\
**Post date:** [October 20, 2020, 7:14pm UTC](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453/12 "2020-10-20T19:14:57Z")

</div>

Thanks so much Mario,

Yes, KbWait() doesn’t work for me, but KbWait(-1) does. This is with Psychtoolbox-3-3.0.16.8, and Matlab version R2020b.

PsychHID(‘Devices’) gives the following:

 ![1](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/218685d912a2ded6a284613b3bee5239588495b2.png)  
 ![2](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/1d4b7221a304e2ce2d7e67d779f03aeb9339ebd4.png)  
 ![3](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/be5b4a86cdcd0caf193364f70f4cef139f17425d.png)

[a,b,c] = GetKeyboardIndices() gives the following:

 ![4](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/48fe8091f88f646c18544aea601464cf7e1ec499.png)

With c expanded:

 ![5](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/4c61dcc09850c80996ee927e8883f2014b648729.png)

Screen(‘Computer’) gives the following (I’ve removed a few details):

 ![6](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/8bf6eb87d6b02c1b054167134c88c326847c8b3d.png)

MacModelName fails for me:

 ![7](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/89d8d9a7ea09f5a3f7c05f70f69d4c3a7ef6ceda.png)

But cutting and pasting from “About This Mac”:  
 ![8](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/a82f3ce38896e60dbac3566a0bc7237e9a93fd3f.png)

Thanks so much Mario (and Dee), I really appreciate all your help on this!

Paul

---

_[View the full topic](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453)._
