klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 3 forks source link

GUI #36

Closed adammorrissirrommada closed 5 years ago

adammorrissirrommada commented 8 years ago

@bartkrekelberg adamDemo works without the GUI, taking 5-9ms for the frame loop. But things go a little weird with the GUI, in several ways (see below). The frame-loop with the gui is taking around 12ms with an sd of around 2ms - so its perhaps slower if anything. I'm getting a reasonable number of frame drops even at 60Hz.

Issues: It crashes if the color mode is xyl (error copied at bottom).

If I change to RGB (and change all color properties to suitable values (e.g. gui.toleranceColor = [1 1 0]; c.screen.color.text = [1 1 1];), it works, in the sense that the gui is drawn, but the text feed formatting goes a bit awry from from around trial #5 and frame drops occur. Then again, I'm getting this issue also, which may be the cause of the weirdness:

PTB-DEBUG: DrawText: Failed to load external drawtext plugin [Unknown error]. PTB-INFO: DrawText: Failed to load external drawtext plugin 'libptbdrawtext_ftgl64.dll'. Reverting to legacy GDI text renderer. 'help DrawTextPlugin' for troubleshooting.

@bartkrekelberg do you get this msg too? I'll troubleshoot that issue when I get a chance


Running in xyl mode gives this error:

PsychColorCorrection: Error: Failed to find plugin while searching chain: FinalOutputFormattingBlit, searched icmIdString: ICM:SensorToPrimary

WARNING: This session of your experiment was run by you with the setting Screen('Preference', 'SkipSyncTests', 1). WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real WARNING: study, please make sure to set Screen('Preference', 'SkipSyncTests', 0) for maximum accuracy and reliability.

WARNING: This session of your experiment was run by you with the setting Screen('Preference', 'SkipSyncTests', 1). WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real WARNING: study, please make sure to set Screen('Preference', 'SkipSyncTests', 0) for maximum accuracy and reliability. PTB-INFO: Using specially modified PortAudio engine, based on offical version: PortAudio V19-devel WITH-DIM Error using PsychColorCorrection>GetSlotForTypeAndBind (line 1748) Could not find shader plugin for color correction inside imaging pipeline for window and view! Is color correction really enabled for this window and view channel?!?

Error in PsychColorCorrection>GetSlotForTypeAndBind (line 1742) [slot shaderid blittercfg voidptr glsl luttexid] = GetSlotForTypeAndBind(win, icmId, 'FinalFormatting');

Error in PsychColorCorrection (line 1185) [slot shaderid blittercfg voidptr glsl luttexid] = GetSlotForTypeAndBind(win, icmId, viewId); %#ok

Error in neurostim.cic/PsychImaging (line 1147) PsychColorCorrection('SetSensorToPrimary', c.guiWindow, cal);

Error in neurostim.cic/run (line 792) PsychImaging(c);

Error in adamDemo (line 103) c.run(myBlock);

bartkrekelberg commented 8 years ago

The drawtextplugin is for Mac/Linux only. So that is not a (new) error.

The xyL fails for me too. Not sure why. But given that I want to fix some things in the GUI and that calibration doesnt really work yet, I'd like to fix those things first and then come back to this issue...

adammorrissirrommada commented 8 years ago

@bartkrekelberg Does the gui work for you currently? I don't need it working yet, but just curious.

adammorrissirrommada commented 7 years ago

The gui seems a long shot now doesn't it? Do you think there would be enough time in the frame loop at typical frame rates for doing it? Simply mirroring the subject window should be possible at least, if not the rest.

What are your latest thoughts on this?

bartkrekelberg commented 7 years ago

We have a mirror monitor (the viewpixx has a hardware copy). So the software version mirroring is not a high priority for me.

Also, with the propsToInform it is relatively easy to create updates for the experimenter that are similar to what one would see in a gui. We could improve that (e.g. by calling clc between calls to put the information in the same place on the command window for a cheap gui).

A real gui with frame-level updates is likely to screw up performance…

B

From: Adam Morris [mailto:notifications@github.com] Sent: Thursday, July 13, 2017 7:42 PM To: klabhub/neurostim-ptb neurostim-ptb@noreply.github.com Cc: Bart Krekelberg bart@vision.rutgers.edu; Mention mention@noreply.github.com Subject: Re: [klabhub/neurostim-ptb] GUI (#36)

The gui seems a long shot now doesn't it? Do you think there would be enough time in the frame loop at typical frame rates for doing it? Simply mirroring the subject window should be possible at least, if not the rest.

What are your latest thoughts on this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fklabhub%2Fneurostim-ptb%2Fissues%2F36%23issuecomment-315230895&data=02%7C01%7Cbart%40rutgers.edu%7C238df90d99074dd54bc508d4ca48e599%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636355861821693388&sdata=y0f9amiJK%2FBlQq%2FgFqu4ybrh2okCcpmMGmfmFB%2FRbKA%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALbI08NhjqQLG0NTrypU43xZMJhCDL7oks5sNqtfgaJpZM4HlGzc&data=02%7C01%7Cbart%40rutgers.edu%7C238df90d99074dd54bc508d4ca48e599%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636355861821693388&sdata=1xkYubmPgLFbL3JY1j2PpGgP77WtfYD1oqON0c1u91M%3D&reserved=0.