Skip to content

Commit

Permalink
Ensure the timebase is correct by setting the view to main
Browse files Browse the repository at this point in the history
  • Loading branch information
byteit101 committed Mar 11, 2023
1 parent a467a17 commit df6c55d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hardware/tektronix-ocp2k5/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,10 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
if (!devc->enabled_channels)
return SR_ERR;

// Set view to main, but don't check the status as TBS1000B doesn't
// support this command. This ensures the timebase is correct
tektronix_ocp2k5_config_set(sdi, "hor:view mai");

tektronix_ocp2k5_get_dev_cfg_horizontal(sdi);

if (sr_scpi_get_bool(scpi, "acq:state?", &devc->prior_state_running) != SR_OK)
Expand Down

0 comments on commit df6c55d

Please sign in to comment.