Hello, I am trying to receive the trigger signal from the scanner and then run the matlab script.
In my system, I will get the trigger pulse through the parallel port on my desktop. using the code below..
//////////////////////////////////////////////////////
dio = digitalio('parallel','LPT1');
addline(dio,0:8,'in');
ram=getvalue(dio);
//////////////////////////////////////////////////////
If I get the trigger pulse, is the value of "ram" changed? I tried to test this, but I can't because I don't know how to wait the trigger signal after running the matlab script.
Here are my questions
1. Is it possible to use the code to receive the trigger and then execute the script(task) ?
2. If so, how can I wait like as the function of "KbWait" until the trigger come in ?
Thanks in advance.
In my system, I will get the trigger pulse through the parallel port on my desktop. using the code below..
//////////////////////////////////////////////////////
dio = digitalio('parallel','LPT1');
addline(dio,0:8,'in');
ram=getvalue(dio);
//////////////////////////////////////////////////////
If I get the trigger pulse, is the value of "ram" changed? I tried to test this, but I can't because I don't know how to wait the trigger signal after running the matlab script.
Here are my questions
1. Is it possible to use the code to receive the trigger and then execute the script(task) ?
2. If so, how can I wait like as the function of "KbWait" until the trigger come in ?
Thanks in advance.