One question though: is _nothing_ being saved, or is PulseOnset found somewhere in your edat file, but with nothing in there? If the former, then the line is presumably skipped (as i had assumed based on what you write). If the latter, then a number of other things may be going on (e.g. it's saved under a sub-trial level thus easily overlooked).
One final thought: I'd first get everything running, THEN start thinking about adding TMS triggers and whatnot. It's far easier to add advanced bits to the working basics than vice versa. Can you, for instance, get a Stroop experiment (or any of the tutorial experiments) running with a c.SetAttrib "MyExtraLoggedData", clock.read added?
cheers,
Mich
________________________________________
From: e-p...@googlegroups.com [e-p...@googlegroups.com] On Behalf Of Evelina Tapia [eve...@illinois.edu]
Sent: 04 January 2011 18:13
To: E-Prime
Subject: Track trigger timing
Hi,
THANK YOU!
Evelina
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
Mich pretty much covered it. I will add only the following:
For debugging purposes, you can sprinkle the code with MsgBox or
Debug.Print statements so that you can trace execution flow and see
if the code really goes where you think it does. MsgBox will mess up
the program timing, but will show at run time where your code is, and
will work outside of E-Studio; Debug.Print requires running from
E-Studio, but offers some other niceties.
I would not use a c.Log anywhere except in exceptional circumstances
(e.g., a loop within a Procedure where I want to add extra log
lines). The Procedure already supplies a c.Log where needed, each
extra c.Log that you add also adds another line to the log, which is
rarely what you want. More to the point, simply using c.SetAttrib
already does everything needed to added an attribute to the log,
since EP automatically addes the required c.Log (don't take my word
for that, look at the generated code just before End Sub of your Procedure).
The PulseOn/Off need not be "attached" to any object in the program
(and as Mich pointed out, you don't really need the variables at
all). As described it looks like you are doing everything correctly,
so we must be missing something. Which brings us back to the general
debugging tips offered by Mich & me to see if the program flow really
goes where you think it does.
Good luck,
-- David McFarlane, Professional Faultfinder
This might be a moment to remind folks that generally the examples
provided by PST are rather sloppy and cannot be taken as models of
proper programming practice. Take the PST examples merely as hints
and exercises and then use your own judgment.