Properly configured headers on TDS744A scopes before trying to establish communications

master
Timothy Pearson 5 years ago
parent febfc4d4a0
commit 256facf7d3

@ -775,26 +775,35 @@ int scope_perform_initial_setup(const char * scopeType, int gpibDevice) {
return -1;
}
else if (strcmp("TDS744AOS", scopeType) == 0) {
sprintf(falpha,"DATA:ENCDG RIBINARY");
sprintf(falpha,"HEAD OFF");
#ifdef ENABLE_EXTRA_DEBUGGING
printf("[DEBG] Writing: %s\n\r", falpha);
#endif
if (gpib_write(gpibDevice, falpha) == 0) {
sprintf(falpha,"DATA:WIDTH 2");
sprintf(falpha,"DATA:ENCDG RIBINARY");
#ifdef ENABLE_EXTRA_DEBUGGING
printf("[DEBG] Writing: %s\n\r", falpha);
#endif
if (gpib_write(gpibDevice, falpha) == 0) {
sprintf(falpha,"DATA:START 1");
sprintf(falpha,"DATA:WIDTH 2");
#ifdef ENABLE_EXTRA_DEBUGGING
printf("[DEBG] Writing: %s\n\r", falpha);
#endif
if (gpib_write(gpibDevice, falpha) == 0) {
sprintf(falpha,"DATA:STOP %d", SCOPE_TRACE_MAX_POINTS-1);
sprintf(falpha,"DATA:START 1");
#ifdef ENABLE_EXTRA_DEBUGGING
printf("[DEBG] Writing: %s\n\r", falpha);
#endif
return 0;
if (gpib_write(gpibDevice, falpha) == 0) {
sprintf(falpha,"DATA:STOP %d", SCOPE_TRACE_MAX_POINTS-1);
#ifdef ENABLE_EXTRA_DEBUGGING
printf("[DEBG] Writing: %s\n\r", falpha);
#endif
return 0;
}
else {
return -2;
}
}
else {
return -2;

Loading…
Cancel
Save