Skip to content

Commit df6c55d

Browse files
committed
Ensure the timebase is correct by setting the view to main
1 parent a467a17 commit df6c55d

File tree

1 file changed

+4
-0
lines changed
  • src/hardware/tektronix-ocp2k5

1 file changed

+4
-0
lines changed

src/hardware/tektronix-ocp2k5/api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,10 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
873873
if (!devc->enabled_channels)
874874
return SR_ERR;
875875

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

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

0 commit comments

Comments
 (0)