Error i get from Psychtool Box please help

hello!

i am using mac os Catalina.
i am having an issue and it is that i get the following error :
Error using NameOfMyExperiment (line 167)
Usage:


[status =] Eyelink(‘Message’, ‘formatstring’, […])

line 167 is only a line calling an error message. i fail to detect where the error is emerging

the experiment runs well in other version with the same stimulus and screen sinchronization. Also i have been in Italy for two weeks and the psychtoolbox page do not open here. it says it is insecure regardless how many times i have tried to flex my settings. so searching for the error online has lead me to no where. if any you have have the compassion of posting an idea please do not link me to any psychtoolbox page as i may not open them from Italy. In Puerto Rico , my homeland it opens ok. It is miracle this one opened. ( see the screenshot pasted. I hope someone may help me i am desperate!
thank you so much!
below are lines 166, 167, 168, 169, and 170 of the code
% Catch error then print
error(ME.message);

% Output the error message that describes the error:
psychrethrow(psychlasterror);

wanda

Hi Wanda,
all the help pages are also part of your local Psychtoolbox copy, e.g., help Eyelink or Eyelink Message? for the builtin help of the Eyelink subfunction Message. help Psychtoolbox for basic help abuout help.

In your case, typing ple (Print last error) would give you more info. Otherwise if you use try-catch statements, you’d only get the line where the exception is caught, ie. always something inside the catch ME clause. I think your error(M.message) should not be there, that’s what psychrethrow(psychlasterror) is for.

hope it helps,
-mario

Thank you Mario!
Your kind response is very welcomed! And we will try today your suggestions!

We have not been successful accessing the help pages. It is really sad indeed. you have been very kind and courteous in your response! we want to extol your courtesy and kindness as you may know regularly technical help provided by other services have the tendency to make people feel inadequate. ! We will immediately try your suggestions to spot the reason for this error!
Sending you all the best
Wanda

Dear Mario
Forgive us for coming back to you!
We typed pie and we as expected found the same error. ( pasted below this message).

PTB-INFO: Will use 8 bits per color component framebuffer for stimulus post-processing (if any).
Display Experiment Instruction
Initialize & Calibration Eyelink Tracker
Do Eyelink Experiment
jitter =
0.9000
Snd(): Initializing PsychPortAudio driver for sound output.
Record Data file header and display coordination

Show Block Title
Do a calibration
Prepare block configuration
Loop Through Individual Trials
Initialize Trial
Prepare Spectrum
Start EyeLink Recording
Show Stimulus
Error in function Message: Supplied value was either fractional or outside of allowed range.
Error using BlackHole (line 167)
Usage:

[status =] Eyelink(‘Message’, ‘formatstring’, […])

ple
Last Error: Error using BlackHole (line 167)
Usage:

[status =] Eyelink(‘Message’, ‘formatstring’, […]) ()
/Users/wanda/Desktop/TrainingErrorBased/BlackHole.m,167

Dear Mario! I apologise somehow I typed the sent key without noticing. I finished the email that was incompletely sent by mistake.

Forgive us for coming back to you!
We typed pie and we as expected we found the same error extended! Thank you very much. ( 2 errors from different trials pasted below this message and separated by a line of asterisks). I bolded three sentences. If you may let us know if you suggested that the error message perhaps should be considered to be only limited to the catch or perhaps the error is emerging from the sound configuration (i.e. first bolded line on error one) and the bolded line below the asterisks, if it is so, please if you may direct us to a page that we may access from Europe to find the allowed ranges to test them or steps to correct the error. This experiment was working fine previously on matlab 2015. Then we bought a new version of matlab 2020B and now it crashes. I am adding here a video capture I got with my phone. We are using macOS 2015(late) catalina.

Thanks so very much! And I hope not to have to continue using your busy time!
All the best
Wanda

From the error message it seems you send something illegal to Eyelink(‘Message’, …)

Eyelink(‘Message?’) tells you:

“Only chars and ints allowed in arguments”

Make sure you don’t send something floating point (like 3.4), or instead use:
Eyelink(‘Message’, sprintf(<do your formatting here, it supports much more>))

Third time trying to send this email to the psychtoolbox team.
wanda

Dear Mario!

I apologise for coming to you!

About two weeks I go we paid for an hour of support with your team ( below is the evidence). We have not used it fearing that if it is not enough then we risk loosing the support of the team. We will like to buy two more hours in case one hour is not enough. As evidence the details of hour buying of the time are below ( I hope this does not get publicly posted). We are struggling as we want to use the time wisely to use your dedicated help and time wisely. I come to you to ask how I may buy more time to be added to this one so we do not have to type two product numbers when we communicate with you. A student Johanna Casado will most likely get in touch with you today with the dedicated questions. I will be copied in the email but want to buy 2 more hours.
Looking forward to your answer!
wanda

Hi Wanda,

none of the things you mentioned show up here. I think you can only attach images here. For other non-secret content i recommend storing it somewhere else, e.g., something like Google drive, and posting a link to it.

For confidential things related to paid work, which shouldn’t be public, you could also just try to e-mail them to psychtoolbox@mi-incubator.com. Generally i prefer posting on the user forum, so others can participate or learn from the info.

If your Psychtoolbox is up to date then typing the command PsychPaidSupportAndServices will step you through the process of generating an authentication code from the information you received as part of the invoice when you bought priority support. If that doesn’t work well or is very confusing, you could also just e-mail the license key to the psychtoolbox@mi-incubator.com address, where only trusted people get to see it. All this is rather new to us, so we may still need to tweak the workflow for all this license validation. It is good for us to know where you get stuck if you get stuck, so we can improve it in the future.

Wrt. buying more time, while we very much appreciate - and are in need of - financial contributions to Psychtoolbox ongoing support and maintenance, maybe lets just first try with the one hour you have, to figure out if your problems and questions are solvable. If Apple macOS specifically is involved as a troublemaker, then one hour should be enough to find out if there is a solution or workaround, or if it is hopeless - as it sadly is most of the time.

Best,
-mario

Dear Mario
Thank you so much! The sad thing is that In my Mac using matlab the paradigms suddenly begun running ok. The student will write you today and we are looking forward to do our experiments in Universities where matlab may not be bought. We will begin with you and then if we need more time right there during our conversation we will be able to make the payment online.
Sending you all the very best
wanda

Dear Mario:
(Forwarding email)

My name is Johanna Casado. Our license key for help is


| B3XQ8-5VXWA-5BKBS-6TEH3-6VJQN-4YHMM I am a Doctoral student working on a paradigm. I work with Wanda Diaz Merced who has been corresponding with you and is copied here. The paradigm should show a screen with a stimulus that may be audio, audio and visual together or only visual. The volunteers should respond to the stimulus pressing a key. I need to use GNUOctave due to the fact that not all the Universities participating may afford matlab where some of my testers are. The script runs well on matlab but when I used the script using GNUOctave (on one windows Computer and on a Mac computer using GNU Octave it did not run at all. Your help will be appreciated and we may pay for more time if needed. The details of each computer and error outputs are: |

  • | - |

First in Mac OS:

  • Output of >> PsychtoolboxVersion

ans = 3.0.17 - Flavor: beta - Corresponds to SVN Revision 11892

For more info visit:

https://github.com/Psychtoolbox-3/Psychtoolbox-3

  • Which platform (Mac OS X, Windows XP/Vista/7, Linux, …)

Mac OS Big Sur - Version 11.2.3

  • Warnings and Errors that were printed to the console (please read them carefully)

The script starts, shows the screen of psychtoolbox and then turns black and nothing else happens, the first time I wait only some minutes but second time I wait hours and nothing happen, I press Ctrl+C but the screen continue black, I shut down the computer and when I turn on again the next error appear in the console:

PsychHID-ERROR: Could not enumerate and attach to all HID devices (HIDBuildDeviceList(0,0) failed)!

PsychHID-ERROR: One reason could be that some HID devices are already exclusively claimed by some 3rd party device drivers

PsychHID-ERROR: or applications. I will now retry to only claim control of a hopefully safe subset of devices like standard

PsychHID-ERROR: keyboards, mice, gamepads and supported USB-DAQ devices and other vendor defined devices and hope this goes better…

PsychHID-INFO: That worked. A subset of regular mouse, keyboard etc. input devices and maybe some vendor defined devices will be available at least.

  • Hardware setup and relevant driver versions

MacBook Air (Retina, 13-inch, 2018)
Graphics Intel UHD Graphics 617 1536 MB

Second I try on Windows:

  • Output of >> PsychtoolboxVersion

ans = 3.0.17 - Flavor: beta - Corresponds to SVN Revision 11892
For more info visit:
https://github.com/Psychtoolbox-3/Psychtoolbox-3

  • Which platform (Mac OS X, Windows XP/Vista/7, Linux, …)

Windows 10 Home Single Language
Version 20H2

  • Warnings and Errors that were printed to the console (please read them carefully)

I don’t obtain any error here, the script starts, shows the screen of psychtoolbox and then turns black and nothing else happens, when I click on the screen a pop up window tells me that the program is not responding and close octave. When I reopen octave I try the command ple but show me ‘No error message stored

  • Hardware setup and relevant driver versions

Hi Johanna,

for future reference, the key you posted should not be posted publicly, it is supposed to be our shared secret. Instead the Psychtoolbox PsychPaidSupportAndServices function would ask you for that key and generate a token that you can post publicly without risk of abuse by others. Anyway, i’ll just assume that only you and Wanda will be allowed to use it.

Hm. macOS 11 is not yet officially supported, and potentially an even bigger troublemaker than macOS 10, but lets hope this won’t be the problem here.

I assume that is the latest PTB 3.0.17 beta, and the latest 64-Bit Octave 6.1 or 6.2 for Windows or macOS?

I assume Octave on macOS is installed from the HomeBrew package manager? That is what is tested and supported on macOS. I assume Octave on macOS runs in a terminal window without GUI? I know that Octave on macOS with GUI works rather unreliably – usually hangs when you try to quit it at the end. This is due to incompatibilities caused by Apple macOS - Apple is not only a reliability nightmare for Psychtoolbox, but also for other packages like Octave…

How important is precise visual stimulation timing or audio-video sync, or sync with eye trackers (an Eyelink seems to be involved in some of your work?), or precision of reaction time measurements? On a display with typical 60 Hz refreshr rate, are errors on the order of 3 refresh cycles or 3*16.666 ~ 50 msec acceptable?

We strongly recommend Linux for demanding research and great timing. But if visual timing or timestamping errors in the 50 msecs range are not too bad for your paradigm, that allows for workarounds on low quality Windows or macOS systems.

Ok, first try these commands before running your scripts, to help us get some good debug output:

  1. diary on will create a “diary” text file in the current working directory with all output to the Octave (or Matlab) window, so you can find all output even if you had to terminate Octave or Matlab, or if it crashed.

  2. PsychDebugWindowConfiguration before the Screen('Openwindow`) command, should make the Psychtoolbox window half-transparent, so you can see the stimuli and the Octave window at the same time, which simplifies debugging – more convenient than that diary thing if it works.

Do our demos work without problems, or do they run into problems as well? E.g., PerceptualVBLSyncTest, LinesDemo, etc.?

In general, Octave works well with Psychtoolbox, unless scripts use toolboxes that are Matlab only, or complex object oriented programming or GUI code that is specific to Matlab. I do most of my work and testing on PTB with Octave, to make sure PTB works well with it.

-mario

Dear Mario! I trust this to find you well.

Forgive me for writing again! Did you receive the email below with the responses from Johanna. I sent it last Saturday. The answers are below each of your points in the body of the email. All her answers are in red. In the previous email I failed to put in red all of her answers , I deeply apologise I thought I did. I hope now I succeeded. It is extremely complicated to write to the psychtoolbox. We have been trying to send you Johanna’s replies since Saturday and we keep getting an annoying message alerting us of things we have done: press reply , use the same email address etc , do not change the subject.

Ok so here is forwarded again Johanna’s.
Looking forward to the response and Sending you all the best!
wanda

Hi Wanda,

that is so weird. I didn’t receive anything, and I’m not aware of the forum not working properly (but i am not a moderator here), and our psychtoolbox@mi-incubator.com address also seems to work fine - just tested it. Another one to try would be kleiner@mi-incubator.com

Your message here does not contain anything forwarded from Johanna. Can your try again?

I also cannot see any messages from you, nor are any stuck in review for me or so (I am an admin). Try the web interface if you have trouble with email. There is a “visit topic” button underneath each mail, click that, make sure you’re logged in, and post your reply to that. Or contact Mario directly :slight_smile:

I sent the email , did you receive it? We did not get an error email back.
All the best
wanda

No, nothing in any mail account, also not in the spam folders. Where did you send it?

But your messages here to the forum seem to come through, just not what your forwarded from Johanna. Maybe just copy and paste Johanna’s reply into your message here, with as little formatting as possible?
-mario

Hi Mario
Here it is. I hope! It is in red in the body of the email below. You need to read through the whole questions you asked her as she answered in the body of the email.
Fingers crossed
Wanda

Hi!
Did you receive the last email I sent about 15 minutes ago?
All the best
Wanda

Hi Wanda,

There is nothing there below “wanda”.

Could you try through the web interface as i suggested? Its gives you a preview, so you can see what others will be able to see.

It is just following this thread!
Hahahahah!!! I just went to the discourse page and sent it I hope you got it.
All the best
wanda