Cumulative number of separate

Hello

I have a question about the analytical functions. What I'm trying to achieve is: calculate the cumulative number of separate.

For example, to 20091001 I need to count the distinct subscribers on this date. I have need to also consider 20091001 to 20091002. 20091003 I must consider 20091001 to 20091002. You got the point.

Below, I have attached the input data and also my goal. I tried some of the windowing functions with no luck.

With 10 gr 2 Enterprise edition

Thank you
Onur


DATA:
daily_calendar_id subsriber_id
20091001 1
20091001 3
4 20091001
20091001 3
4 20091001
5 20091001
20091001 6
20091001 2
4 20091001
20091001 1
20091001 1
20091001 3
20091002 7
20091002 8
20091002 3
20091002 2
20091002-1
20091002 5
20091002 12
10 20091003
12 20091003
4 20091003
6 20091003
4 20091003
3 20091003
4 20091003
17 20091003
16 20091003
20091004 17
20091004 18
20091004 19
20091004 20
20091004-1
20091004 2
20091004 21


EXPECTED RESULT:
daily_calendar_id Cumulative_distinct_subscriber_count
20091001 6
20091002 9
12 20091003
20091004 16

Published by: user6299691 on December 10, 2009 05:04
with t
as
(
select 20091001 dt, 1 val from dual union all
select 20091001, 3 from dual union all
select 20091001, 4 from dual union all
select 20091001, 3 from dual union all
select 20091001, 4 from dual union all
select 20091001, 5 from dual union all
select 20091001, 6 from dual union all
select 20091001, 2 from dual union all
select 20091001, 4 from dual union all
select 20091001, 1 from dual union all
select 20091001, 1 from dual union all
select 20091001, 3 from dual union all
select 20091002, 7 from dual union all
select 20091002, 8 from dual union all
select 20091002, 3 from dual union all
select 20091002, 2 from dual union all
select 20091002, 1 from dual union all
select 20091002, 5 from dual union all
select 20091002, 12 from dual union all
select 20091003, 10 from dual union all
select 20091003, 12 from dual union all
select 20091003, 4 from dual union all
select 20091003, 6 from dual union all
select 20091003, 4 from dual union all
select 20091003, 3 from dual union all
select 20091003, 4 from dual union all
select 20091003, 17 from dual union all
select 20091003, 16 from dual union all
select 20091004, 17 from dual union all
select 20091004, 18 from dual union all
select 20091004, 19 from dual union all
select 20091004, 20 from dual union all
select 20091004, 1 from dual union all
select 20091004, 2 from dual union all
select 20091004, 21 from dual
)
select dt, sum(cnt) over(order by dt) cnt
  from (
select dt, count(*) cnt
  from (select min(dt) dt
         from t
        group by val)
 group by dt)

Tags: Database

Similar Questions

  • Cumulative NUMBER

    Hello

    Anyone know how I can reach a cumulative number?

    For example, I have the select statement:

    Select deptno from scott.emp

    20
    30
    30
    40
    20
    10

    what I get is the following:

    DEPTNO County

    20 1
    30 2
    30 2
    40 3
    20 3
    4 of 10

    I'm playing my mind with analithycal functions, but without result so far.

    Have a tip?

    Thank you in advance!

    Published by: user817006 on January 23, 2009 06:15

    user817006 wrote:
    No, he should count on all ranks, how many separate departments are to this day. Like this:

    Well you shouldn't change your needs when someone is already working on it. ; P

    SQL> ed
    Wrote file afiedt.buf
    
      1  select deptno, sum(rn) over (partition by 1 order by empno) cnt
      2  from (
      3    select empno, deptno, decode(row_number() over (partition by deptno order by empno),1,1,0) rn
      4    from emp
      5    )
      6* order by empno
    SQL> /
    
        DEPTNO        CNT
    ---------- ----------
            20          1
            30          2
            30          2
            20          2
            30          2
            30          2
            10          3
            20          3
            10          3
            30          3
            20          3
            30          3
            20          3
            10          3
    
    14 rows selected.
    
    SQL>
    
  • a kind of cumulative number

    Hello

    I'm fighting to get a sort of running a table number, but I can't do it without a view... But maybe there is a better way to do it.

    The table is:

    ID     CAT_ID     NAME     FLAG
    1     2     AAA          null
    2     2     BBB          A
    3     2     CCC          A
    4     2     DDD          null
    5     4     AAA          null
    6     2     EEE          B
    7     2     FFF          A
    

    And I need to count the flag 'A' for CAT_ID = 2, the result should be like:

    ID     CAT_ID     NAME     FLAG     COUNT
    1     2     AAA          null          0
    2     2     BBB          A          1
    3     2     CCC          A          2
    4     2     DDD          null          2
    6     2     EEE          B          2
    7     2     FFF          A          3
    

    Please notify.

    Thank you!

    CASES plus number of race through Analytics, something like this:

    SELECT location_id, country_id, COUNT(CASE WHEN country_id='US' THEN 1 END) OVER (ORDER BY location_id)

    Sites

    ORDER BY 1

  • How to get essbase excel add in the display of the total cumulative number?

    Version 11.1.2.1

    When I connect firstly in my ASO application via the excel add-in, the first thing I see is a null value. My first dimension/column is 'period '. Period is marked as a dynamic calc and label only.

    When I drill down in the period I see obviously all rollup values. How can I get the excel to display the full cumulation (instead of having to drill down) when I connect firstly because I like to keep my options as ' delete missing values / zeros "checked.

    I see in Sample.Basic is 105522. I want something like that. I tried reloading the numbers and changed the properties without result.

    What is the logic behind this?

    If "Period" is marked as 'Label only' it will take the value of her first child, if the first child has a value of #Missing, then "Period" also will display a value of #Missing. If you want to 'Period' to show all the periods (as Sample.Basic does) then you need to take off the "Label" label only

  • Using SQL cumulative number

    Hi guys,.

    I have the following sql query:
    select trim(to_char(to_date(substr(assn.creationdate,
                                       0,
                                       instr(assn.creationdate, ':', 1, 3) - 1),
                                'YYYY/MM/DD-HH24:MI:SS') + 10 / 24,
                        'mm')) || ' - ' ||
           to_char(to_date(substr(assn.creationdate,
                                  0,
                                  instr(assn.creationdate, ':', 1, 3) - 1),
                           'YYYY/MM/DD-HH24:MI:SS') + 10 / 24,
                   'YYYY') as par_date,
           (case
             when prochis.stateoutreq = 't1Issued' then
              'A-Submit'
             when prochis.stateoutreq = 'LcsRejected' then
              'A-Return'
             when prochis.stateoutreq = 't3RevResp' then
              'A-Return'
             when prochis.stateoutreq = 'CcfReview' then
              'A-Return'
             when prochis.stateoutreq = 't3Validated' then
              'A-Return'
           end) as par_stage,
           count(case
                   when (prochis.processname = 't3_AWD_Awaiting_Cust_Response') then
                    1
                   when (prochis.processname = 't3_AWD_Send_PAR') then
                    1
                   when (prochis.processname = 't3_AWD_Send_PAR_PartB') then
                    1
                   when (prochis.processname = 't3_AWD_Await_PAR_B_Response') then
                    1
                 end) as par_stage_count
      from awdbt1m4.cmchrqit par
      left outer join ttcadminref@TCDWHS aref
        on par.lifecyclestate = aref.short
     inner join awdbt1m4.asgsig assn
        on assn.left = par.obid
     inner join awdbt1m4.prochist prochis
        on assn.right = prochis.obid
     where (case
             when prochis.stateoutreq = 't1Issued' then
              'A-Submit'
             when prochis.stateoutreq = 'LcsRejected' then
              'A-Return'
             when prochis.stateoutreq = 't3RevResp' then
              'A-Return'
             when prochis.stateoutreq = 'CcfReview' then
              'A-Return'
             when prochis.stateoutreq = 't3Validated' then
              'A-Return'
             when prochis.statein = 't3IssPartB' then
              'B-Submit'
             when prochis.stateoutreq = 't3RevPartB' then
              'B-Return'
             when prochis.stateoutreq = 't1FinRev' then
              'B-Return'
           end) is not null
       and prochis.stateoutreq in
           ('t1Issued', 'LcsRejected', 't3RevResp', 'CcfReview', 't3Validated')
       and prochis.lifecyclename = 'PAR Lifecycle'
     group by trim(to_char(to_date(substr(assn.creationdate,
                                          0,
                                          instr(assn.creationdate, ':', 1, 3) - 1),
                                   'YYYY/MM/DD-HH24:MI:SS') + 10 / 24,
                           'mm')) || ' - ' ||
              to_char(to_date(substr(assn.creationdate,
                                     0,
                                     instr(assn.creationdate, ':', 1, 3) - 1),
                              'YYYY/MM/DD-HH24:MI:SS') + 10 / 24,
                      'YYYY'),
              (case
                when prochis.stateoutreq = 't1Issued' then
                 'A-Submit'
                when prochis.stateoutreq = 'LcsRejected' then
                 'A-Return'
                when prochis.stateoutreq = 't3RevResp' then
                 'A-Return'
                when prochis.stateoutreq = 'CcfReview' then
                 'A-Return'
                when prochis.stateoutreq = 't3Validated' then
                 'A-Return'
              end)
     order by par_stage
    and I want to make a sum accumulated on the results returned by
     count(case
                   when (prochis.processname = 't3_AWD_Awaiting_Cust_Response') then
                    1
                   when (prochis.processname = 't3_AWD_Send_PAR') then
                    1
                   when (prochis.processname = 't3_AWD_Send_PAR_PartB') then
                    1
                   when (prochis.processname = 't3_AWD_Await_PAR_B_Response') then
                    1
                 end) as par_stage_count
    contained in the sql query.

    I tried many ways to do it, but with the help of County and the amount in the same query with a group clause is causing many questions... Any help is greatly appreciated.

    If I add the following section to the application after the statement of counting: over (partition by column) I - not a group expression error message.

    Thank you
    Rohan

    Published by: rbha4 on 11/03/2010 15:45

    Could you place everything in a view online and apply the analytical function in the outer query?

  • Accumulative separate accounts

    I was on it for two days. Someone could lead me in the right direction? Given the following data set:

    create table data_owner.test_data
    (
    item_number varchar2 (10 byte),
    Store_Number varchar2 (10 byte),
    Calendar_Year varchar2 (10 byte),
    Calendar_Week varchar2 (10 byte),
    whole units_sold
    )

    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111', ' 31 ', ' 2010', 51', 4)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111', ' 16 ', ' 2010', 51', 2)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111', ' 31 ', ' 2010', 52', 3)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111', ' 27 ', ' 2010', 52', 1).
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111 ', '16', ' 2011', 1', 3)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111 ', '27', ' 2011', 2', 5)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('1111 ', '20', ' 2011', 2', 4)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('2222', ' 27 ', ' 2010', 51', 3)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('2222', ' 16 ', ' 2010', 52', 2)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('2222', ' 20 ', ' 2010', 52', 1).
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('2222 ', '16', ' 2011', 1', 3)
    Insert into test_data (item_number, store_number, calendar_year, calendar_week, units_sold)
    values ('2222 ', '31', ' 2011', 2', 3)

    Select * from test_data

    item_number store_number calendar_year calendar_week units_sold
    1111 31 2010 51 4
    1111 16 2010 51 2
    1111 31 2010 52 3
    1111 27 2010 52 1
    1111 16 2011 1 3
    1111 27 2011 2 5
    1111 20 2011 2 4
    2222 27 2010 51 3
    2222 16 2010 52 2
    2222 20 2010 52 1
    2222 16 2011 1 3
    2222 31 2011 2 3

    My desired outcome is a sum of units sold and a separate cumulative store account numbers grouped by year and week point. that is to say:

    item_number calendar_year calendar_week store_count sum (units_sold)
    1111 2010 51 2 6
    1111 2010 52 3 4
    1111 2011 1 3 3
    1111 2011 2 4 9
    2222 2010 51 1 3
    2222 2010 52 3 3
    2222 2011 1 3 3
    2222 2011 2 4 3

    I can't get the number of store on the right. I tried various methods of the count (distinct store_number) on the analytical function (...), but nothing works. Thank you.

    Hello

    Interesting problem!

    When you use analytical functions, you cannot use ORDER BY and DISTINCT. Too bad; It would be of course convenient.

    The most general solution is to use aggregate instead of analytical functions functions and do a self-join to match each line (l ' table', for 'later' in the query below) with each line of earleir ('table' e below) for the same item:

    SELECT       l.item_number
    ,       l.calendar_year
    ,       l.calendar_week
    ,       COUNT (DISTINCT e.store_number)     AS store_count
    ,       SUM (l.units_sold)
         / COUNT (DISTINCT e.ROWID)          AS total_units_sold
    FROM       test_data   e
    JOIN       test_data   l      ON     e.item_number     = l.item_number
    AND                               e.calendar_year || LPAD (e.calendar_week, 2)
                                    <= l.calendar_year || LPAD (l.calendar_week, 2)
    GROUP BY  l.item_number
    ,       l.calendar_year
    ,       l.calendar_week
    ORDER BY  l.item_number
    ,       l.calendar_year
    ,       l.calendar_week
    ;
    

    You might think to store a DATE (say, the date that begins the week) instead of the week and the year. This would simplify this query and probably many others, too. I realize that could complicate other issues, but I think that you will have a net gain of fiond.

    Thanks for posting the CREATE TABLE and INSERT statements; This helps a lot!

    Published by: Frank Kulash, November 18, 2011 12:48

    This is an analytical solution. As you can see, it requires more code and more complicated code, but it can work better:

    WITH     got_r_num   AS
    (
         SELECT     item_number
         ,     calendar_year
         ,     calendar_week
         ,     units_sold
         ,     ROW_NUMBER () OVER ( PARTITION BY  item_number
                                   ,                    store_number
                             ORDER BY        calendar_year
                             ,                calendar_week
                           )      AS r_num
         FROM    test_data
    )
    SELECT DISTINCT
         item_number
    ,     calendar_year
    ,     calendar_week
    ,     COUNT ( CASE
                        WHEN  r_num = 1
                  THEN  1
                    END
               )             OVER ( PARTITION BY  item_number
                                      ORDER BY      calendar_year
                          ,          calendar_week
                                 )                    AS store_count
    ,       SUM (units_sold) OVER ( PARTITION BY  item_number
                                    ,             calendar_year
                          ,             calendar_week
                             )                         AS  total_units_sold
    FROM       got_r_num
    ORDER BY  item_number
    ,            calendar_year
    ,       calendar_week
    ;
    

    This approah will not work in all situations of windowing. It's not serious fo this work, but not if you want, for example, a number of separate stores for the past 6 weeks, so that the report covers more than 6 weeks.

  • Number of elements must be set to the logical level

    In the channel Business model, mapping, dimension > logic > > number of items at this logical level

    I came across two different versions of how to treat this

    First version - the OBE and the server admin guide, it says "the number does.
    no need to be exact, but the numbers of one logic level to the other, rates should be accurate."

    Second Version - a question asked about what defines the number level both as best practices

    To set the number of items at each level of a dimension, what number would you use?

    A. the number of columns in a logical table
    B. the number of levels in a dimension
    C. the number of dimensions in a business model
    D. the number of tables in a physical model
    E. the number of separate lines in the physical column

    It comes
    What is the rule to set the number of items at this level?

    If its been settled according to the rows in the table. What happens if the lines gets added every hour?

    Edited by: ZSAM June 8, 2011 07:06

    Edited by: ZSAM June 8, 2011 08:22

    The relationship between the levels, which is important according to me. BI Server will use this information to determine which source of aggregation to use. You must use the number of separate lines as the value.

    You can also right-click on the hieracny and "Levels of estimate" allows you to automatically fill in the numbers for you.

    Paul

  • C200 M2 LFF does not see the disks in the start menu after installing ESXi

    So in front of me, I have a brand new C200 M2 LFF with a single E5606 processor, 20 GB of RAM and a controller LSI Megaraid 9260 - 4i and 4 drives of 1 TB SAS. I put the disks in a RAID 5 array, I created a 10 GB virtual disk and properly installed ESXi on it twice, with a second virtual disk to be used as a data store.

    However, I can't get the thing to boot. It isn't even an option. The only storage in the boot menu option corresponds to the DVD player. If I look at the mass storage controller configuration, in fact, 0 and 4 SATA ports are "not installed" and port 5 has the DVD player.

    I tried fiddling with the settings of the BIOS without a bit of luck. Currently, the integrated controller is enabled and the SATA mode is set on improved (which seems to be the default, and what is recommended with Megaraid cards). It is a bundle (UCSC-DBUN-C200-102 by delivery, which seems to be a number of separate reference only), so I didn't have to assemble whatever it is and I guess that all the cables are connected at the factory. I opened the server, and I can say that all the cables look connected.

    Any suggestions? Any help would be greatly appreciated. If I have to open a case with the TAC, that's good, but seeing as I can't actually install the operating system there must be something stupid miss me.

    Disable the onboard Controller. This is software raid ICH10R.

    Reset. Then in the fixed CIMC/BIOS boot order and pint at the LSI.

    For the most recent ESXi 5.0, go to VMWare and search for ' ESXi 5.0 cumulative 2.

    Sent by Cisco Support technique iPhone App

  • How Thunderbird keep track of where it stores your messages?

    I am writing a program to isolate some of the messages to a message queue. Of course I can hardcode the path where messages are kept for the moment, but when the user changes this, my program will be lost.
    I looked in the registry and profile.ini file with no luck. Someone knows the answer? Thank you.

    The path to the messages in Thunderbird is random just for the reason why your having trouble. To make the programming of nontrivial.

    As you would have observed the profiles.ini contains a path the the root of the profile.

    In the mail profile is stores in profiles\imapmail for profiles\mail for pop or IMAP

    Subfolders exist for the server of that mail is, often with a tail number to separate multiple accounts on the same server, or multiple attempts to implement the same account.

    These files can contain new subfolder. According to structure internal folders in Thunderbird.

    If the user has specified a custom for an account folder location, this information is stored in the file prefs.js and all other preferences. The account that the setting is referenced numerically. If you establish preferences, which is the account number, before the reading of the preference for the location.

  • How to increase the level of Effort BY?

    Hello

    I am trying to restore a primary application of a number of separate projects of component LVFPGA LVFPGA.  Each of these smaller basic functions is running in their own SCTL in new the LVFPGA master file.  Small functions all meet them timing, but not the master app.

    I use about half of the chip so it seems to me that it should not be difficult to place and route.

    When my compilation fails because of time constraints, he says the following:

    WARNING: By: 62 - your design did not meet calendar.  Here are some suggestions to help you to keep to the timetable in your design.

    ...

    Increase the setting of the level of Effort BY to 'high '.

    Use the 'xplorer' Xilinx script to try special combinations of options known to produce very good results.

    See http://www.xilinx.com/ise/implementation/Xplorer.htm for more details.

    So my questions are:

    (1) how can I increase the level of Effort BY?  Has NEITHER provided a hook for setting this value and if so what is its current level / by default?

    (2) we access level user to the script 'xplorer '?  If so, where is this located and can OR recommend some parameters that are compatible with the SMU-5641R.

    Thank you

    The files in the folder of Xilinx are never overwritten or replaced, these default values are simply not used if you provide your own .opt files to the compilation sequence. For these two products, we provide custom files, I've already mentioned. These custom options are communicated to the server during each request compilation as it must have everything necessary to provide correct results regardless of compilation locally or remotely (or even on a remote compiling the server who has not installed the drivers from target).

    Insofar as you need exactly what settings level effort, which will be dependent on the design. I suggest you look at Xilinx documentation on their suggestions on how to set these options based on what kind of compile questions that you hit. In general, I would try them likely increases in the following (probably with compilation time) order:

    "" plan of access-Calendar - ol std' and ' normal - ol std ".

    'map - calendar - ol high' and ' "normal - ol std".

    "map - calendar - ol high' and ' by - ol high."

    [Or if you will just operate all night and don't care about compile time, you could jump to top/high... and work backwards if you want to use the minimum effort it takes actually.]

    If these don't work for you (or if you want an alternative solution), then you need to review your design and your code to see if you can improve the synchronization in the areas which are at the origin of chess.

    Side-note:

    Modifying the files in the directory of Xilinx does not apply to this situation. I do not know the behavior to change these files, but it would be easy to deduce by experimentation (i.e. edit the file locally, perform a remote generation, see if the changed options were used... If not, then restore the local file, the remote file instead, rebuild, etc.). But even once, it does not apply to these objectives and behavior will be verified based on file by a specific version of LabVIEW file, since it is an implementation detail that may change.

  • capture multiple and reading images

    Hi all

    I use a Guppy F031 Pro camera equipped with trigger mode in bulk.  Now I can leave the exposure of the device twice in the series after an external trigger (my previous post).  But I don't know where are the stored images and how to read the two outside pictures and store them in the hard disk.

    When I use IMAQdx get image vi to capture image and set as number mode with 2 buffer pads.

    Does this mean that I assigned two location in RAM for my image?  If so, how can I find their location?

    Best,

    Wen

    "When I use IMAQdx get image vi to capture image and set as number mode with 2 buffer pads.

    Does this mean that I assigned two location in RAM for my image?  If so, how can I find their location? »

    -To my knowledge, it is false.

    Buffer allocation:

    -There are two types of internal buffers and buffer of the user you want to set up and use.

    -internal buffer is that you can configure using IMAQdx configure acquisition and giving the required number of buffers you want to allocate.

    -the user buffer is a condigure you or create using IMAdx create and giving them different middle names, creating several buffers. (You must remove the user buffers when finished processing using IMAQdx has, otherwise it will fill the RAM memory.

    Number of buffer:

    -A number of buffer is a zero-based index that represents the cumulative number transferred image. For example, during an acquisition continues with three internal buffers, the number of buffers is updated as follows: 0, 1, 2, 3, 4, 5 and so on. Buffer 0 and 3 numbers correspond to the same internal buffer in the ring of the buffer. (From NI IMAQdx manual)

    -Which means you will need to give different buffers number each time adding 1 whenever you receive an image. and not a constant of 2.

    For your question:

    -Configure the acquisition with more than two buffers, start the acquisition.

    -Give the number of buffers to 0 and increment after successful image and send it to IMAQdx get image.

    -For each image, your user buffer is even currently, which means that it will overwrite the same. If you want them to be different, you can create several and use also.

  • Spectral histogram of adc output

    G ' Day all the

    I have a LabVIEW task that I'm confident should be dealt with before (several times). However, not for the life of find me a solution documented. It's displaying a range of possibilities of an ADC on a histogram channel (no, not the statistical flavor - the spectral version of science).

    I have a 8 k ADC front-end DAQ loop which (for reasons of this example) gives me the amplitude of incoming impulse (value between 0 and 8191). In this loop, I would a 'live' spectrum in real-time of the cumulative number of hits by way of the ADC.

    I can think of ways using an 8 k array and incrementing the bins manually but how to get the data in the table persistent in the loop... and actually display.

    If I have to invent my own wheel to solve this problem while it is OK, but I'm sure that like most of my brothers of coding, I'd rather use someone else

    See you soon
    Steve

    Look at this example of a histogram. Which is similar to what you need?

  • Rate counters/timers

    Hello

    I use the entrance of counter/timer on a map of 6040E for counting of events.

    I use CTR0 and have specified the clock 20 MHz as my source and connected my event at the door (PFI9). I has a finite number of impulses and I am configuration of the buffer using the DAmx Timing (example of clock) vi.

    My question concerns the entry of 'rate. ' Counter source is positioned at 20 MHz is not the rate? Can anyone advise as to how to choose a reasonable value and what effect it has.

    I usually use the rate for analog I/o buffers in order to fix the rate of buffer - I can't quite see its use in this case.

    Thank you

    I forgot to go to the part of rates, for counting of events, the rate is how many times buffering you your edge counter value.

    IE I count photons a PMT, I would like to see the cumulative number every 1ms so I plug the source on the PMT and run continious at 1 kHz, every second, I read 1000pts and plot.  I think that this is how the rate.  For measurements, the clock is implied, there is no price since the edges of ascnchronous determines the time to write to the buffer.

  • Help explain the flow meter VI

    After a lot of tinkering, I seem to have developed an effective VI for use with a type/pelton turbine flowmeter. The flow meter outputs a stream of pulses which

    can count on the counter of my 6501 line. Unfortunately this eureka moment happened somewhat by chance, and I'm hoping someone

    could be kind enough to explain step by step or in terms very simple for beginners (me) works of VI, thank you.

    Kind regards

    GER

    GER,

    Welcome to the Forums and LabVIEW.

    If you don't the have already made, please work through the tutorials online to get started with LabVIEW. The answers to some of the questions you may have are probably there.

    A brief description of your VI:

    1. the overall structure is a loop For. It works for the number of iterations that is connected to the Terminal in your case 5 N.

    2. the calendar of the loop is determined by the longest time required for any part of the code inside the loop execution. On the first iteration, the DAQ Assistant configures the counter and starts measurement. On all subsequent iterations, he reads everything simply an indictment. On these iterations, the 25 les 25 ms ms expect will dominate. This VI runs approximately 40 iterations per second (for 5 iterations).

    This means that the program will take place on 5 * 25 ms = 0.125 sec and then stops. If you run for more 1/8 of a second to help run it continuously button, STOP. Which is intended for certain types of troubleshooting only.

    3. the table of waveform and the flow rate meter only shows the last value of the five iterations. (This suggests also that you use run continuously)

    4. the registers at offset in this VI nothing do. The upper shift register calculates the cumulative number of the flow meter, but the result is never used. The underpass registry has nothing connected to the Terminal inside the loop on the left. It could be replaced by a terminal.

    Suggestions:

    1. in order to avoid using run continuously, replace the loop with a while for loop. Add a stop button on the front panel and connect it to the stop it real terminal in the loop. Move the graphic terminals of waveform and flow inside the loop.

    2 check your pulse to the algorithm of flow rate. The time for the count interval must be considered.  For example if the meter registers 25 pulse in 25 Member States, which represents 1 000 pulses per second. This isn't which will show your VI.

    3. see examples of code that uses counters.

    Lynn

  • help with SPA 3102 (question graphcal)

    HI guys here is my situation (I draw so it would be easier for future reference):

    I want to pick up A phone and dial the Ext 101 101, 102 for Ext 102 and so on.
    also, I want to put routed my call for location 2 location 1 for example transferring calls to 104.

    any help would be really appreciated even a starting point as for example the configuration of spa to route my call not NAT, so it can connect to the other.

    castro69 wrote:
    also, I want to put routed my call for location 2 location 1 for example transferring calls to 104.
    any help would be really appreciated even a starting point as for example the configuration of spa to route my call not NAT, so it can connect to the other.

    I guess that's an analog PBX, otherwise you wouldn't need the SPA3102 through the internet.

    For communications between the SPA3102, I would use direct ip call, using the external ip address and the sip port numbers.  Think that the SPA3102 is two separate cards inside the box where treat you everyone with its sip port number added to the external ip address common.

    I would setup port sip distinctive numbers on each of the baths to keep things straight.  You have a number of separate port for tabs of line 1 and line PSTN.  You will need to send these to the SPA3102 adapter port numbers in their respective routers or firewall of the router will reject incoming packets on the internetI would also convey the port range rtp for voice, flow packs.
    On each tab of the line 1 and RTC, you define NAT Mapping Enable: YES, not record, make call without Reg Yes, years call without Reg No. I put your external ip address on the Sip tab under EXT IP.  This will tell the SPA3102 to use this address in the sip signaling. I assume you are using static external ip addresses.   On each tab of the line 1 you would activate IP Dial Yes.

    The analog PBX is connected to the FXO port on one of the Spa.  You should check the voltage level hung up and won and then set the line parameter usage on the RTC of the SPA line tab to halfway between the two readings.  You can read the levels of tension on the PSTN line tab.  Calls to the PBX of the PSTN line tab will go through the voip to PSTN gateway.  I set up the catwalk with http authentication and configure a user name and password.

    Details are starting to become quite complicated.  I'd get running through steps.  Get a job step before moving on to the next step.

    The 1st step would be to get A phone call/receive calls to a PBX.  You can configure the line 1 for FXS phone attached A to use port location PSTN 2 as the proxy using http authentication, and you can then dial the extensions you want to call.  Location 1 SPA3102 will send a guest of the sip Protocol to the tab location 2 SPA3102 from pstn line and the SPA3102 will dial the number on the FXO port to the PBX.

    For calls coming from the other direction of a PBX to slot 2 SPA3102 the only place where you can connect a voip call is in the SPA3102 numbering plan.  If you want to call only phone that is easy, install you just dialers-messengers automatic telephone in the pstn-to-voip dial plan.

    I'm not clear about what you want to do with phone B I take is Extension 104.

    I like your designs.  Can save a lot of words.

Maybe you are looking for

  • How to back up your Photos?

    In the Photos, I 'files: Photos Albums 'Under' Albums I have all the pictures folders with subfolders and void / Albums When I import new photos, I see them in the last import folder and all folders. NOW WHAT? What is the best recommended how to save

  • The look of Skype (need help)

    Hello so, recently, my little brother updated its Skype and it looked like this my Skype is not like this and looks like the normal I would change my Skype at the same because I like the look of it. I already tried some updates and redownloading the

  • static output 6541

    I just want to know that we can use pxi 6541 for output 5V (static and dynamic). It seems that we can have of 1.8 V, 2.5 V and 3.3 V. But in NI MAX Control Panel, we have the possibility to 5V logic. Any help will be appreciated.

  • HP Deskjet F4480: How to get back my icon for HP Support?

    When I tried to uninstall Windows 10 (unsuccessfully), she erased the icons on my home screen, including that of HP that I used when I installed the cartridges. How can I get that back?

  • I can't send an e-mail by pressing the icon SEND

    I write an e-mail, press SEND, nothing happens.