@@ -54,10 +54,12 @@ Use this function to send single triggers (e.g. for MRI or EEG) to an external d
function: parchat(pin,status)
**Description**
This function opens an interface with a parallel port using InpOutx64. This is a [64bit mex files](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/parchat.mexw64) that works on 64 bit Windows only! A parallel port is mandatory for the execution of this function. Call of the function is not possible when the parallel port is occupied by continuous requests, for example when using triggerCounter2_MCR9-2.exe. Use [sendTriggerMRI](/MRI-or-trigger#sendtriggermri) in this case.
This function opens an interface with a parallel port using InpOutx64. This is a [64bit mex files](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/parchat.mexw64) that works on 64 bit Windows only! A parallel port is mandatory for the execution of this function. Notice that a parallel port with an USB adapter does not work. Call of the function is not possible when the parallel port is occupied by continuous requests, for example when using triggerCounter2_MCR9-2.exe. Use [sendTriggerMRI](/MRI-or-trigger#sendtriggermri) in this case.
The function parChat can activate or deactivate pin 2-9 if it is called with a status condition or it can listen to pin 10-15 if it is called without a status condition. In contrast to [parChatWord](/MRI-or-trigger#parchatword) this is only possible for one pin at a time. A table explaining all possible combinations can be found in [chapter 2.8. Event-codes](/How-tos#event-codes).
Further information are available by running the function in MATLAB without any arguments.
**Inputs**
~~~
pin pin number for sending trigger
...
...
@@ -77,6 +79,8 @@ Similar to [parChat](/MRI-or-trigger#parchat) this function opens an interface w
The input variable needs to be a decimal number which translates into an array representing a binary number. This array includes commands for pin 2-9 of the parallel port. Use the matlab internal functions [dec2bin](https://de.mathworks.com/help/matlab/ref/dec2bin.html) and [bin2dec](https://de.mathworks.com/help/matlab/ref/bin2dec.html?s_tid=doc_ta) to find out which number you need to use as input for this function. Further explanation and examples can be found in [chapter 2.8. Event-codes](/How-tos#event-codes).
Further information are available by running the function in MATLAB without any arguments.
**Inputs**
~~~
repbin decimal number for character array representing binary number