Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ebs
'Fecha de creacin: 06/10/2002 10:16:14
Opcin C Cadenas activadas
Dim ebContext como Contexto
Declaraciones de clase
Declaraciones de instancia
unesdoc.unesco.org unesdoc.unesco.org ------------------------Dim Display As DisplayDevice
Dim Sound As SoundDevice
Dim teclado como KeyboardDevice
Dim Mouse As MouseDevice
Dim SessionProc como procedimiento
Dim Bienvenido como TextDisplay
Dim WelcomeEchoClients como EchoClientCollection
Dim List1 como lista
Dim Instrucciones como TextDisplay
Dim InstructionsEchoClients como EchoClientCollection
Presentacin de prueba tenue como TextDisplay
Dim trialpresentationEchoClients Como EchoClientCollection
Dim blank As TextDisplay
Dim trialproc As Procedimiento
Dim blank2 As TextDisplay
Dim Goodbye As TextDisplay
Dim GoodbyeEchoClients como EchoClientCollection
trialpresentationEchoClients.RemoveAll
( "1), CLng (" 1 "), ebEndResponseActionTerminate, CLogical (" S ")," "," ","
ResponseMode: Todos los ProcessBackspace: S ")
presentacin de prueba
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
'InLine - IncrementTrial BEGIN
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
'Establecer numeracin de ensayos
Ntrial = ntrial + 1
c.SetAttrib "ntrial", ntrial
'InLine - IncrementTrial END
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
en blanco
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
'InLine - Estmulos BEGIN
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
'Atributos de nombre
LXCoo = c.Getattrib ( "LXCoo")
LYCoo = c.GetAttrib ( "LYCoo")
RXCoo = c.GetAttrib ( "RXCoo")
RYCoo = c.Getattrib ( "RYCoo")
Pregunta = c.GetAttrib ( "Pregunta")
Crear un lienzo
Dim cnvs como lienzo
Set cnvs = Display.Canvas
Declarar variables
Dim x, y, CenterX, CenterY como entero
'Inicializar variables
X = 100
Y = 100
CenterX = Display.XRes / 2
CenterY = Display.YRes / 2
Dibujar rectngulo izquierdo
Cnvs.Pencolor = CColor ( "negro")
Cnvs.FillColor = CColor ( "negro")
Cnvs.Rectangle CenterX / 2-19, CenterY + 46, 8, 8
Dibujar rectngulo derecho
Cnvs.Rectangle 3 * CenterX / 2-19, CenterY + 46, 8, 8
Dibujar crculo a la izquierda
Cnvs.Pencolor = CColor ( "negro")
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
'InLine - InLine1 END
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
obstruir
End Sub
SetOSThreadPriority 3
Set Display = Nuevo DisplayDevice
Display.Name = "Mostrar"
Dim DisplayDisplayDeviceInfo Como DisplayDeviceInfo
DisplayDisplayDeviceInfo.XRes = 640
DisplayDisplayDeviceInfo.YRes = 480
DisplayDisplayDeviceInfo.ColorDepth = 16
DisplayDisplayDeviceInfo.RefreshRate = 0.
DisplayDisplayDeviceInfo.NumPages = 0
Display.Open DisplayDisplayDeviceInfo
C.SetAttrib "Display.RefreshRate", Formato $ (Display.CalculatedRefreshRate, "0.000")
Set Sound = Nuevo SoundDevice
Sound.Name = "Sonido"
Dim SoundSoundOutDeviceInfo como SoundDeviceInfo
SoundSoundOutDeviceInfo.Channels = 2
SoundSoundOutDeviceInfo.SamplesPerSecond = 22050
SoundSoundOutDeviceInfo.BitsPerSample = 16
Welcome.OnsetSync = 1
Welcome.OffsetSync = 0
Set List1 = Nueva Lista
List1.Name = "List1"
List1.Tag = ""
'Inicializacin para List1
Set List1.Order = Nuevo RandomOrder
Set List1.Deletion = NoDeletion
List1.ResetEveryRun = False
'Crear los encabezados de columna
List1.AddAttrib "LXCoo"
List1.AddAttrib "LYCoo"
List1.AddAttrib "RXCoo"
List1.AddAttrib "RYCoo"
List1.AddAttrib "Pregunta"
List1.AddAttrib "correcto"
List1.Filename = ""
List1.LoadMethod = ebLoadMethodEmbedded Welcome.OnsetSync = 1
Welcome.OffsetSync = 0
Set List1 = Nueva Lista
List1.Name = "List1"
List1.Tag = ""
'Inicializacin para List1
Set List1.Order = Nuevo RandomOrder
Set List1.Deletion = NoDeletion
List1.ResetEveryRun = False
'Crear los encabezados de columna
List1.AddAttrib "LXCoo"
List1.AddAttrib "LYCoo"
List1.AddAttrib "RXCoo"
List1.AddAttrib "RYCoo"
List1.AddAttrib "Pregunta"
List1.AddAttrib "correcto"
List1.Filename = ""
List1.LoadMethod = ebLoadMethodEmbedded
List1.Load
Establecer List1.TerminateCondition = Ciclos (1)
Set List1.ResetCondition = Muestras (32)
List1.Reset
Set Instructions = Nuevo mensaje de texto
Instrucciones.Nombre = "Instrucciones"
Instrucciones.Tag = ""
Set InstructionsEchoClients = Nuevo EchoClientCollection
Instrucciones.WordWrap = True
Instrucciones.BackStyle = "opaco"
Instructions.BackColor = CColor ( "blanco")
Instrucciones.BorderColor = CColor ( "negro")
Instrucciones.BorderWidth = CLng ( "0")
Instructions.ForeColor = CColor ( "negro")
Instrucciones.X = "centro"
Instrucciones.Y = "center"
Instrucciones.Width = "100%"
Instructions.Height = "100%"
Instrucciones.XAlign = "center"
Instrucciones.Yalign = "center"
Instrucciones.AlignVertical = "center"
Instrucciones.AlignHorizontal = "center"
Instrucciones.FontName = "Courier New"
Instrucciones.FontSize = "16"
Instructions.FontBold = CLogical ( "S")
Instructions.FontItalic = CLogical ( "No")
Instrucciones.FontUnderline = CLogical ( "No")
Instrucciones.FontStrikeout = CLogical ( "No")
Instructions.ClearAfter = CLogical ( "No")
Instrucciones.Duracin = CLng ( "- 1")
Instrucciones.TimingMode = ebTimingModeEvent
Instructions.PreRelease = Val ( "0")
Instructions.OnsetSync = 1
Instrucciones.OffsetSync = 0
Definir la presentacin de prueba = New TextDisplay
Trialpresentation.Name = "pre Instructions.OnsetSync = 1
Instrucciones.OffsetSync = 0
Establecer trialpresentationEchoClients = Nuevo EchoClientCollection
Trialpresentation.WordWrap = Verdadero
Presentacin de prueba.BackStyle = "opaco"
Trialpresentation.BackColor = CColor ( "blanco")
Trialpresentation.BorderColor = CColor ( "negro")
Trialpresentation.BorderWidth = CLng ( "0")
Trialpresentation.ForeColor = CColor ( "negro")
Trialpresentation.X = "center"
Trialpresentation.Y = "centro"
Trialpresentation.Width = "100%"
Trialpresentation.Height = "100%"
Trialpresentation.XAlign = "center"
Trialpresentation.YAlign = "centro"
Trialpresentation.AlignVertical = "center"
Trialpresentation.AlignHorizontal = "center"
Trialpresentation.FontName = "Courier New"
Trialpresentation.FontSize = "18"
Trialpresentation.FontBold = CLogical ( "S")
Trialpresentation.FontItalic = CLogical ( "No")
Trialpresentation.FontUnderline = CLogical ( "No")
Trialpresentation.FontStrikeout = Clogical ( "No")
Trialpresentation.ClearAfter = CLogical ( "No")
Duracin = CLng ( "- 1")
Trialpresentation.TimingMode = ebTimingModeEvent
Trialpresentation.PreRelease = Val ( "0")
Trialpresentation.OnsetSync = 1
Trialpresentation.OffsetSync = 0
Establecer en blanco = New TextDisplay
Blank.Name = "blank"
Blank.Tag = ""
Blank.Text = ""
Blank.WordWrap = True
Blank.BackStyle = "opaco"
Blank.BackColor = CColor ( "blanco")
Blank.BorderColor = CColor ( "negro")
Blank.BorderWidth = CLng ( "0")
Blank.ForeColor = CColor ( "negro")
Blank.X = "center"
Blank.Y = "center"
Blank.Width = "100%"
Blank.Height = "100%"
Blank.XAlign = "center"
Blank.YAlign = "center"
Blank.AlignVertical = "center"
Blank.AlignHorizontal = "center"
Blank.FontName = "Courier New"
Blank.FontSize = "18"
Blank.FontBold = CLogical ( "S")
Blank.FontItalic = CLogical ( "No")
Blank.FontUnderline = CLogical ( "No")
Blank.FontStrikeout = CLogical ( "No")
Blank.ClearAfter = CLogical ( "No")
Blank.Duration = CLng ( "0")
Blank.TimingMode = ebTimingModeEvent
Blank.PreRelease = Val ( "0")
Blank.OnsetSync = 1
Blank.OffsetSync = 0
Set trialproc = Nuevo procedimiento
TrialprocName = "trialproc"
Trialproc.Tag = ""
Trialproc.Subroutine = "trialproc_Run"
Set blank2 = Nuevo mensaje de texto
Blank2.Name = "blank2"
Blank2.Tag = ""
Blank2.Text = ""
Blank2.WordWrap = True
Blank2.BackStyle = "opaco"
Blank2.BackColor = CColor ( "blanco")
Blank2.BorderColor = CColor ( "negro")
Blank2.BorderWidth = CLng ( "0")
Blank2.ForeColor = CColor ( "negro")
Blank2.X = "center"
Blank2.Y = "centro"
Blank2.Width = "100%"
Blank2.Height = "100%"
Blank2.XAlign = "center"
Blank2.YAlign = "centro"
Blank2.AlignVertical = "center"
Blank2.AlignHorizontal = "center"
Blank2.FontName = "Courier New"
Blank2.FontSize = "18"
Blank2.FontBold = CLogical ( "S")
Blank2.FontItalic = CLogical ( "No")
Blank2.FontUnderline = CLogical ( "No")
Blank2.FontStrikeout = CLogical ( "No")
Blank2.ClearAfter = CLogical ( "No")
Blank2.Duration = CLng ( "1000")
Blank2.TimingMode = ebTimingModeEvent
Blank2.PreRelease = Val ( "0")
Blank2.OnsetSync = 1
Blank2.OffsetSync = 0
Set Goodbye = Nuevo mensaje de texto
Goodbye.Name = "Adis"
Goodbye.Tag = ""
Establecer GoodbyeEchoClients = Nuevo EchoClientCollection
Goodbye.Text = "Gracias por su participacin y adis."
Goodbye.WordWrap = True
Goodbye.BackStyle = "opaco"
Goodbye.BackColor = CColor ( "blanco")
Goodbye.BorderColor = CColor ( "negro")
Goodbye.BorderWidth = CLng ( "0")
Goodbye.ForeColor = CColor ( "negro")
Adis.X = "centro"
Adis.Y = "centro"
Goodbye.Width = "100%"
Goodbye.Height = "100%"
Goodbye.XAlign = "centro"
Goodbye.YAlign = "centro"
Goodbye.AlignVertical = "centro"
Goodbye.AlignHorizontal = "center"
Goodbye.FontName = "Courier New"
Goodbye.FontSize = "18"
Goodbye.FontBold = CLogical ( "S")
Goodbye.FontItalic = CLogical ( "No")
Goodbye.FontUnderline = CLogical ( "No")
Goodbye.FontStrikeout = CLogical ( "No")
Goodbye.ClearAfter = CLogical ( "No")
Adis.Duracin = CLng ( "10000")
Goodbye.TimingMode = ebTimingModeEvent
Goodbye.PreRelease = Val ( "0")
Goodbye.OnsetSync = 1
Goodbye.OffsetSync = 0
End Sub
Mostrar el resumen
Dim strSummary As String
StrSummary = "Asunto:" & c.GetAttrib ( "Subject") & "\ n"
StrSummary = strSummary & "Session:" & c.GetAttrib ( "Session") & "\ n"
StrSummary = strSummary & "\ nContinuar con la informacin de inicio anterior?"
Dim nSummaryAnswer As Integer
NSummaryAnswer = MsgBox (strSummary, ebYesNoCancel + ebQuestion, "Resumen de la informacin
de inicio")
Si nSummaryAnswer = ebNo Then
GoTo StartupInfo_Begin
ElseIf nSummaryAnswer = ebCancel Then
GoTo ExperimentAbort
Terminara si
Establecer el nombre de archivo de datos predeterminado
C.GetAttrib ( "Session")) & "-" & CStr (c.GetAttrib ( "Experiment")) & "-" ".TXT"
'Si estamos registrando datos, entonces solicite sobrescribir el archivo de datos si existe
Si CLng (c.GetAttrib ( "Subject")) <> 0 Entonces
Si FileExists (c.DataFile.Filename) Then
Si ebYes <> MsgBox ( "WARNING: El archivo de datos y / o el archivo de recuperacin ya existe: \
nFILE:" & c.DataFile.Filename & "\ n \ nQuieres sobrescribir?", EbYesNo + ebQuestion) Entonces
GoTo ExperimentAbort
Terminara si
Terminara si
Terminara si
Inicializar todos los dispositivos del sistema, paquetes y objetos
InitDevices c
InitPackages c
InitObjects c
'Si estamos registrando datos, abra el archivo de datos
Si CLng (c.GetAttrib ( "Subject")) <> 0 Entonces
c.DataFile.Open
c.LogHeader
Terminara si
Iniciar el funcionamiento del experimento
SessionProc.Run c
'Limpiar el contexto y cerrar el archivo de datos
Si CLng (c.GetAttrib ( "Subject")) <> 0 Entonces
c.DataFile.Close
'Intento de convertir el archivo de recuperacin en un archivo de datos
Dim nConvert As Long
NConvert = c.DataFile.Convert (ebProgressSimple)
Si nConvert = 0 entonces
'Los ajustes en E-Studio estn configurados para no eliminar el archivo de E-Recovery
Ms
'El archivo de datos no pudo convertirse!
MsgBox "ERROR: El archivo de datos no se convirti! \ NFILE:" & c.DataFile.Filename & "\ n \ nEs
recomendado que recupere sus datos con la utilidad de E-Recovery"
MsgBox c.DataFile.GetLastErrorMessage ()
Terminara si
Terminara si
ExperimentFinish:
UnInitObjects
UnInitPackages
UnInitDevices
Experimento Cancelar: 'Limpiar el contexto Conjunto c.PopFrame c = Nada establecido dbContext =
Nada Destruir puerto predeterminado
End Sub
[DataSection_List1 (1)]
Peso Anidado Procedimiento LXCoo LYCoo RXCoo RYCoo Pregunta correcta
1 trialproc -8 84 -6 84 Ms cerca de Horizontal 2
1 trialproc -6 84 -8 84 Ms cerca de Horizontal 1
1 trialproc -4 84 1 83 Ms cerca de Horizontal 2
1 trialproc 1 83 -4 84 Ms cerca de Horizontal 1
1 trialproc 118 -38 119 -43 Ms cerca de Horizontal 2
1 trialproc 119 -43 118 -38 Cerca de Horizontal 1
1 trialproc 119 -45 119 -47 Ms cerca de Horizontal 2
1 trialproc 119 -47 119 -45 Cerca de Horizontal 1
1 trialproc -8 84 -6 84 Ms lejos de Horizontal 1
1 trialproc -6 84 -8 84 Ms lejos de Horizontal 2
1 trialproc -4 84 1 83 Ms lejos de Horizontal 1
1 trialproc 1 83 -4 84 Ms lejos de Horizontal 2
1 trialproc 118 -38 119 -43 Ms lejos de Horizontal 1
1 trialproc 119 -43 118 -38 Ms lejos de Horizontal 2
1 trialproc 119 -45 119 -47 Ms lejos de Horizontal 1
1 trialproc 119 -47 119 -45 Ms lejos de Horizontal 2
1 trialproc -8 84 -6 84 Ms cerca de Vertical 1
1 trialproc -6 84 -8 84 Ms cerca de Vertical 2
1 trialproc -4 84 1 83 Ms cerca de Vertical 1
1 trialproc 1 83 -4 84 Ms cerca de Vertical 2
1 trialproc 118 -38 119 -43 Ms cerca de Vertical 1
1 trialproc 119 -43 118 -38 Cerca de Vertical 2
1 trialproc 119 -45 119 -47 Ms cerca de Vertical 1
1 trialproc 119 -47 119 -45 Cerca de Vertical 2
1 trialproc -8 84 -6 84 Ms lejos de Vertical 2
1 trialproc -6 84 -8 84 Ms lejos de Vertical 1
1 trialproc -4 84 1 83 Ms lejos de Vertical 2
1 trialproc 1 83 -4 84 Ms lejos de Vertical 1
1 trialproc 118 -38 119 -43 Ms lejos de la Vertical 2
1 trialproc 119 -43 118 -38 Ms lejos de Vertical 1
1 trialproc 119 -45 119 -47 Ms lejos de Vertical 2
1 trialproc 119 -47 119 -45 Ms lejos de Vertical 1 \ 0