{"id":202,"date":"2014-04-06T14:49:07","date_gmt":"2014-04-06T14:49:07","guid":{"rendered":"http:\/\/wiki.psychwire.co.uk\/?page_id=202"},"modified":"2014-04-06T18:39:40","modified_gmt":"2014-04-06T18:39:40","slug":"error-management","status":"publish","type":"page","link":"http:\/\/wiki.psychwire.co.uk\/?page_id=202","title":{"rendered":"Error Management"},"content":{"rendered":"<div>Now that we have re-arranged things a little, we can set the <em>Iteration Count<\/em> for the <em>RECORDING_SEQUENCE<\/em> to 1.\u00a0This is shown below.<\/div>\n<div><\/div>\n<div><a href=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_32_12-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-252\" alt=\"2014-04-06 16_32_12-Developing Experiments using Experiment Builder_EYETRACKING - Microsoft PowerPoi\" src=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_32_12-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi-202x300.png\" width=\"202\" height=\"300\" srcset=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_32_12-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi-202x300.png 202w, http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_32_12-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png 270w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div>There are a few remaining things we need to do before we can begin recording eye movements. Here we will now start getting errors after re-arranging so much. But this is a good learning opportunity as we will take a look at the types of errors that can occur, and what you can do to \u00a0fix them!<\/div>\n<p><\/p>\n<div><\/div>\n<div>Unfortunately, as with most programming languages, moving things around in Experiment Builder can have an impact on variables that link to it.\u00a0If we now Test Run the experiment it can no longer find the images because we have moved the Data Source to a new location! Oh no!<\/div>\n<p><\/p>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_33_30-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-255\" alt=\"2014-04-06 16_33_30-Developing Experiments using Experiment Builder_EYETRACKING - Microsoft PowerPoi\" src=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_33_30-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\" width=\"963\" height=\"140\" srcset=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_33_30-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png 963w, http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_33_30-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi-300x43.png 300w, http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_33_30-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi-960x140.png 960w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/a><\/div>\n<div><\/div>\n<div>\n<div>To remedy this situation, we need to look at all of our variables and resources and re-link them to the new location for the Data Source.\u00a0Lets start with the error from the Output tab \u2013 It cannot find the reference to the DataSource in:<\/div>\n<div><\/div>\n<div><a style=\"font-size: 14px; line-height: 1.5em;\" href=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_34_23-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-256\" alt=\"2014-04-06 16_34_23-Developing Experiments using Experiment Builder_EYETRACKING - Microsoft PowerPoi\" src=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_34_23-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\" width=\"867\" height=\"63\" srcset=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_34_23-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png 867w, http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_34_23-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi-300x21.png 300w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/a><\/div>\n<div><span style=\"font-size: 14px; line-height: 1.5em;\">If you click on the error in the Output tab it will take you to the node where the error lies and in the Properties panel you can see an error shown in red. This is helpful since it is trying to show us where we have messed things up!<\/span><\/div>\n<p><\/p>\n<div><\/div>\n<div><a href=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_35_26-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-257 aligncenter\" alt=\"2014-04-06 16_35_26-Developing Experiments using Experiment Builder_EYETRACKING - Microsoft PowerPoi\" src=\"http:\/\/wiki.psychwire.co.uk\/wp-content\/uploads\/2014\/04\/2014-04-06-16_35_26-Developing-Experiments-using-Experiment-Builder_EYETRACKING-Microsoft-PowerPoi.png\" width=\"262\" height=\"511\" \/><\/a><\/div>\n<div>\n<div><\/div>\n<div><\/div>\n<div>\n<div>Click on the red error in Source File Name and re-link the image_name in the <em>datasource<\/em> to it\u2019s new location within <em>SEQUENCE.\u00a0<\/em>This is shown below.<\/div>\n<p><\/p>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"http:\/\/www.personal.soton.ac.uk\/hg102\/ul\/fixingerrorimageresource.gif\" width=\"744\" height=\"506\" \/><\/div>\n<div><\/div>\n<div>\n<div>Test run again\u2026What else is wrong?!\u00a0There is a problem with the <em>CONDITIONAL<\/em> that links to the <em>expected_button<\/em> in the d<em>atasource.\u00a0<\/em>To fix this, re-link this to its new location. Again, notice the red text highlighting where the problems are, as shown below.<\/div>\n<p><\/p>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"http:\/\/www.personal.soton.ac.uk\/hg102\/ul\/fixiconditonal.gif\" width=\"744\" height=\"506\" \/><\/div>\n<div><\/div>\n<div>\n<div>Cross your fingers and test run it again. Is it fine now?\u00a0Yep! You should be able to successfully test run now.\u00a0You will have the correct number of trials with a drift correct preceding each one.<\/div>\n<p><\/p>\n<div><\/div>\n<div>However, in testing it out, it seems something else is wrong.\u00a0<span style=\"font-size: 14px; line-height: 1.5em;\">You may notice that just before the drift correct you see a preview of the image about to be shown drawn to the next trial.\u00a0<\/span>This is caused by the prepare sequence.\u00a0We need to insert a blank screen after each trial to stop us seeing this preview. It&#8217;s important to understand that some errors won&#8217;t let you run the experiment. Those we have fixed already. However, other types of errors &#8211; so-called\u00a0<em>logic\u00a0<\/em>errors &#8211; are those that occur because, although everything technically works, there&#8217;s a flaw in the logic of what we&#8217;ve got working somewhere that is causing undesired outcomes.<\/div>\n<p><\/p>\n<div><\/div>\n<div>To fix this, go to the<span style=\"font-size: 14px; line-height: 1.5em;\">\u00a0RECORDING_SEQUENCE and drag down a new DISPLAY_SCREEN. Call this DISPLAY_BLANK_SCREEN. <\/span><span style=\"font-size: 14px; line-height: 1.5em;\">Insert it at the end after ADD_TO_RESULTS_FILE. These steps are shown below.\u00a0<\/span><span style=\"font-size: 14px; line-height: 1.5em;\">This will fix the preview problem! You now have a working experiment with a drift correct!<\/span><\/div>\n<p>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"http:\/\/www.personal.soton.ac.uk\/hg102\/ul\/insertblankdisplayscreen.gif\" width=\"851\" height=\"831\" \/><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Now that we have re-arranged things a little, we can set the Iteration Count for the RECORDING_SEQUENCE to 1.\u00a0This is shown below. There are a few remaining things we need to do before we can begin recording eye movements. Here we will now start getting errors after re-arranging so much. But this is a good [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":189,"menu_order":4,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-202","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":8,"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/202\/revisions"}],"predecessor-version":[{"id":321,"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/202\/revisions\/321"}],"up":[{"embeddable":true,"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/189"}],"wp:attachment":[{"href":"http:\/\/wiki.psychwire.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}