Visual Analog scale position logging

Matt Riddle matthewpriddle at gmail.com
Mon May 5 12:25:21 UTC 2014


Hi Paul, 

Thank you so much! I will give this a try. 

-Matt 

On Monday, May 5, 2014 3:57:39 AM UTC-4, Paul Groot wrote:
>
> Hi Matt,
>
> I think that would be possible by modifying the DragScale function in the 
> VAS.epk2 package. A while-loop is used in this function to refresh the 
> needle when it is moved around. It's not very difficult to add a few lines 
> that will save the needle position periodically. The modified attachment 
> should do something like that. The 1-sec positions are now saved as 
> attribute with incremental suffix (xyz.1, xyz.2 etc.). Another option would 
> be to force logging at each interval by inserting a call to c.Log. In that 
> case it is not required anymore to add the suffix, so all results would be 
> inserted into the same xyz column of the output file. However, you will get 
> more rows instead of columns.
>
> Best
> Paul
>
> P.S. These are the inserted lines:
>
> *line 10+11:*
> Dim lSavePosAt As Long ' next time to save position
> Dim lSavePosCount As Integer ' counter to
>
> *line 41+42:*
> lSavePosAt = Clock.ReadMillisec + 1000 ' save position every second
> lSavePosCount = 0
>
> *lines 133-141:*
>     If Clock.ReadMillisec>=lSavePosAt Then
>         lSavePosAt = lSavePosAt + 1000
>         lSavePosCount = lSavePosCount + 1
>         percent = 100*((ptPress.X-VAS_SliderDummy.Left)/sw)
>         If percent<0 Then percent = 0
>         If percent>100 Then percent = 100
>         ' save the percent value
>         c.SetAttrib attributeName & "." & CStr(lSavePosCount), percent
>     End If
>
>
>
>
> ...
>
>
>
> On 3 May 2014 17:00, Matt Riddle <matthew... at gmail.com <javascript:>>wrote:
>
>> Hi, 
>>
>> I'm fairly new to anything beyond basic ePrime functions, so I apologize 
>> if this seems like a simple question. 
>>
>> I'd like to implement some form of Paul Groot's visual analog scale, but 
>> what I would like eprime to do is record the position on the scale every 
>> second or so. 
>> So let's say the participant was letting his mind wander, and was 
>> continuously moving the scale up and down according to how they were 
>> feeling, and then
>> having ePrime log wherever the indicator is on the scale. What would be 
>> the easiest way to go about doing this? I don't know if the scale treats 
>> the indicator
>> as a mouse cursor or what, so I'm a little clueless what to do. 
>>
>> Thanks in advance for your help! 
>>
>> -Matt 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "E-Prime" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to e-prime+u... at googlegroups.com <javascript:>.
>> To post to this group, send email to e-p... at googlegroups.com<javascript:>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/e-prime/4379bc47-ef57-4d31-be0d-85e78682c9dd%40googlegroups.com<https://groups.google.com/d/msgid/e-prime/4379bc47-ef57-4d31-be0d-85e78682c9dd%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/bcd7d854-278b-4672-9d7e-5e10430692f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140505/0f781879/attachment.htm>


More information about the Eprime mailing list