i think your problem may be with "c.SetAttrib".<br>by setting the attrib at the current context level, you're not actually placing the file name for your feedback .bmp in a place that is then accessible to your feedback slide which runs at the end of the block.<br>
a couple of options:<br><br>FeedbackList.SetAttrib 1, "FeedbackBar", "stimuli/Feedbackbar4.bmp"<br>then have your feedback slide run within a feedback procedure called from FeedbackList.<br><br>alternately<br>
<br>do all your If...Thens, but then rather than set an attribute in a list with the name of a .bmp, directly set the name for the image within your FeedbackObject.<br>Dim theImage As SlideImage<br>Set theImage = CSlideImage(FeedbackDisplay1.States(FeedbackDisplay1.ActiveState).Objects("ImageName"))<br>
<br>i pretty much just copied and pasted the above script from the help file for "SlideImage Object (topic)"<br><br>hope some of that is helpful.<br><br>ben<br><br><br><div class="gmail_quote">On Mon, Mar 16, 2009 at 12:48 PM, Paul (University of Granada) <span dir="ltr"><<a href="mailto:pollmoi@gmail.com">pollmoi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello:<br>
<br>
As im new in programming on e-prime, ill like to have some help whit<br>
one issue.<br>
<br>
Im trying to programm a block feedback display, which depends on the<br>
mean RT of the hole block. For this i have prepare a Feedback bar<br>
which has 4 different presentation. The first has to be presented if<br>
the subject RT is > 1100, the next between 1100 and 1000, the next<br>
between 1000 and 900 and the last between 900 and 800.<br>
<br>
I have an InitiateVariable InLine Text, at the beginning of the<br>
session that states:<br>
<br>
Set TargetRT = New Summation<br>
<br>
At the end of each trial, I have a Counter InLine text that states:<br>
<br>
TargetRT.AddObservation c.GetAttrib("Target.RT")<br>
<br>
Then at the end of each block i have an Feedback calculation Inline<br>
that states:<br>
<br>
'Calculation of Mean RT for Rt feedback bar<br>
If TargetRT.Mean >= 1100 Then c.setAttrib "FeedbackBar","stimuli/<br>
Feedbackbar1.bmp"<br>
<br>
If TargetRT.Mean > 1000 and TargetRT.Mean < 1100 Then c.setAttrib<br>
"FeedbackBar", "stimuli/Feedbackbar2.bmp"<br>
<br>
If TargetRT.Mean > 900 and TargetRT.Mean < 1000 Then c.setAttrib<br>
"FeedbackBar", "stimuli/Feedbackbar3.bmp"<br>
<br>
If TargetRT.Mean > 800 and TargetRT.Mean < 900 Then c.setAttrib<br>
"FeedbackBar", "stimuli/Feedbackbar4.bmp"<br>
<br>
I have put a feeback object whit an image display box, which has a<br>
reference to the attribute FeedbackBar. This attribute is a .bmp image<br>
that depends on the conditions describes above. It seems that the<br>
script doesnt has a problem, but when the experiment gets into the<br>
feedback object it appears an Error (11041, which i have look for in<br>
the user guides and is not listed) and the scripts error states:<br>
<br>
'Image3<br>
Set BlockFeedback_SlideImage = CSlideImage<br>
(BlockFeedback.States(BlockFeedback.ActiveState).Objects(6))<br>
BlockFeedback_SlideImage.Filename = c.GetAttrib<br>
("FeedbackBar")<br>
BlockFeedback_SlideImage.Load (THE ERROR APPEARS IN THIS<br>
LINE)<br>
Set BlockFeedback_SlideImage = Nothing<br>
BlockFeedback.States("Correct").DisplayName = ""<br>
Case "Incorrect"<br>
<br>
BlockFeedback.States("Incorrect").DisplayName = ""<br>
Case "NoResponse"<br>
<br>
BlockFeedback.States("NoResponse").DisplayName = ""<br>
Case "Pending"<br>
<br>
BlockFeedback.States("Pending").DisplayName = ""<br>
End Select<br>
<br>
I have look for this in the useerguides, and in the E-Prime Google<br>
groups, but havent found an answer yet... ill be thankfull if you can<br>
help me whit this....<br>
<br>
Thank you<br>
<br>
Paul<br>
<br>
</blockquote></div><br>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>