PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(NULL)); //register the project function which is called when the module //is invoked with no named subfunction: PsychErrorExit(PsychRegister(NULL, &WAITSECSWaitSecs)); // Wait until specific deadline: PsychErrorExit(PsychRegister("UntilTime", &WAITSECSWaitUntilSecs)); PsychErrorExit(PsychRegister("YieldSecs", &WAITSECSYieldSecs)); //report the version PsychErrorExit(PsychRegister("Version", &MODULEVersion)); //register the module name PsychErrorExit(PsychRegister("WaitSecs", NULL)); PsychSetModuleAuthorByInitials("awi"); PsychSetModuleAuthorByInitials("mk"); //register synopsis and named subfunctions. //InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. return(PsychError_none); }
PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(NULL)); //register the project function which is called when the module //is invoked with no arguments: // PsychErrorExit(PsychRegister(NULL, &IOPORTIOPort)); //report the version PsychErrorExit(PsychRegister("Version", &MODULEVersion)); //register the module name PsychErrorExit(PsychRegister("IOPort", NULL)); //register subfunctions PsychErrorExit(PsychRegister("Init", &IOPORTInit)); PsychErrorExit(PsychRegister("SetPort", &IOPORTSetPort)); //register synopsis and named subfunctions. //InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. PsychSetModuleAuthorByInitials("awi"); return(PsychError_none); }
PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(&PsychPortAudioExit)); // Register the project function which is called when the module // is invoked with no arguments: PsychErrorExit(PsychRegister(NULL, &PSYCHPORTAUDIODisplaySynopsis)); // Report the version PsychErrorExit(PsychRegister("Version", &MODULEVersion)); // Register the module name PsychErrorExit(PsychRegister("PsychPortAudio", NULL)); // Register synopsis and named subfunctions. PsychErrorExit(PsychRegister("Verbosity", &PSYCHPORTAUDIOVerbosity)); PsychErrorExit(PsychRegister("Open", &PSYCHPORTAUDIOOpen)); PsychErrorExit(PsychRegister("OpenSlave", &PSYCHPORTAUDIOOpenSlave)); PsychErrorExit(PsychRegister("Close", &PSYCHPORTAUDIOClose)); PsychErrorExit(PsychRegister("Start", &PSYCHPORTAUDIOStartAudioDevice)); PsychErrorExit(PsychRegister("RescheduleStart", &PSYCHPORTAUDIORescheduleStart)); PsychErrorExit(PsychRegister("Stop", &PSYCHPORTAUDIOStopAudioDevice)); PsychErrorExit(PsychRegister("FillBuffer", &PSYCHPORTAUDIOFillAudioBuffer)); PsychErrorExit(PsychRegister("RefillBuffer", &PSYCHPORTAUDIORefillBuffer)); PsychErrorExit(PsychRegister("GetDevices", &PSYCHPORTAUDIOGetDevices)); PsychErrorExit(PsychRegister("GetStatus", &PSYCHPORTAUDIOGetStatus)); PsychErrorExit(PsychRegister("LatencyBias", &PSYCHPORTAUDIOLatencyBias)); PsychErrorExit(PsychRegister("GetAudioData", &PSYCHPORTAUDIOGetAudioData)); PsychErrorExit(PsychRegister("RunMode", &PSYCHPORTAUDIORunMode)); PsychErrorExit(PsychRegister("SetLoop", &PSYCHPORTAUDIOSetLoop)); PsychErrorExit(PsychRegister("EngineTunables", &PSYCHPORTAUDIOEngineTunables)); PsychErrorExit(PsychRegister("GetOpenDeviceCount", &PSYCHPORTAUDIOGetOpenDeviceCount)); PsychErrorExit(PsychRegister("UseSchedule", &PSYCHPORTAUDIOUseSchedule)); PsychErrorExit(PsychRegister("AddToSchedule", &PSYCHPORTAUDIOAddToSchedule)); PsychErrorExit(PsychRegister("CreateBuffer", &PSYCHPORTAUDIOCreateBuffer)); PsychErrorExit(PsychRegister("DeleteBuffer", &PSYCHPORTAUDIODeleteBuffer)); PsychErrorExit(PsychRegister("SetOpMode", &PSYCHPORTAUDIOSetOpMode)); PsychErrorExit(PsychRegister("DirectInputMonitoring", &PSYCHPORTAUDIODirectInputMonitoring)); PsychErrorExit(PsychRegister("Volume", &PSYCHPORTAUDIOVolume)); // Setup synopsis help strings: InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. // Setup module author: PsychSetModuleAuthorByInitials("mk"); // Call wait-routine for 0.1 secs: This to initialize the time glue on MS-Windows, // so the first call to a timing function won't delay: PsychWaitIntervalSeconds(0.1); // Startup finished. return(PsychError_none); }
PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(&PsychCVExit)); // Register the project function which is called when the module // is invoked with no arguments: PsychErrorExit(PsychRegister(NULL, &PSYCHCVDisplaySynopsis)); // Report the version #if PSYCH_SYSTEM == PSYCH_OSX PsychErrorExit(PsychRegister("Version", &MODULEVersion)); #endif // Register the module name PsychErrorExit(PsychRegister("PsychCV", NULL)); // Register synopsis and named subfunctions. PsychErrorExit(PsychRegister("Verbosity", &PSYCHCVVerbosity)); #ifdef PSYCHCV_USE_OPENCV PsychErrorExit(PsychRegister("OpenEyesInitialize", &PSYCHCVOpenEyesInitialize)); PsychErrorExit(PsychRegister("OpenEyesShutdown", &PSYCHCVOpenEyesShutdown)); PsychErrorExit(PsychRegister("OpenEyesParameters", &PSYCHCVOpenEyesParameters)); PsychErrorExit(PsychRegister("OpenEyesTrackEyePosition", &PSYCHCVOpenEyesTrackEyePosition)); #endif PsychErrorExit(PsychRegister("CopyMatrixToMemBuffer", &PSYCHCVCopyMatrixToMemBuffer)); PsychErrorExit(PsychRegister("ARInitialize", &PSYCHCVARInitialize)); PsychErrorExit(PsychRegister("ARShutdown", &PSYCHCVARShutdown)); PsychErrorExit(PsychRegister("ARLoadMarker", &PSYCHCVARLoadMarker)); PsychErrorExit(PsychRegister("ARDetectMarkers", &PSYCHCVARDetectMarkers)); PsychErrorExit(PsychRegister("ARRenderImage", &PSYCHCVARRenderImage)); PsychErrorExit(PsychRegister("ARTrackerSettings", &PSYCHCVARTrackerSettings)); PsychErrorExit(PsychRegister("ARRenderSettings", &PSYCHCVARRenderSettings)); // Setup synopsis help strings: InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. // Setup module author: PsychSetModuleAuthorByInitials("mk"); // Call wait-routine for 0.1 secs: This to initialize the time glue on MS-Windows, // so the first call to a timing function won't delay: PsychWaitIntervalSeconds(0.1); // Perform all remaining initialization: PsychCVInitialize(); // Startup finished. return(PsychError_none); }
PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(NULL)); //register the project function which is called when the module //is invoked with no arguments: PsychErrorExit(PsychRegister(NULL, &GETSECSGetSecs)); PsychErrorExit(PsychRegister("Version", &MODULEVersion)); PsychErrorExit(PsychRegister("AllClocks", &GETSECSAllClocks)); //register the module name PsychErrorExit(PsychRegister("GetSecs", NULL)); //register synopsis and named subfunctions. //InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. PsychSetModuleAuthorByInitials("awi"); PsychSetModuleAuthorByInitials("mk"); return(PsychError_none); }
PsychError PsychModuleInit(void) { //register the project exit function PsychErrorExit(PsychRegisterExit(NULL)); //register the project function which is called when the module //is invoked with no named subfunction: PsychErrorExit(PsychRegister(NULL, &MACHPRIORITYMachPriority)); //report the version when called with "Version" PsychErrorExit(PsychRegister("Version", &MODULEVersion)); //register the module name PsychErrorExit(PsychRegister("Priority", NULL)); //register synopsis and named subfunctions. //InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments. PsychSetModuleAuthorByInitials("awi"); return(PsychError_none); }
PsychError PsychModuleInit(void) { // InitializeSynopsis(); //first initialize the list of synopsis strings. //register the project function which is called when the module //is invoked with no arguments: PsychRegister(NULL, &GESTALTGestalt); //register the module name PsychErrorExit(PsychRegister("Gestalt", NULL)); //report the version when called with "Version" PsychErrorExit(PsychRegister("Version", &MODULEVersion)); PsychSetModuleAuthorByInitials("awi"); //register the module exit function //PsychRegisterExit(&PsychHIDCleanup); return(PsychError_none); }
PsychError PsychModuleInit(void) { // Initialize all Screen('Preference', ...); settings to startup defaults: PrepareScreenPreferences(); // Register the project exit function PsychErrorExitMsg(PsychRegisterExit(&ScreenExitFunction), "Failed to register the Screen exit function."); // Register the project function which is called when the module // is invoked with no arguments: PsychErrorExitMsg(PsychRegister(NULL, &PsychDisplayScreenSynopsis), "Failed to register the Screen synopsis function."); // Register the module name PsychErrorExitMsg(PsychRegister("Screen", NULL), "Failed to register the Screen module name."); // Register named subfunctions // Enable for debugging purposes PsychErrorExit(PsychRegister("Null", &SCREENNull)); PsychErrorExit(PsychRegister("Version", &MODULEVersion)); PsychErrorExit(PsychRegister("Computer", &SCREENComputer)); PsychErrorExit(PsychRegister("Screens", &SCREENScreens)); PsychErrorExit(PsychRegister("PixelSize",&SCREENPixelSize)); PsychErrorExit(PsychRegister("PixelSizes",&SCREENPixelSizes)); PsychErrorExit(PsychRegister("OpenWindow", &SCREENOpenWindow)); PsychErrorExit(PsychRegister("OpenOffscreenWindow", &SCREENOpenOffscreenWindow)); PsychErrorExit(PsychRegister("Close", &SCREENClose)); PsychErrorExit(PsychRegister("CloseAll", &SCREENCloseAll)); PsychErrorExit(PsychRegister("Flip", &SCREENFlip)); PsychErrorExit(PsychRegister("AsyncFlipBegin", &SCREENFlip)); PsychErrorExit(PsychRegister("AsyncFlipEnd", &SCREENFlip)); PsychErrorExit(PsychRegister("AsyncFlipCheckEnd", &SCREENFlip)); PsychErrorExit(PsychRegister("WaitUntilAsyncFlipCertain" , &SCREENWaitUntilAsyncFlipCertain)); PsychErrorExit(PsychRegister("FillRect", &SCREENFillRect)); PsychErrorExit(PsychRegister("GetImage", &SCREENGetImage)); PsychErrorExit(PsychRegister("PutImage", &SCREENPutImage)); PsychErrorExit(PsychRegister("HideCursorHelper", &SCREENHideCursorHelper)); PsychErrorExit(PsychRegister("ShowCursorHelper", &SCREENShowCursorHelper)); PsychErrorExit(PsychRegister("SetMouseHelper", &SCREENSetMouseHelper)); PsychErrorExit(PsychRegister("Rect", &SCREENRect)); PsychErrorExit(PsychRegister("WindowScreenNumber", &SCREENWindowScreenNumber)); PsychErrorExit(PsychRegister("Windows", &SCREENWindows)); PsychErrorExit(PsychRegister("WindowKind", &SCREENWindowKind)); PsychErrorExit(PsychRegister("IsOffscreen", &SCREENIsOffscreen)); PsychErrorExit(PsychRegister("ReadNormalizedGammaTable", &SCREENReadNormalizedGammaTable)); PsychErrorExit(PsychRegister("LoadNormalizedGammaTable", &SCREENLoadNormalizedGammaTable)); PsychErrorExit(PsychRegister("FrameRate", &SCREENNominalFramerate)); PsychErrorExit(PsychRegister("NominalFrameRate", &SCREENNominalFramerate)); PsychErrorExit(PsychRegister("glPoint", &SCREENglPoint)); PsychErrorExit(PsychRegister("gluDisk", &SCREENgluDisk)); PsychErrorExit(PsychRegister("FillOval", &SCREENFillOval)); PsychErrorExit(PsychRegister("FrameOval", &SCREENFrameOval)); PsychErrorExit(PsychRegister("TextModes", &SCREENTextModes)); PsychErrorExit(PsychRegister("TextMode", &SCREENTextMode)); PsychErrorExit(PsychRegister("TextSize", &SCREENTextSize)); PsychErrorExit(PsychRegister("TextStyle", &SCREENTextStyle)); PsychErrorExit(PsychRegister("TextFont", &SCREENTextFont)); PsychErrorExit(PsychRegister("TextBounds", &SCREENTextBounds)); PsychErrorExit(PsychRegister("DrawText", &SCREENDrawText)); PsychErrorExit(PsychRegister("TextColor", &SCREENTextColor)); PsychErrorExit(PsychRegister("Preference", &SCREENPreference)); PsychErrorExit(PsychRegister("MakeTexture", &SCREENMakeTexture)); PsychErrorExit(PsychRegister("DrawTexture", &SCREENDrawTexture)); PsychErrorExit(PsychRegister("FrameRect", &SCREENFrameRect)); PsychErrorExit(PsychRegister("DrawLine", &SCREENDrawLine)); PsychErrorExit(PsychRegister("FillPoly", &SCREENFillPoly)); PsychErrorExit(PsychRegister("FramePoly", &SCREENFramePoly)); PsychErrorExit(PsychRegister("GlobalRect", &SCREENGlobalRect)); PsychErrorExit(PsychRegister("DrawDots", &SCREENDrawDots)); PsychErrorExit(PsychRegister("GetTimeList", &SCREENGetTimeList)); PsychErrorExit(PsychRegister("ClearTimeList", &SCREENClearTimeList)); PsychErrorExit(PsychRegister("BlendFunction", &SCREENBlendFunction)); PsychErrorExit(PsychRegister("WindowSize", &SCREENWindowSize)); PsychErrorExit(PsychRegister("GetMouseHelper", &SCREENGetMouseHelper)); PsychErrorExit(PsychRegister("TextBackgroundColor", &SCREENTextBackgroundColor)); PsychErrorExit(PsychRegister("LineStipple", &SCREENLineStipple)); PsychErrorExit(PsychRegister("SelectStereoDrawBuffer", &SCREENSelectStereoDrawBuffer)); PsychErrorExit(PsychRegister("DrawingFinished", &SCREENDrawingFinished)); PsychErrorExit(PsychRegister("DrawLines", &SCREENDrawLines)); PsychErrorExit(PsychRegister("GetFlipInterval", &SCREENGetFlipInterval)); PsychErrorExit(PsychRegister("CloseMovie", &SCREENCloseMovie)); PsychErrorExit(PsychRegister("OpenMovie", &SCREENOpenMovie)); PsychErrorExit(PsychRegister("PlayMovie", &SCREENPlayMovie)); PsychErrorExit(PsychRegister("SetMovieTimeIndex", &SCREENSetMovieTimeIndex)); PsychErrorExit(PsychRegister("GetMovieTimeIndex", &SCREENGetMovieTimeIndex)); PsychErrorExit(PsychRegister("GetMovieImage", &SCREENGetMovieImage)); PsychErrorExit(PsychRegister("glPushMatrix", &SCREENglPushMatrix)); PsychErrorExit(PsychRegister("glPopMatrix", &SCREENglPopMatrix)); PsychErrorExit(PsychRegister("glLoadIdentity", &SCREENglLoadIdentity)); PsychErrorExit(PsychRegister("glTranslate", &SCREENglTranslate)); PsychErrorExit(PsychRegister("glScale", &SCREENglScale)); PsychErrorExit(PsychRegister("glRotate", &SCREENglRotate)); PsychErrorExit(PsychRegister("PreloadTextures", &SCREENPreloadTextures)); PsychErrorExit(PsychRegister("FillArc", &SCREENFillArc)); PsychErrorExit(PsychRegister("DrawArc", &SCREENDrawArc)); PsychErrorExit(PsychRegister("FrameArc", &SCREENFrameArc)); PsychErrorExit(PsychRegister("CopyWindow", &SCREENCopyWindow)); PsychErrorExit(PsychRegister("WaitBlanking", &SCREENWaitBlanking)); PsychErrorExit(PsychRegister("GetOpenGLTexture", &SCREENGetOpenGLTexture)); PsychErrorExit(PsychRegister("SetOpenGLTexture", &SCREENSetOpenGLTexture)); PsychErrorExit(PsychRegister("BeginOpenGL", &SCREENBeginOpenGL)); PsychErrorExit(PsychRegister("EndOpenGL", &SCREENEndOpenGL)); PsychErrorExit(PsychRegister("OpenVideoCapture", &SCREENOpenVideoCapture)); PsychErrorExit(PsychRegister("CloseVideoCapture", &SCREENCloseVideoCapture)); PsychErrorExit(PsychRegister("StartVideoCapture", &SCREENStartVideoCapture)); PsychErrorExit(PsychRegister("StopVideoCapture", &SCREENStopVideoCapture)); PsychErrorExit(PsychRegister("GetCapturedImage", &SCREENGetCapturedImage)); PsychErrorExit(PsychRegister("SetVideoCaptureParameter", &SCREENSetVideoCaptureParameter)); PsychErrorExit(PsychRegister("VideoCaptureDevices", &SCREENVideoCaptureDevices)); PsychErrorExit(PsychRegister("LoadCLUT", &SCREENLoadCLUT)); PsychErrorExit(PsychRegister("DisplaySize", &SCREENDisplaySize)); PsychErrorExit(PsychRegister("SetOpenGLTextureFromMemPointer", &SCREENSetOpenGLTextureFromMemPointer)); PsychErrorExit(PsychRegister("ColorRange", &SCREENColorRange)); PsychErrorExit(PsychRegister("HookFunction", &SCREENHookFunction)); PsychErrorExit(PsychRegister("OpenProxy", &SCREENOpenProxy)); PsychErrorExit(PsychRegister("TransformTexture", &SCREENTransformTexture)); PsychErrorExit(PsychRegister("DrawTextures", &SCREENDrawTextures)); PsychErrorExit(PsychRegister("GetWindowInfo", &SCREENGetWindowInfo)); PsychErrorExit(PsychRegister("GetOpenGLDrawMode", &SCREENGetOpenGLDrawMode)); PsychErrorExit(PsychRegister("Resolutions", &SCREENResolutions)); PsychErrorExit(PsychRegister("Resolution", &SCREENResolution)); PsychErrorExit(PsychRegister("ConfigureDisplay", &SCREENConfigureDisplay)); PsychErrorExit(PsychRegister("CreateMovie", &SCREENCreateMovie)); PsychErrorExit(PsychRegister("FinalizeMovie", &SCREENFinalizeMovie)); PsychErrorExit(PsychRegister("AddFrameToMovie", &SCREENGetImage)); PsychErrorExit(PsychRegister("AddAudioBufferToMovie", &SCREENAddAudioBufferToMovie)); PsychErrorExit(PsychRegister("GetFlipInfo", &SCREENGetFlipInfo)); PsychSetModuleAuthorByInitials("awi"); PsychSetModuleAuthorByInitials("dhb"); PsychSetModuleAuthorByInitials("dgp"); PsychSetModuleAuthorByInitials("kas"); PsychSetModuleAuthorByInitials("fjc"); PsychSetModuleAuthorByInitials("mk"); PsychSetModuleAuthorByInitials("cb"); InitializeSynopsis(); InitWindowBank(); PsychMovieInit(); PsychVideoCaptureInit(); PsychMovieWritingInit(); // Call wait-routine for 0.1 secs: This to initialize the time glue on MS-Windows, // so the first call to a timing function won't delay: PsychWaitIntervalSeconds(0.1); // Reset the "userspaceGL" flag which tells PTB that userspace GL rendering was active // due to Screen('BeginOpenGL') command. PsychSetUserspaceGLFlag(FALSE); // Call display glue init last, as its error handling could go crazy if triggered // before the init routines above got executed: InitializePsychDisplayGlue(); return(PsychError_none); }
PsychError PsychModuleInit(void) { InitializeSynopsis(); //first initialize the list of synopsis strings. // Register the project function which is called when the module // is invoked with no arguments: In this case just print command overview. PsychRegister(NULL, &PsychDisplayPsychHIDSynopsis); //register the module name PsychErrorExit(PsychRegister("PsychHID", NULL)); //register the module exit function PsychRegisterExit(&PsychHIDCleanup); //register module subfunctions PsychErrorExit(PsychRegister("Version", &MODULEVersion)); PsychErrorExit(PsychRegister("NumDevices", &PSYCHHIDGetNumDevices)); PsychErrorExit(PsychRegister("Devices", &PSYCHHIDGetDevices)); #if PSYCH_SYSTEM == PSYCH_OSX // OS/X only, so far: PsychErrorExit(PsychRegister("NumElements", &PSYCHHIDGetNumElements)); PsychErrorExit(PsychRegister("Elements", &PSYCHHIDGetElements)); PsychErrorExit(PsychRegister("NumCollections", &PSYCHHIDGetNumCollections)); PsychErrorExit(PsychRegister("Collections", &PSYCHHIDGetCollections)); PsychErrorExit(PsychRegister("CalibratedState", &PSYCHHIDGetCalibratedState)); PsychErrorExit(PsychRegister("KbWait", &PSYCHHIDKbWait)); #endif PsychErrorExit(PsychRegister("KbTriggerWait", &PSYCHHIDKbTriggerWait)); PsychErrorExit(PsychRegister("KbQueueCreate", &PSYCHHIDKbQueueCreate)); PsychErrorExit(PsychRegister("KbQueueStart", &PSYCHHIDKbQueueStart)); PsychErrorExit(PsychRegister("KbQueueStop", &PSYCHHIDKbQueueStop)); PsychErrorExit(PsychRegister("KbQueueCheck", &PSYCHHIDKbQueueCheck)); PsychErrorExit(PsychRegister("KbQueueFlush", &PSYCHHIDKbQueueFlush)); PsychErrorExit(PsychRegister("KbQueueRelease", &PSYCHHIDKbQueueRelease)); PsychErrorExit(PsychRegister("KbQueueGetEvent", &PSYCHHIDKbQueueGetEvent)); PsychErrorExit(PsychRegister("RawState", &PSYCHHIDGetRawState)); PsychErrorExit(PsychRegister("KbCheck", &PSYCHHIDKbCheck)); PsychErrorExit(PsychRegister("GetReport", &PSYCHHIDGetReport)); PsychErrorExit(PsychRegister("ReceiveReports", &PSYCHHIDReceiveReports)); PsychErrorExit(PsychRegister("ReceiveReportsStop", &PSYCHHIDReceiveReportsStop)); PsychErrorExit(PsychRegister("GiveMeReports", &PSYCHHIDGiveMeReports)); PsychErrorExit(PsychRegister("SetReport", &PSYCHHIDSetReport)); PsychErrorExit(PsychRegister("OpenUSBDevice", &PSYCHHIDOpenUSBDevice)); PsychErrorExit(PsychRegister("CloseUSBDevice", &PSYCHHIDCloseUSBDevice)); PsychErrorExit(PsychRegister("USBControlTransfer", &PSYCHHIDUSBControlTransfer)); PsychSetModuleAuthorByInitials("awi"); PsychSetModuleAuthorByInitials("dgp"); PsychSetModuleAuthorByInitials("mk"); PsychSetModuleAuthorByInitials("rpw"); PsychSetModuleAuthorByInitials("cgb"); // Initialize PsychHID core functions: PsychInitializePsychHID(); return(PsychError_none); }