User Tools

Site Tools


jvs:cigal:showplay:manual:chapter1:mapresponses

ShowPlay Reference Manual, Chapter 1 (Introduction): mapresponses

Mapresponses -- Assign response buttons to response codes interactively

usage: mapresponses NCODES “prompt1” “prompt2” …

MAPRESPONSES is a CIGAL program that lets you assign buttons to response codes interactively, avoiding having to hardcode specific response values ahead of time.

For example, if your paradigm expects YES or NO responses, and you use CORRECTCODE and the stimulus ID parameters to code 1 whenever the correct response would be YES and a 2 when the correct response is NO, then you could assign actual response buttons by entering:

mapresponses 2 "Yes" "No"

Then you can have your subject press whichever button you want them to use for YES and NO when prompted. From then on, pressing those buttons will automatically be mapped to CORRECTCODE values 1 and 2.

Note: There is a bug in MAPRESPONSES that does not like prompt strings that are only 1 character long. So if you want your prompt to be “Y”, enter it as “ Y ” in the mapresponses command.

See Also:
CORRECTCODE, RESPONSE CODES

CIGAL Home, CIGAL Manual, ShowPlay Home, ShowPlay Manual, InputParameters List, Manual Help

jvs/cigal/showplay/manual/chapter1/mapresponses.txt · Last modified: 2023/02/23 18:43 (external edit)