While testing out my code, everytime I set sample count higher than 1 it keeps returning 0xbfff0030 user abort errors, and the measured data doesn't get transferred. Occasionally (haven't been able to duplicate the errors exactly) it also returns "Instrument reports:+320,"Input signal frequency shift caused internal counter overflow" and "hex 0xbfff0015" errors. Is there something wrong with my code? Should I use a while loop to get multiple/continuous data instead of using a higher sample count?
The instrument also shows "error caused by remote command".
I've attached the block diagram image for my code. Thanks again for any help!