362
edits
Line 12: | Line 12: | ||
'''Sending a trigger pulse only:''' | '''Sending a trigger pulse only:''' | ||
For this you need to have a parallel port. Virtually no laptop these days | For this you need to have a parallel port. Virtually no laptop these days comes with a parallel port. If you must use a laptop, then there are some limited option with parallel port Express Cards. Otherwise desktop computers may have a factory installed parallel port and if not a PCI parallel port card can be easily added. | ||
You then need to build a cable to connect the parallel port to the TMS machine. Easiest way would be to hack a BNC cable and connect a Male DB25 connector and connect the signal wire of the BNC cable to pin 2 and the shield wire to pin 18 (or any of the pin 18 - 25). Then connect the DB25 side to the parallel port and the BNC side to the Input Trigger jack on the Magstim. | You then need to build a cable to connect the parallel port to the TMS machine. Easiest way would be to hack a BNC cable and connect a Male DB25 connector and connect the signal wire of the BNC cable to pin 2 and the shield wire to pin 18 (or any of the pin 18 - 25). Then connect the DB25 side to the parallel port and the BNC side to the Input Trigger jack on the Magstim. | ||
Line 33: | Line 33: | ||
Const PORT_ADDRESS = &HD010 | Const PORT_ADDRESS = &HD010 | ||
Const PulseDur = 10 'ms | Const PulseDur = 10 'ms | ||
WritePort PORT_ADDRESS, &B00000001 ' turn on pulse. | WritePort PORT_ADDRESS, &B00000001 ' turn on pulse. | ||
Sleep PulseDur | Sleep PulseDur | ||
WritePort PORT_ADDRESS, &B00000000 ' turn ff pulse | WritePort PORT_ADDRESS, &B00000000 ' turn ff pulse | ||
edits