E-prime interface to AcqKnowledge/Biopac

22 views
Skip to first unread message

Tristan

unread,
Sep 28, 2021, 9:32:40 PMSep 28
to E-Prime
Hi,

I have been working on a stroop task in E-Prime 3 that will send markers to AcqKnowledge during physio data collection. Our system uses a parallel port and it is connected from the STP100C (that is connected to the MP150) to the computer. I've tried some different things, such as adding task events to the slide onsets and responses. I also tried making a blank E-Prime task, where I inserted Inline script with "WritePort &H0378, 0" "WritePort &H0378, 255" and "WritePort &H0378, 0"  with 500ms in between each to see if I could get E-Prime and AcqKnowledge to communicate at all and there was no response. I've also checked with all 16 digital imports running on AcqKnowledge to see if any show activity from E-Prime. I've made sure the LPT number is correct and that the port number (0378) is also correct.

Right now I'm just trying to get E-Prime to send any kind of signal to Acqknowledge so I can work from there. Does anyone have any tips on how to start getting the two programs communicating, or any ideas about what exactly isn't working in my setup? 
If anyone has ideas on how to create a simple E-Prime task that will send signals to AcqKnowledge so I have somewhere to start?

I would really appreciate any thoughts or ideas, thank you!

-Tristan

Peter Quain

unread,
Sep 28, 2021, 9:40:06 PMSep 28
to e-p...@googlegroups.com

I seem to remember having to hold the ttl signal high for a number of ms to get output registered in Acqknowledge. You then epoch on the step up. Ensuring proper pin to pin mapping is essential. Could also be something in the acquisition setup, so make sure the digital channels are set correctly.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/4704c7ba-8974-4869-b9cd-dd27aedb20bcn%40googlegroups.com.

David McFarlane

unread,
Sep 30, 2021, 12:45:53 PMSep 30
to e-p...@googlegroups.com
Tristan,

I would want to start by verifying both that my EP computer is
outputting a signal and that AcqKnowledge will respond to a signal.

Testing AcqKnowledge would be easy. You simply select some input pin,
then manually alternate between grounding that pin and applying some
appropriate voltage (e.g., two 1.5 V batteries in series) and see what
happens.

Testing output from EP takes a bit more work. First get yourself a
straight-through 25-pin D-connector cable, that will make your work a
lot easier for measuring voltages at the pins. I have attached a simple
EP3 program that will toggle the state of bit 0 with each key press.
Connect a voltmeter between a ground pin and the pin for bit 0 -- see
the diagram at
support.pstnet.com/hc/en-us/articles/360011396233-DEVICE-How-To-Parallel-Port-Communication-25286-
for guidance (I like to use pin 18 for the ground; bit 0 goes to pin 2).
Now run the program and watch the meter -- it should swing between
some low voltage (something below 1 V) and some high voltage (something
above 1 V) with each key press.

By changing the "Custom" value for the Task Event here you could test
other bits. With more cleverness you could write a test program that
toggles all the bits at once, which would allow you to be sloppier in
finding a data pin to measure; or write a test program that allows you
to enter and output arbitrary values. I leave that as an exercise.

Once you know that AcqKnowledge will respond to a signal and EP will
output a signal, the rest is just programming the signal output you
need. As Peter already said, your signal must remain long enough for
AcqKnowledge to detect it. Also, as mentioned in many other threads
here, you must reset (i.e., set to 0) your output before outputting
another value, otherwise things get garbled.

-- David McFarlane


On 2021-09-28 Tue 9:39 PM, Peter Quain wrote:
> I seem to remember having to hold the ttl signal high for a number of ms
> to get output registered in Acqknowledge. You then epoch on the step up.
> Ensuring proper pin to pin mapping is essential. Could also be something
> in the acquisition setup, so make sure the digital channels are set
> correctly.
>
> *From:*e-p...@googlegroups.com [mailto:e-p...@googlegroups.com] *On
> Behalf Of *Tristan
> *Sent:* Wednesday, 29 September 2021 11:33 AM
> *To:* E-Prime
> *Subject:* E-prime interface to AcqKnowledge/Biopac
TestLptTaskEventToggle.es3
Reply all
Reply to author
Forward
0 new messages