From: Shane on 8 Apr 2010 01:48 I am trying to get an external audio signal to trigger 2 second data acquisition within Matlab. ie.. the audio is a stimulus, which also signals for matlab to begin recording EEG responses to the audio. Currently I have the audio signal connected to the 'mic in' of the windows sound card, while the EEG signals go to a National Instruments DAQcard 6024E. When I try to set this up I receive this error: "??? The channel must be from the same parent" Does this mean that Matlab cannot use two different D/A convertors simultaneously (the windows sound card and the National Instruments DAQcard)? I don't think it's possible for me to route the audio into the NI DAQcard input, which would fix my problem. Any help would be much appreciated. I'm pretty new at Matlab. Thank you, Shane Detailed info: *My .m file ainidaq = analoginput('nidaq',1); chanR = addchannel(ainidaq,0); aiwinsound = analoginput('winsound',0); chanT = addchannel(aiwinsound,1); duration = 2; set(ainidaq, 'SampleRate',10000); ActualRate = get(ainidaq,'SampleRate'); set(ainidaq,'SamplesPerTrigger',ActualRate*duration); set(ainidaq,'TriggerChannel',chanT); set(ainidaq,'TriggerType','Software'); set(ainidaq,'TriggerCondition','Rising'); set(ainidaq,'TriggerConditionValue',1); set(ainidaq,'TriggerFcn','mycallback'); start(ainidaq); waittilstop(ainidaq,20); delete(ainidaq); clear ainidaq; *the error: Warning: Support for the National Instruments Traditional NI-DAQ driver will not be provided in future releases of Data Acquisition Toolbox. Instead, it will be available as a separate download. Consider upgrading to the NI-DAQmx version if it supports your hardware. See Solution 1-5LI9NF for details. ??? The channel must be from the same parent. Error in ==> daqdevice.set at 228 set(x.uddobject(i), prop, val); Error in ==> trigger2 at 12 set(ainidaq,'TriggerChannel',chanT);
From: Shane on 8 Apr 2010 23:39 bump? :)
|
Pages: 1 Prev: Memory problems with large sparse matrices Next: pvvar results do not match Excel's NPV |