Group: Administrators
Posts: 12K,
Visits: 95K
|
1) Defining
<data> / columns = [date time subject ... "somestring" ] ... </data>
will create an a column called "somestring" in the data file. That's all the "string" option you reference does. That column does *not* represent some variable that you script can write to. For that, you'll want to set up a <values> entry and log the value to the data file as detailed in the documentation.
<values> / trialtype = "" </values>
<block myblock> / trials = [1-10 = noreplace(a_trial, b_trial)] </block>
<trial a_trial> / ontrialbegin = [values.trialtype = "A"] / stimulusframes = [1=mytext] / validresponse = (57) </trial>
<trial b_trial> / ontrialbegin = [values.trialtype = "B"] / stimulusframes = [1=mytext] / validresponse = (57) </trial>
<text mytext> / items = ("<%script.currenttrial%>") </text>
<data> / columns = ["example_script" date time subject group blocknum blockcode trialnum trialcode values.trialtype response latency correct] / separatefiles = true </data>
2) A <survey> is a type of <block>. You run it at the desired point in time during your procedure via the <expt> element's /blocks attribute just like any other <block>. Alternatively, you can keep your survey and the "proper" experiment as separate scripts and use the <batch> element to administer both in sequence:
<batch> / file = "demographics.iqx" / file = "actual_experiment.iqx" </batch>
See the "How to Combine Multiple Scripts" and "Running Sequences of Inquisit Scripts and Other Applications" topics in the documentation's how-to section for details.
3) "Is it possible to present the html- or www-address on a page so that the subject may click on it with the cursor/mouse?"
No, not really. For participant's to be able to actually peruse the web site you want to direct them to, the Inquisit experiment needs to terminate. This would not be the case if there were some clickable link presented *within* the experiment. I assume you ultimately plan to collect data using Inquisit Web. If so, your options are:
(1) Redirect participants directly to the respective site *after* the experiment as detailed in the "How to Interoperate Inquisit Web with Online Survey Packages" topic. Note: The site does not have to be some online survey package, it can be any URL. All you need to do is specify the URL in your web experiment's settings when you upload and configure your script to your millisecond.com account.
(2) Redirect participants to a "custom" finish page containing the clickable link. All you need to do is create a simple HTML file containing the link (and whatever else you need, e.g., some further instructions). Note: Your *script* will not use that file at all. You upload it along with your script to your Inquisit Web account. In the experiment's settings, you specify that HTML file as the "custom finish page" to redirect to. After your participants have finished the script, that HTML file will be opened in their browser. From there, they can click the link to the other site (or choose not to).
|