Fixing afg functions - sending arbitary wave data now works