How to trigger Matlab from XEM?

Hi I don’t know if this has been discussed here. I am having a problem with triggering matlab from XEM. Specifically, I need my host side matlab program to be informed as soon as a trigger is sent via. okTriggerOut. In the past I used the method of making the matlab host to keep checking by updatetriggerouts/istriggered. But this time I can’t do that because it will keep the matlab busy all the time, not be able to respond other tasks. So, is there a way similar to interrupt to inform the matlab that a xem trigger event just occurred ? Thanks in advance.

@O-K, is this even possible ?