필터 지우기
필터 지우기

How do I get MATLAB to output a digital marker via the parallel port to Biopac's Acqknowledge software?

조회 수: 15 (최근 30일)
I'm basically using MATLAB in place of E-Prime/Superlab/DirectRT etc. In order to mark Acqknowledge (Biopac) with a digital marker (and trigger acquisition), I require the STP100C - This module would accept a digital marker via the parallel port. Therefore, I need to program MATLAB to output a digital marker via the parallel port of the computer, I'm sure there must be some command for that.
I am trying to collect Event Related Potentials and I have 2 targets/stimuli (T1 & T2). These are letters that are part of a rapid serial visual presentation. After each string is presented, the participant has to reply yes/ no to whether T1 or T2 was presented. As far as physiology is concerned I am measuring the onset of the P300.

채택된 답변

PT
PT 2013년 3월 26일
편집: PT 2013년 3월 26일
Take a look at "digitalio" in the Data Acquisition Toolbox. Here's a short example code:
% Initialize 2 lines (2nd line reserved for future use)
ppobjects.dio = digitalio('parallel', 'LPT1');
ppobjects.lines = addline(ppobjects.dio,1:2,'out');
% Set line 1 to high
linenum = 1;
value = 1;
putvalue(ppobjects.lines(linenum),value);
% Set line 1 to low
linenum = 1;
value = 0;
putvalue(ppobjects.lines(linenum),value);
  댓글 수: 4
sonia
sonia 2013년 3월 29일
Just to clarify I am using a 25-pin parallel port cable, from the stimulus (MATLAB) computer to the physiological recording (Biopac) computer.
I have the data acq. toolbox. What I need is a digital pulse to be sent to the recording computer every time the number 4/7 or the letter X is shown. Also it should be on a separate chennel and not directly on top of the EEG wave form.
PT
PT 2013년 4월 1일
In that case, wire line 1 and gnd of parallel port to the signal and return on your device's digital input. From Wikipedia, it should be pin 2 or 3 for + and any of the gnd pins for -.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

steamrice
steamrice 2020년 1월 28일
I am haveing a similar software and hardware design problem using biopac and stp100C. Could someone help?

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by