comparison DDS4xAD9912.c @ 200:0e0282010be3

Fix device reset in old AD9912 interface
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:37 +0200
parents d96f0b04f7fe
children
comparison
equal deleted inserted replaced
199:111610d871af 200:0e0282010be3
54 int DDS4xAD9912_Reset(DDS4xAD9912_Data *dds) 54 int DDS4xAD9912_Reset(DDS4xAD9912_Data *dds)
55 { 55 {
56 int channel, rv; 56 int channel, rv;
57 char request[256]; 57 char request[256];
58 58
59 sprintf(request, "set;%i;%i", 1, 17); 59 sprintf(request, "set;%i;%i", 1, 19);
60 60
61 for (channel = 1; channel < 5; channel++) { 61 for (channel = 1; channel < 5; channel++) {
62 rv = DDS4xAD9912_SendCmd(dds, channel, request); 62 rv = DDS4xAD9912_SendCmd(dds, channel, request);
63 if (rv < 0) { 63 if (rv < 0) {
64 MessagePopup("DDS4xAD9912", "Reset failed"); 64 MessagePopup("DDS4xAD9912", "Reset failed");