Fix for the broken *IDN? command in FW version 00.04.04 of the DS1054Z

that caused a "can't read" error with USB connection.
merge-requests/1/head
Teuniz 2016-08-04 22:37:20 +02:00
rodzic a12c916407
commit 0591773755
2 zmienionych plików z 15 dodań i 2 usunięć

Wyświetl plik

@ -35,7 +35,7 @@
#define PROGRAM_NAME "DSRemote"
#define PROGRAM_VERSION "0.32_1603121812"
#define PROGRAM_VERSION "0.32_1608042235"
#define MAX_PATHLEN 4096

Wyświetl plik

@ -152,7 +152,8 @@ void UI_Mainwindow::open_connection()
}
}
if(tmc_write("*IDN?") != 5)
// if(tmc_write("*IDN?") != 5)
if(tmc_write("*IDN?;:SYST:ERR?") != 16) // This is a fix for the broken *IDN? command
{
sprintf(str, "Can not write to device %s", dev_str);
goto OUT_ERROR;
@ -228,6 +229,18 @@ void UI_Mainwindow::open_connection()
strcpy(devparms.softwvers, ptr);
for(i=0; ; i++)
{
if(devparms.softwvers[i] == 0) break;
if(devparms.softwvers[i] == ';')
{
devparms.softwvers[i] = 0;
break;
}
}
if((devparms.modelserie != 6) &&
(devparms.modelserie != 1))
{