I'm having some trouble getting the DAC to stop playback of the waveform. I run
// arm
if(FMC176_ctrl_arm(AddrSipFMC176Ctrl)!=FMC176_CTRL_ERR_OK) {
printf("Could not arm DAC0, exiting\n");
sipif_free();
_aligned_free(pOutData);
_aligned_free(pInData);
return -22;
}
Sleep(10);
// send a software trigger
if(FMC176_ctrl_sw_trigger(AddrSipFMC176Ctrl)!=FMC176_CTRL_ERR_OK) {
printf("Could not send software trigger to ADC0, exiting\n");
sipif_free();
_aligned_free(pOutData);
_aligned_free(pInData);
return -23;
}
Sleep(10);
// disarm
if(FMC176_ctrl_disarm(AddrSipFMC176Ctrl)!=FMC176_CTRL_ERR_OK) {
printf("Could not disarm DAC0, exiting\n");
sipif_free();
_aligned_free(pOutData);
_aligned_free(pInData);
return -24;
}
and, wouldn't you know it, it never stops sending out the waveform, even after the program ends execution. Am I doing something wrong?