11-06-2011 07:40 AM - edited 11-06-2011 07:41 AM
hi
I write a program to generate a voltage wafeform, but this routine does not run twice.
It prompt a error as below while press "restart" at the second time. I do not know where the error is, please help me.
thanks
11-09-2011 09:46 PM
Hi,
This link would probably help on explaining the error: http://digital.ni.com/public.nsf/allkb/BFCE83133C0ECAD786256E6000814B68
There are also a few other threads that you can look at for better explaination: http://forums.ni.com/t5/Multifunction-DAQ/getting-error-quot-200288-quot/m-p/1033678?query.id=111320... and http://forums.ni.com/t5/Multifunction-DAQ/keep-last-value-between-loops/m-p/685667?requireLogin=Fals....
I have edited your code by putting "DAQmx Wait Til Done.vi" which halts the execution of the VI until the waveform generation completes. This ensures the write operation to complete before the regeneration is ordered. Please see the attachment for the change i have made. In this case, the subsequent VI (Is Task Done) can be removed. Thanks.
Regards,
Alan