<_whitenotifier-3>
[scopehal-apps] azonenberg 2d1e1c9 - Initial in-band power support
<_whitenotifier-3>
[scopehal-apps] azonenberg b64aa4e - Merge branch 'master' of github.com:ngscopeclient/scopehal-apps
davidc__ has joined #scopehal
<d1b2>
<nandly> Hi, I am trying out scopehal and ngscopeclient with Rigol DS1000z series scope. Right now, it is not possible to configure timebase due to some missing code. Sounds like something I could fix. I am confused a about interleaving feature. Scope has has one 1Gsps ADC. When there is more than one channel enabled, samplerate gets divided. This is automatic. It this that interleaving?
<d1b2>
<johnsel> No, the interleaving function is for scopes that have explicit interleaving options, for he DS1k this is indeed automatic
<d1b2>
<johnsel> You can thus ignore it
<d1b2>
<nandly> Ok, should the GetSampleRatesNonInterleaved() take into account how many channels are enabled and return adjusted samplerates?
<d1b2>
<johnsel> Looking at the Rigol driver code, what specifically can you not configure?
<d1b2>
<johnsel> Oh right presumably you get no samplerates at all correct?
<d1b2>
<nandly> yes, there is samplerate list only for MSO5k serises scopes
<d1b2>
<johnsel> Yup makes sense, and the DS1k is m_protocol == DS_OLD I think?
<d1b2>
<johnsel> The current pattern is that the samplerates are static and independent of amount of channels enabled. In theory thus you can set a value that the scope won't accept
<d1b2>
<nandly> my scope is DS1kZ, and it falls into DS protocol
<d1b2>
<johnsel> I would just add the samplerates as another else if
<d1b2>
<johnsel> I have a task to add 10Gsa for the MSO8k series as well which I have here
<d1b2>
<nandly> Yes, it's possible. I just wanted to be sure about expectations. There are no API specs I am aware of.
<d1b2>
<johnsel> Well, I'm not sure how often this code is ran for one, the second is if we take into account how many channels are enabled it is confusing if some samplerates aren't available
<d1b2>
<johnsel> ideally you'd have some kind of enabled parameter that you could set to false and have it show up but be impossible to select
<d1b2>
<johnsel> Thinking about it longer I don't see a reason why you can't implement 'virtual' interleaving based on the timebase selections
<d1b2>
<nandly> That is gonna be interesting. You can't configure samplerate at DS1kZ copes. Instead you configure samples/div and memory depth (mine is stuck at AUTO). Samplerate is then calculated according to equation (Memory Depth = Sample Rate × Waveform Length)