The pictures help. A few thoughts ...
- Your first picture confirms that you do have
the correct port address for your LPT1. Remember
that those values are in hexadecimal, so in
E-Basic you have to enter hex 0378 as either
&h0378 (i.e., hex), or 888 (decimal).
- Your second picture shows PortDevice Address
set to 0. Try setting that to &h378 or 888. And
make sure that you have wired up to the correct
pins on your parallel port connector, see
http://www.pstnet.com/support/kb.asp?TopicID=1320 .
- Your third picture shows a compile-time error,
instead of the run-time error in your initial
post. This time you got an error for trying to
assign a value to an "OnsetDataEnabled" property,
which of course does not exist. You mean
OnsetSignalEnabled, as you had it in your initial
post. See the
RteRunnableInputObject.OnsetSignalEnabled topic
and related topics in the E-Basic Help facility.
This will all get *much* simpler when you upgrade
to EP2, then you may use the Task Events feature.
BTW, your colleague who advised using "WritePort
&H378, 0" at the beginning and the end of the program gave very good advice!
And as to "WriteP" turning gray: Watch
carefully, you will see that "Wri" is gray, it
then turns color as you get to "Write", then back
to gray at "WriteP", and turns color again at
"WritePort". "Write" and "WritePort" are both
keywords, the intermediate forms are not, so
E-Studio is just doing a proper job of syntax-coloring keywords. All OK.
Hope that helps,
-- David McFarlane
At 4/24/2015 08:49 AM Friday, FERNANDO LÚCIO wrote:
>Yes, David. Thanks for answering. I noticed that
>the addres in LPT1 seems to be the most general
>0378-037F. There are three images attached: one
>containing the LPT1 address in Windows Device
>Manager, another image containing the default
>properties of Port Device in E-Prime and the
>last one showing the Run-time error with
>openning the Port Device, which suggests that
>this device is not been recognized by E-Prime,
>or it is, but there´s something wrong about the
>addres. Could you help me to identify what is happening?
>
>Best Regards,
>
>Em quinta-feira, 23 de abril de 2015 22:17:05
>UTC+1, McFarlane, David escreveu:
>Did you first use the Windows Device Manager to
>get the port address of your LPT port?
>
>-----
>David McFarlane
>
>
>At 4/23/2015 03:43 PM Thursday, FERNANDO LÚCIO wrote:
> >Dear all,
> >I´m using a version (1.1) of E-Prime - the
> >update will be made soon, but...- to build
> >simple experiments and I´m trying to enable the
> >parallel port to send triggers trhough it, for
> >example, to an EEG. So far, I added a parallel
> >port to my computer, cause it had none. The TI
> >guy sad it is working properly, after check the
> >port address in the device manager of control
> >panel. Moreover, I have already added a Port
> >Device (edit » experiment » devices » add »
> >Device in E-Prime (edit » experiment » devices
> >» add » port » edit). The default