HI Soeren,

    Thanks for the reply. The reason I am adding the new key
SR_CONF_SAMPLERATE_COMBINED, because as for the Saleae Logic software, they
are supporting the different combination of the digital channel's and analog
channel's sample rate.  For example below is the combination I have, the
digital channel sample rate could be 6.25Mhz or 500Mhz, while analog sample
rate could be from 1 samples to 50Mhz samples, and for the user, it would
better they will know what is the digital channel sample rate and what’s
the analog channel sample rate they are selecting.

 

static const ad_combined_sprt_t ad_comb_samplerates[] = {

                [0] = {"DIG_500M_ANA_50M",                  SR_MHZ(500),
SR_MHZ(50)},

                [1] = {"DIG_500M_ANA_12.5M",               SR_MHZ(500),
SR_KHZ(12500)},

                [2] = {"DIG_500M_ANA_6.25M",               SR_MHZ(500),
SR_KHZ(6250)},

                [3] = {"DIG_500M_ANA_3.125M",            SR_MHZ(500),
SR_KHZ(3125)},

                [4] = {"DIG_6.25M_ANA_1.562M",           SR_MHZ(6250),
SR_HZ(1562500)},

                [5] = {"DIG_6.25M_ANA_781.25K", SR_KHZ(6250),
SR_HZ(781250)},

                [6] = {"DIG_500M_ANA_125K", SR_MHZ(500),   SR_KHZ(125)},

                [7] = {"DIG_500M_ANA_5K",                      SR_MHZ(500),
SR_KHZ(5)},

                [8] = {"DIG_500M_ANA_1K",                      SR_MHZ(500),
SR_KHZ(1)},

                [9] = {"DIG_500M_ANA_100S", SR_MHZ(500),   SR_HZ(100)},

                [10] = {"DIG_500M_ANA_10S", SR_MHZ(500),   SR_HZ(10)},

};

 



 

 

 

     The original question is how the pulseview decide to use “+2s" or "+5
Msa" as the menu title? As shown from the below picture. May need your help
guide me to the point where the pulseview code decide to change to “+ Msa”
as unit. Thanks

 

 



 

 

Best Regards

Zeng Wei

 

-----Original Message-----
From: Soeren Apel <soe...@apelpie.net> 
Sent: 2020年6月6日 1:15
To: zengweitotty <zengweito...@gmail.com>;
sigrok-devel@lists.sourceforge.net
Subject: Re: [sigrok-devel] Question about how to change the menu to show
the timestamp instead samples

 

Hello,

 

Thanks for working on this!

 

You said you introduced SR_CONF_SAMPLERATE_COMBINED but what is its purpose
and how do you think it should be used?

 

PulseView at this point only supports one sample rate for all signals and
that's not going to change anytime soon, so you'll have to perform
oversampling/interpolation in the driver in such a case.

 

Also, is it possible to use the same sample rates for analog and logic
signals? If so, I see no necessity to have different samplerates in the
first place.

 

Regards

-Soeren

 

 

On Fri, 2020-06-05 at 23:30 -0700, zengweitotty wrote:

> Hi All,

> 

>        Recently I am working on supporting Saleae Logic 8 Pro with 

> Pulseview. Most features are working fine now, I could get both analog 

> channel data and digital channel data. I have added the analog channel 

> and digital channel.

> 

>        Currently I face a problem, if anyone anyone in the email list 

> could help me out, I am appreciate.

> 

>        As for the Saleae Logic 8 Pro, it support different digital 

> sample rate and analog sample rates, when I do the change to support 

> different sample rate I add a special key called as 

> SR_CONF_SAMPLERATE_COMBINED, The menu which was displayed as timestamp 

> based things . Like "+2s"

> .. 

> "+10s", but now it shows "+5 Msa". My question is where is the code to 

> display timestamp instead of samples ?

>        Thanks.

> 

> Best Regards

> 

> Zeng Wei

> 

> _______________________________________________

> sigrok-devel mailing list

>  <mailto:sigrok-devel@lists.sourceforge.net>
sigrok-devel@lists.sourceforge.net

>  <https://lists.sourceforge.net/lists/listinfo/sigrok-devel>
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

 

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to