Path: news.mathworks.com!not-for-mail
From: "Tibor Auer" <tibor.auer@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: MR-scanner synchronization - parallel port, interrupt
Date: Mon, 5 May 2008 08:53:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <fvmhtf$39u$1@fred.mathworks.com>
Reply-To: "Tibor Auer" <tibor.auer@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1209977583 3390 172.30.248.35 (5 May 2008 08:53:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 May 2008 08:53:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1376082
Xref: news.mathworks.com comp.soft-sys.matlab:466625



Dear Community,

I would like to receive triggering pulse from an MR scanner
(Siemens TIM Trio 3T)(when it acquires the scans) in Matlab
R2008a (Windows XP 32bit).

All I know, trigger comes via LPT1 (0x378), pin12. We also
use a device to produce a wider pulse then is present at the
scanner output.
Till now I tried to read each pins with Data Acquisition
Toolbox, but I have noticed no changes:
- port0, pin 0:7: all give 1
- port1, pin 0:4: none but 4 gives 1
- port2, pin 0:3: none but 2:3 gives 1
The other pins are not accessible (ground?)

I CAN read/write the port with Matlab (and Data
Acuisition Toolbox), but I do not know, how to use it to get
the trigger pulse from the scanner.

In Presentation, there is a setting about "Use Interrupts"
referring to IRQ 7, and we use it. Howcan I use it also in
Matlab?
Program Presentation works fine and accepts the signal. I
just want to make it work on Matlab too.

So can you give me any hint, what to do?

Thanks,
Tibor Auer, M.D.
Biomedizinische NMR Forschungs GmbH
am Max-Planck Institut f?r Biophysikalische Chemie
Am Fassberg 11
37077 G?ttingen
Germany
Mail: tibor.auer@gmail.com