Error using daq.Sessio​n/startBac​kground Too many output arguments?

1 view (last 30 days)
What the heck am I doing wrong here?
fs = 41000;
d = daq.getDevices;
dev = d(2);
s = daq.createSession('directsound');
ch = addAudioInputChannel(s, dev.ID, 1);
s.IsContinuous = true;
lh = addlistener(s,'DataAvailable', @record);
data = startBackground(s);
Returns:
Error using daq.Session/startBackground Too many output arguments

Answers (1)

Von Duesenberg
Von Duesenberg on 1 Mar 2018
startForeground takes output arguments; not startBackground.
  10 Comments
John Hackett
John Hackett on 2 Mar 2018
I don't get why you are so hung up about this. I'm being civil here, and you keep coming at me with some snide remark. I'm thankful you've taken the time to help me out, but I don't appreciate the attitude.
Walter Roberson
Walter Roberson on 2 Mar 2018
Duplication of questions leads to duplication of efforts and actually slows down response as the volunteers have to compare the questions closely to figure out whether there might be small differences that they might be overlooking that might lead to a quite different solution. Duplicate questions also require that the most active volunteers (the few with high access levels) spend time on detecting and cleaning up the duplicates when their attention could be better put answering questions.
The volunteers tend to be understanding of duplicates when the poster has not received any response at all to their question for several days, as it is natural in such cases for the poster to be think that perhaps the question has been lost: in such cases we close the duplicate and tell the poster that it would be fine for the poster to post a reminder in the original.
But when someone posts a duplicate within a small number of hours while there is even an active discussion going on (that one of the participants might quite reasonably just not had time to get back to because of other commitments), then the volunteers often start to feel as if the person posting the duplicate is being pushy and demanding unreasonably fast response. If someone needs two hour response then they should be hiring a consultant on a Premium contract. Industry standard for Full Service contracts is 4 hours, Premium is 2 to 4 hours, and less than 2 hour guaranteed response is Gold or Platinum level support contacts -- the sort of contracts that are very expensive because the service provider literally has to hire 3 full shifts in order to be sure of responding in time. When I was a sysadmin those contacts started at $75000 per year, and as that was some time ago they are probably beyond $135000 per year.
So you have been expecting service beyond the $100k price level, and you have been expecting it from volunteers.
Remember, in order for you to receive a response here, some particular individual needs to respond you. Questions do not get ineffably answered by osmosis off of people answering nearby questions. Some person has to take the time. The churn rate these days is about 250 active questions per day (160 new, the others having progress made on them.) 2 hours before someone has time to get back to a question is not long at all for someone who is dedicated to answering questions, as there is a lot to get through.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!