analog input daq</span>
0075     input=1;
0076     <span class="keyword">if</span> input==1;
0077         acq.ai = analoginput(<span class="string">'winsound'</span>);
0078         addchannel( acq.ai, 1 );
0079     <span class="keyword">else</span>
0080         acq.ai = analoginput(<span class="string">'nidaq'</span>, 1);
0081         addchannel(acq.ai, 0);
0082         set(acq.ai,<span class="string">'InputType'</span>,<span class="string">'SingleEnded'</span>)
0083         set(acq.ai,<span class="string">