From: Biswa on
Hi there,
I have modified the MultiFunction-Sync-In-Out to accept 4 analog ins and 1 analog out but as you can see I always get Error -200288. I have attached the vi along with this message. If this problem is solved, I would like to output a second analog channel with a pulse to mark signal out from the first analog out. Please advise. Cheers, Biswa


noise_natural_v4.vi:
http://forums.ni.com/attachments/ni/170/321274/1/noise_natural_v4.vi
From: rsw on
Hi Biswa,
Odds are under DAQmx your not stopping the task after a read or write before re-enabling any triggers as noted in this KB:
<a href="http://digital.ni.com/public.nsf/allkb/BFCE83133C0ECAD786256E6000814B68?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/allkb/BFCE83133C0ECAD786256E6000814B68?OpenDocument</a>
All the best,
From: Biswa on
Hi there, Thanks for the message. You are right that this is because of the task not getting stopped at every iteration of the while loop. It seems stopping a task at the end of each iteration only holds for software triggered DAQ and not otherwise.&nbsp; have herewith attached the next version of the code. The query is if I am doing finite sample acq. and generation (the samples are set as fixed for AO and AI) then shouldn't my text file for data saved via AI/AO operation have equal number of points starting at set start time. It certainly doesn't seem to be the case and I reckon this is something to do with the buffer. Your advice on this would be highly appreciated. Cheers, Biswa


stimFCO_v4.vi:
http://forums.ni.com/attachments/ni/170/321711/1/stimFCO_v4.vi