**ShowPlay Reference Manual, Chapter 4 (StimulusEvents): EventCode** ===== EventCode -- Stimulus event code ===== The EVENTCODE is a user-defined 32-bit integer identifier specified in the second column of a Showplay [[jvs:cigal:showplay:manual:chapter1:stimulustable|Stimulus table]]. The EVENTCODE code can be used in a variety of different ways. EVENTCODE values will be recorded in the output log, so the simplest usage of EVENTCODEs is to provide an event record to aid in identifying particular task events. Showplay also provides a variety of automated options for assigning specific meaning to the stimulus EVENTCODE code. ===== Send code value to external devices ===== If the 2 bit in the [[jvs:cigal:showplay:manual:chapter4:eventflag|Event Flag]] (or [[jvs:cigal:showplay:manual:chapter3:globalflag|Globalflag]]) parameter is set, the EVENTCODE value will be sent to the [[jvs:cigal:showplay:manual:chapter3:showport|ShowPort]] device at the onset time for the specified event. By default, the low 8 bits of the EVENTCODE value will be sent, but that can be changed by setting the [[jvs:cigal:showplay:manual:chapter3:showportmask|Showportmask]] parameter. ===== Use the EVENTCODE as an index into one or more event coding tables ===== ===== Use the EVENTCODE to specify the correct response to a stimulus event ===== **See Also:**\\ [[jvs:cigal:showplay:manual:chapter1:ppf|Paradigm parameter file]], [[jvs:cigal:showplay:manual:chapter1:stimulustable|Stimulus table]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:showplay|ShowPlay Home]], [[jvs:cigal:showplay:manual|ShowPlay Manual]], [[jvs:cigal:showplay:manual:chapter4|Stimulus Event List]], [[jvs:cigal:showplay:manual:help|Manual Help]]