Thanks a lot. That was really helpful. So I figured that the one device is using data, the other one is using status pins.<br>Apparently, &hd030 refers to data pins and &hd031 to status pins.<br>Similarly for the other parallel port, &hd050 refers to data pins and &hd051 to status pins.<br><br>This might also be helpful for others who try figuring out how to specify port settings in E-Prime.<br><br>I couldn't use your script, it seems to be made with a newer version than the one we have (2.0.8.90). But it works fine now so thanks a lot!<br><br>Best,<br>Tobias<br><br>Am Donnerstag, 13. Juni 2013 23:06:21 UTC+2 schrieb Paul Groot:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Well, it's rather essential to know which pins are being used because different pins are mapped to different registers (i.e. different addresses). There are three 8-bit registers: data (base address), status (base address+1) and control (base address+2). The 25 pins are input, output, or bidirectional. The directionality of the data pins depends on the selected mode. For internal ports you can specify this mode using the BIOS setup, but I'm not sure how you this can be done with ports that are not integrated on the system board. The 8 data lines (which are mapped to the base register) are by default used for output only, so they won't accept any input unless you explicitly instruct the hardware to change its mode. The nice thing about the new ParallelPort object is that you can use the GUI to select input or output mode, without any further programming. There are also other advantages: <a href="http://www.pstnet.com/support/kb.asp?TopicID=1247" target="_blank">http://www.pstnet.com/support/<wbr>kb.asp?TopicID=1247</a>. If your button box is not wired to the data lines, then they are probably connected to the lines that are mapped to the status register (i.e. base address+1). I don't think you can use the ParallelPort device in this case, so you could simply fall back to the Port device.<br>
<br><br>General info about the parallel port pinning and registers: <a href="http://en.wikipedia.org/wiki/Parallel_port" target="_blank">http://en.wikipedia.org/wiki/<wbr>Parallel_port</a><br>Info about using input lines with the status register: <a href="http://pfcgroot.nl/e-prime/85-tips-and-tricks/71-button-box-on-printer-port.html" target="_blank">http://pfcgroot.nl/e-prime/85-<wbr>tips-and-tricks/71-button-box-<wbr>on-printer-port.html</a><br>
<br></div>best,<br>paul<br></div><div><br><br><div class="gmail_quote">On 13 June 2013 18:44, Tobias <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="eNM-irVO-JwJ">tobi...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey, thanks.<br><br>I have E-Studio 2 Professional. I had a look at the control panel for the addresses of the parallel port and they are D050-D057 and D040-D047.<br>
<br>In E-Prime I have to specify the port and tried D050 first - which didn't work. Then I used D051 and it worked - but only for this one device. Not for another one.<br>I am not sure which pins/bits the buttons are using each, but it may be that the one device uses one different from the other device. I would like to tell E-Prime to use the entire port.<br>
<br>I don't know how to sepcify the port mode. I don't know the difference between ParallelPort device and plain Port device.<br>All I know is both devices I have here have 25 pins and 8 of them should be used to transfer the data, right?<br>
<br>Best,<br>Tobias<br><br>Am Donnerstag, 13. Juni 2013 12:22:29 UTC+2 schrieb Tobias:<div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hey there,<br>
<br>I am using parallel port for response collection. My port ist &HD051 and I set a test slide to be terminated by ANY response made with the parallel port keys. That works fine with one device, but with another device id does not work at all.<br>
Of course you may think that maybe the other one is broken. But a collegue of mine who is using "Presentation" software can use both just fine.<br><br>Any hint?<br>Best,<br>Tobias<br></blockquote>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="eNM-irVO-JwJ">e-prime+u...@<wbr>googlegroups.com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="eNM-irVO-JwJ">e-p...@googlegroups.com</a>.<br></div>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/b63bcb3a-9afe-4ba9-bbee-51fd5a1938e5%40googlegroups.com?hl=en-US" target="_blank">https://groups.google.com/d/<wbr>msgid/e-prime/b63bcb3a-9afe-<wbr>4ba9-bbee-51fd5a1938e5%<wbr>40googlegroups.com?hl=en-US</a>.<div>
<div><br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.<br>
<br>
<br>
</div></div></blockquote></div><br></div>
</blockquote>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/96e25cdd-3eb2-42b5-9a4b-8cd3e14cd45f%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/96e25cdd-3eb2-42b5-9a4b-8cd3e14cd45f%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />