Trigger event markers from Eprime to BIOPAC

Catarina Azevedo catarina.melo.azevedo at gmail.com
Tue Apr 3 14:10:19 UTC 2012


Thank you so much for your help Paul!

Catarina

On Mar 29, 10:43 pm, Paul Groot <pfc.gr... at gmail.com> wrote:
> Hi Catarina,
>
> The SendPulse inline script of your es-file already contains a few
> lines to send a pulse using WritePort. You could replace them with
> something like this:
>
> DutWords.OnsetSignalEnabled = True
> DutWords.OnsetSignalPort = &H378
> DutWords.OnsetSignalData = c.GetAttrib("marker")
>
> DutWords.OffsetSignalEnabled = True
> DutWords.OffsetSignalPort = &H378
> DutWords.OffsetSignalData = 0  ' reset all digital lines to zero
>
> Since BioPac will acquire the 8 digital TTL lines as separate signals,
> you would probably want to use powers of two for the markers:
> 1,2,4,8,16,32,64 and128. If you don't use powers of two, you will get
> a mixture of simultaneous pulses. (You could use a calculation channel
> to convert the 8 digital channels back to a numerical one, but I would
> suggest you should only do this when you need more than 8 unique
> marker codes.)
>
> Also make sure that the marker attribute is defined in all relevant
> lists, because I  noticed that the second part of your exp. is missing
> the marker attribute.
>
> I also have the feeling that part of your script contains duplicate
> (identical) objects. Perhaps you need duplicates in some places to be
> able to implement English/Dutch specific elements, but I'm sure that
> in some places you could (re)use the same E-Object. (For example
> Blank1 and Blank2 are probably identical). Although this is not a big
> deal in your script, I often see scripts having large amounts of
> copied objects. One of the side-effects of having duplicates is that
> the log-file will become unnecessary complex.
>
> Best,
> Paul
>
> 2012/3/29 Catarina Azevedo <catarina.melo.azev... at gmail.com>:
>
>
>
>
>
>
>
> > Hi all!
>
> > I'm new in eprime and so I realize that this will be a beginner
> > question.But I really need some help!
>
> > I programmed an experiment in which participants will see first a
> > block of English words and then a block of Dutch words (or the
> > contrary, order was counterbalanced). The 40 words they will see in
> > the first block will be chosen pseudo-randomly from a list of 80
> > words. In the second block they will see their translations. I found a
> > way to do it with Nested lists (without scripts).
>
> > Each participant will see 10 EnglishPositive, 10EnglishNegative, 10
> > EnglishNeutral, 10English Taboo and 10 DutchPositive, 10DutchNegative,
> > 10 DutchNeutral and 10DutchTaboo words.
>
> > I insert a column with the title "marker", being the options 1,2,3,4
> > for the english words and 5,6,7 and 8 for the dutch words
> > (corresponding to the type of words).
>
> > I would like to know the inline I should write and where so that I
> > would have 8 different types of events in BIOPAC. I saw this one:
>
> > xxx.OnsetSignalEnabled = True
> > xxx.OnsetSignalPort = &H378
> > xxx.OnsetSignalData = 1
>
> > xxx.OffsetSignalEnabled = True
> > xxx.OffsetSignalPort = &H378
> > xxx.OffsetSignalData = 2
>
> > But I if I put like this
>
> > marker.OnsetSignalEnabled = True
> > marker.OnsetSignalPort = &H378
> > marker.OnsetSignalData = 1
>
> > marker.OffsetSignalEnabled = True
> > marker.OffsetSignalPort = &H378
> > marker.OffsetSignalData = 2
>
> > I'm not sure if it will specified the type of words (events) in
> > Biopac.
>
> > Here you have the es. file
> >http://dl.dropbox.com/u/31016950/CAmarch2012quaseEXP.es
>
> > Thank you for your attention
>
> > Catarina
>
> > --
> > You received this message because you are subscribed to the Google Groups "E-Prime" group.
> > To post to this group, send email to e-prime at googlegroups.com.
> > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list