biopac unresponsive to ttl signals from matlab
1 view (last 30 days)
Show older comments
I am currently using a Biopac MP150 model in our lab.
I have been trying to send TTL Signals via matlab to the biopac equipment via parallel port of address 378. The matlab codes seem to be fine, however, the biopac doesnt seem to respond to the ttl signal.
What I have done till now:
As for matlab, i have downloaded and installed lptwrite.m which is the required software to send ttl signals. and, i have created a plot via AcqKnowledge software to view the signals obtained/responsive by biopac.
On the plot, when the PC is on, its on high(5V) constantly. However, when the command: lptwrite(888, 0), is applied to make it low(0V). It still stays on high(5V) when it should become low(0V).
Apparently, I was using biopac to collect GSR data on a participant simultaneously. The plots for the ttl signal and gsr were on the same screen and run live at the same time. The GSR data was running fine while the ttl signal was consistent and unresponsive at 5V while the signals to alter the ttl codes were executed.
The matlab codes used are shown below:
lptwrite(888, 0); % to transmit a 0V signal, 888 is the address for 378 in decimal
WaitSecs(0.005); % waits for 5 milli seconds
lptwrite(888, 255); % to transmit a 5V signal
Ultimately, I would like to make biopac responsive to the matlab codes below so that it shows on the plot as per the codes mentioned above via AcqKnowledge Software.
The aim is to use ttl signals as a markers for paradigms.
Is there anyway that I could make this happen?
Thanks
0 Comments
Accepted Answer
Walter Roberson
on 7 Mar 2013
Are you trying to use 32 bit Windows or 64 bit Windows ? lptwrite() is only for 32 bit Windows.
1 Comment
Walter Roberson
on 7 Mar 2013
Were you able to do any debugging with a utility such as http://retired.beyondlogic.org/pardebug/pdebug.htm ?
More Answers (3)
Laura
on 9 Sep 2014
Dear Prasad, could you tell me which toolbox you finally used? I might be facing the same problem ;) Best, Laura
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!