LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: Attempted to write a sample beyond the final sample generated

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

0 Kudos
Message 1 of 2
(3,304 Views)

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

 

0 Kudos
Message 2 of 2
(3,275 Views)