From: Stefan Parr on
Hi,

I am trying to use the soundcard as an output and input object at the same time. As a trigger for the input I want to use the output channel. This gives me the error "channel must be from the same parent". Is there any help?

Here is an extract of the code:

ao = analogoutput('winsound');
ch = addchannel(ao,1);

ai = analoginput('winsound');
addchannel(ai,1);

set(ai,'TriggerChannel',ch);
set(ai,'TriggerType','Software');

start(ai);
start(ao);

Cheers Stefan