Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 2 of 2

Thread: Reflect calculated value from one page to the next

  1. #1
    Join Date
    Feb 2011
    Posts
    1

    Reflect calculated value from one page to the next

    Hi

    I am new to media lab and this is my problem:

    Ps will key in two values on the first page and they will do this 10 times (10 Trials)

    For example

    Page 1:
    You:____ (lets call this value A1)
    Your Partner:____(Value B2)

    Page 2
    You:____ (lets call this value A2)
    Your Partner:____(Value B2)

    Current tally:____(Value C2)

    Q1. Can I get media lab to reflect value A1 onto Value C2 of page 2?

    Page 3
    You:____(A3)
    Partner:_____(B3)

    Current Tally:____(C3)

    Q2: Can I get media lab to add values A1 & A2 and then reflect it onto C3?

    Thanks a lot!

  2. #2
    Join Date
    Feb 2013
    Posts
    22
    Hi Angelistine. I think I can help with this. It should be possible to achieve what you want using the "responses.xls" feature. Essentially, by placing an excel worksheet in the same folder as your experiment named "responses.xls", you can have MediaLab perform calculations on the fly based on user input. You can then feed the results of those calculations back into MediaLab to present them to the user.

    Here's how it works. In the same folder in which you save your experiment, create an excel file. In the first three cells of the first row (A1, B1, and C1), put the following, respectively: variable, value, and skipto. Now, in the "variable" column, list all the variable names from your experiment that you want to use for calcultions (in your example, a1, b1, a2, b2, a3, and b3). MediaLab will fill in these values as the study runs. Once you listed everything out, you can actually create new variables in the file. To do so, just put a variable name in the "variable" that doesn't exist in your experiment (for example, if you wanted to create a running sum of participants scores on a personality measure, you might make a variable called "personalitySum").

    Leave the "value" column blank for the variables that your going to base your calculations on. For the calculated values (C, in your example), just input an excel formula to do whatever calculation you'd like.

    Now, when it comes time to show the participant the calculated value, just create an "instruction" item type. To have it show the calculated variable, enclose the variable name in <>. So, lets say your participants running total for "C" was 5. If you made an instruction item that read Current tally: <C>, then what they would see is "Current tally: 5.

    It's probably easier to understand if you see it in action. I've included a .que, .exp, and responses.xls file that you can use as a template. MediaLab also comes with a sample in the Samples folders that shows this in action.

    I hope this helps. I know it can seem a little complicated, so please let me know if I can be any further help.

    Good luck and happy researching!
    Attached Files Attached Files
    Last edited by wcrescioni; 03-19-2013 at 05:47 PM.

Similar Threads

  1. Can't display calculated items
    By eyal.peer in forum MediaLab Older Versions: Troubleshooting
    Replies: 2
    Last Post: 06-15-2010, 02:31 AM
  2. background web page during experiment?
    By jochimhansen in forum DirectRT Older Versions: General Questions
    Replies: 3
    Last Post: 02-06-2010, 05:57 PM
  3. decimal places for calculated variables
    By irwin in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 01-23-2008, 11:45 AM
  4. Show an disabled image of a web page
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 05-23-2007, 02:44 AM
  5. Measure RT and go to next page
    By psycproject in forum MediaLab Older Versions: How Do I...
    Replies: 2
    Last Post: 03-28-2007, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •