Timer counter to calculate the amount of liquid dosage

I have a simple program of command VICI pump more interface series.

The problem for me is that I need to see the amount of liquid dosed. I based it on 'elapsed time' express vi.

But unfortunately it works the way I need. When I press the start of pump, it starts counting time and in a result of the liquid volume. When I press stop volume stops, but when I press Start pump once again as he continues the volume not the moment I stopped, but given the time elapsed since the first departure.

I know that it is because the elapsed time is still running. I couldn't find a way to break it.

Is there a way around it?

I'm using LabView 8.6.

Sergey,

When you press Stop, the VI stops running. Are your referring to set up the Run on False switch?

I put the volume (ml Injected?) on a register to shift and add the amount distributed to each iteration.  The calculation would be based time yet incremental time rather than total elapsed time.

I don't think there is a direct way to interrupt the past Time.vi. You can store the difference between time and elapsed time in a shift register when you enter the mode pause and then use this difference as the new time target when you restart.

Lynn

Tags: NI Software

Similar Questions

  • To calculate the amount on the basis of the date of

    Hello

    We must consider the functionality of oracle when it sees in 365 days a year. (for leap years 366 days)

    calendar year of 365 days. calendar year of 12 months. Months will track the number of calendar days in the month. For example the Feb has 28 days and Oct. has 31 days.

    Example:

    For the period from 27/06/12 to 20/08/12

    Annual amount of $3214.

    Calculation

    $3214 / 12 months = $267,83 per month

    For June, $267,83 / 30 days in a month = $8.93 daily rate

    6/27-6/30 is 4 days of service.  x 4 = $35,72 $8.93

    7/1-7/31 is considered to be a full month. = $267,83

    For August, 8/1 /-8/20 is considered to be 20 days. Per day = 267.83 / 31 = 8.64

    20 days = $172.79

    TOTAL = $476,34

    Please help me on how to do the following calculations.

    Concerning

    Suresh

    Another solution, works better than the previous:

    with the data as

    (

    Select to_date (June 27, 2013 ',' DD/MM/YYYY ') from_dt, to_date (August 20, 2013 ',' DD/MM/YYYY ') to_dt, amt double 3214

    )

    Select sum (DM)

    de)

    Select from_dt, to_dt, start_dt, last_dt,

    (last_dt - start_dt + 1) *--> multiply applicable days of the month at the daily amount, calculated below

    Sum)

    round)

    (amt/12) /--> calculate a monthly amount

    TO_CHAR)

    LAST_DAY (curr_dt)

    , 'DD '.

    )--> Find last day of the month and divide the monthly amount with the last day and calculate the daily amount

    2

    )--> Around the daily amount to 2 decimal places

    ) on sm--> sum the amount daily (partition to_char (curr_dt, 'MM'))

    de)

    Select from_dt, to_dt, TN,

    less (add_months (from_dt, level - 1), to_dt) curr_dt,.

    decode (level 1, less (add_months (from_dt, level - 1), to_dt), trunc (less (add_months (from_dt, level - 1), to_dt), 'MM')) start_dt;

    less (last_day (add_months (from_Dt, level - 1)), to_dt) last_dt

    from the data

    connect by level<= months_between(trunc(to_dt,="" 'mm'),="" trunc(from_dt,="" 'mm'))="" +="">

    )

    );

    SUM (DM)

    ----------------------

    476.36

    This avoids looping of data for all of the Dates if opposed to a loop for each month, which increases its performance. See plans to explain to the two queries:

    explain plan for

    with the data as

    (

    Select to_date (June 27, 2013 ',' DD/MM/YYYY ') from_dt, to_date (August 20, 2013 ',' DD/MM/YYYY ') to_dt, amt double 3214

    ),

    div_data as

    (

    Select from_dt, to_dt, annual_amount from the amt Tower (amt/12, 2) monthly_amount

    from the data

    )

    Select sum (per_day_amt)

    de)

    Select to_char (level - 1, 'Lun' + from_dt) curr_dt,.

    sum (round (monthly_amount/to_number (substr (to_char (last_day (level - 1 + from_dt), 'DDMMYYYY'), 1, 2)), 2)) per_day_amt

    of div_data

    connect by level<= (to_dt="" -="" from_dt)="" +="">

    To_char Group (level - 1, 'Lun' + from_dt)

    );

    Hash value of plan: 1042012692

    ----------------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                        | Lines | Bytes | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                             |     1.    13.     5 (20) | 00:00:01 |

    |   1.  TRANSFORMATION OF THE TEMPORARY TABLE.                             |       |       |            |          |

    |   2.   LOAD SELECT ACE |                             |       |       |            |          |

    |   3.    QUICK DOUBLE |                             |     1.       |     2 (0) | 00:00:01 |

    |   4.   GLOBAL TRI |                             |     1.    13.            |          |

    |   5.    VIEW                          |                             |     1.    13.     3 (34) | 00:00:01 |

    |   6.     HASH GROUP BY.                             |     1.    16.     3 (34) | 00:00:01 |

    |*  7 |      CONNECT TO WITHOUT FILTERING.                             |       |       |            |          |

    |   8.       COUNT                      |                             |       |       |            |          |

    |   9.        VIEW                      |                             |     1.    16.     2 (0) | 00:00:01 |

    |  10.         TABLE ACCESS FULL | SYS_TEMP_0FD9D86CF_5F8521E2 |     1.    44.     2 (0) | 00:00:01 |

    ----------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    7 filter (LEVEL<>

    explain plan for

    with the data as

    (

    Select to_date (June 27, 2013 ',' DD/MM/YYYY ') from_dt, to_date (August 20, 2013 ',' DD/MM/YYYY ') to_dt, amt double 3214

    )

    Select sum (DM)

    de)

    Select from_dt, to_dt, start_dt, last_dt,

    (last_dt-start_dt + 1) * sum (round ((amt/12)/to_char (last_day (curr_dt), 'JJ') 2)), in the sm (partition to_char (curr_dt, 'MM'))

    de)

    Select from_dt, to_dt, TN,

    less (add_months (from_dt, level - 1), to_dt) curr_dt,.

    decode (level 1, less (add_months (from_dt, level - 1), to_dt), trunc (less (add_months (from_dt, level - 1), to_dt), 'MM')) start_dt;

    less (last_day (add_months (from_Dt, level - 1)), to_dt) last_dt

    from the data

    connect by level<= months_between(trunc(to_dt,="" 'mm'),="" trunc(from_dt,="" 'mm'))="" +="">

    )

    );

    Hash value of plan: 1669308594

    -----------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    -----------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |      |     1.    13.     3 (34) | 00:00:01 |

    |   1.  GLOBAL TRI |      |     1.    13.            |          |

    |   2.   VIEW                           |      |     1.    13.     3 (34) | 00:00:01 |

    |   3.    KIND OF WINDOW.      |     1.    30.     3 (34) | 00:00:01 |

    |   4.     VIEW                         |      |     1.    30.     2 (0) | 00:00:01 |

    |*  5 |      CONNECT TO WITHOUT FILTERING.      |       |       |            |          |

    |   6.       QUICK DOUBLE |      |     1.       |     2 (0) | 00:00:01 |

    -----------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    5 filter (LEVEL<>

    Post edited by: PurveshK
    Updated with explanation.

  • Calculate the amount in an entity does not contribute to the parent


    Hello

    I'll try to explain my problem.

    I need to put in a base entity (E01) the opposite of the value stored in another entity (E02) for the same account (A01) and PKI (PKI no), but for a different value of custom3;
    the expresison used is the following:

    Void calculate)

    ...

    If HS. Entity.Member = E01 then

    HS. Exp ' an A01 #.» I have #[ICP no]. C3 C3 #02 HS =. GetCell ("a #A01.") I have #[ICP no]. E #E02. C3 C3 #01") *-1.

    end if

    ...

    End Sub

    The rule works for E01 entity, but the problem is that when the consolidation runs, the amount so calculated in E01 the sum is not in the parent company of E01.

    Thanks in advance

    Andrea

    Hello Andrea,

    You may need to replace:

    If HS. Entity.Member = E01 then

    with

    If HS. Entity.Member = E01 and HS. Value.Member = "" then

    Kind regards

    Thanos

  • timer counts down to the format hours: minutes: seconds: milliseconds

    Nice day

    Has had a problem with this kind of format treatment.

    And I want the milliseconds in 2 digits only.

    Any help is greatly appreciated.

    Here is my code:

    intervalID = setInterval(this,"timerFunction",1);

    function timerFunction() {}

    var msec:Number = getTimer();

    if (msec < = 0) {}

    play();

    return;

    }

    var sec: Number = Math.floor(msec / 1000);

    var min:Number = Math.floor(sec / 60);

    var time: Number = Math.floor(min / 60);

    if(sec<10) {}

    secStr = "0" + String (dry);

    } else {}

    s = secStr;

    }

    if(min<10) {}

    minStr = "0" + String (min);

    } else {}

    MINSTR = min;

    }

    if(hour<10) {}

    hourStr = "0" + String (hour);

    } else {}

    hourStr = time;

    }

    //trace ("min:" + min);

    //trace ("sec:"+ dry ");

    //trace ("ms:"+ msec ");

    _root.timerText = hourStr + ': ' + MINSTR + ":" + secStr + ":" + msec;

    }

    Display the result:

    00:00:01:1012

    00:00:02:2048

    You will not contravene all rules (don't know too many except those to be polite, etc.), but you neglected to say what to look for.  I finally found what I think you're talking about and what is displayed it is meaningless.  I think it's just a Visual prop because it seems never to go beyond 20 - something.  And that the way in which the time end up like the exact values, it is certainly rigged.

    As I said already 1000 msec = 1 sec, and you can get up to 99 with two digits, then you should think about what you want to do.

  • How can I calculate the amount of download and upload traffic within a single session?

    Hi, I would like to calculate how much the traffic of data (in bytes) that I use a session (time).
    Mind you, I speak not of connection speed.
    I guess I have sum download traffic to forward traffic, but I don't know where I can find it in my Firefox or my OS, and Linux.
    Can you help me?

    This is due to the use of a provider with a download bandwidth limits?

    There is an Extension Point called 'Net use'
    https://addons.Mozilla.org/firefox/addon/NET-usage-item/
    http://netusage.iau5.com/

  • Need to create a derived metric to calculate the amount of memory in GB

    Hi team,

    We would like to know how we can create a Derived metric to determine the usage of the memory of a specific host in the UK, I have a host who, as 80 GB memory and I need to create an alert when usage exceeds 40 GB...

    I saw the Option for the used memory capacity but it shows in Mo... How to convert the same into GB

    Concerning

    Sriram S

    You need not create a metric derived to do what you want.  Who would try too hard.

    Memory is usually stored in Foglight in megabytes.

    Just write the rule to create the alert when it exceeds (40 * 1024) MB.

  • calculate the amount of nodes in the XMLTYPE column

    I'm in ORACLE 10 g 10.2.0.4.0

    There is a table BOOK)
    ID NUMBER (10.0).
    XML_COLUMN XMLTYPE)

    XML_COLUMN looks like

    < Book bookCode = Classtest "ae1" = "0" title = "MasteringChemistry for 1st Averill/Eldredge" >
    < description / >
    < sectionTierLabels >
    < sectionTier label = "Left" >
    < sectionTier label = "Chapter1" >
    < sectionTier label = "Chapter 2" >
    .
    .
    .
    < sectionTier label = "Section" / >
    < / sectionTier >
    < / sectionTier >
    < / sectionTierLabels >
    < / book >

    Different records has a different number of chapters.

    I should get a result like

    Label sectionTier BOOKID
    1234 1 part
    1234 2 Chapter 1
    1234 3 Chapter 2
    1234 section 4
    1111 1 part
    1111 2 Chapter 1
    1111 3 Chapter 2
    4 1111 Chapter 3
    1111 section 5

    No idea how to do it?

    Thank you
    Julia

    Published by: 795070 on Sep 17, 2010 11:33

    Published by: 795070 on Sep 17, 2010 11:49

    Published by: 795070 on Sep 17, 2010 12:08

    Hello

    Strange structure for your XML data, are really nested elements sectionTier or is it a mistake?
    If the first case, try the following:

    SELECT b.bookid, x.*
    FROM book b,
         XMLTable(
          '/book/sectionTierLabels//sectionTier'
          passing b.xml_column
          columns
           sectionTier for ordinality,
           label       varchar2(30) path '@label'
         ) x
    ;
    
  • How do I know the amount of data to be persisted?

    Hi all

    I am building an application that also has a Jabber client. I want to keep the history of cats, but I don't know how much data persists.

    Is there a guide on how to calculate the amount of data to be persisted?

    I'm working with JDE Plugin on Eclipse 3.4 4.5, develop for "BOLD" and curve.

    Thank you

    -fr4gus

    You're not really serialization or deserialization anything. Simply read the lines of the file in your data structure and come back when you want to write again outside the disk.

  • How to calculate the time to SELECT

    I want to know how to calculate the time taken by the SELECT query.

    For example: I run a select statement in TOAD (oracle version 9i) who takes 40 seconds to run, but in the output window, it displays few records. It says "list 1 of 500 records, more records exist". This table has total 20 million records.

    Now my question is: have you my SELECT query took 40 seconds? or it took 40 seconds to SELECT 500 records.

    If it took 40 seconds to SELECT 500 records then how to calculate the total amount?

    Any help would be much appreciated.

    To avoid the exit which is probably not really need you can make

    begin
      for c in (select * from xy /*your query */)
      loop
        null;
      end loop;
    end;
    /
    

    This gives an estimate of the time to recover all the lines.

  • How to calculate the difference between two times by the NUMBERS

    I'm so bothered by the fact that I can't understand that.

    Cell B2 - 08:00

    Cell C2 - 10:50

    (How can cell D2 - I get this cell to calculate the difference and say 02:50?)

    I know it's probably one of the most basic operations, but for the life of me I can't understand it. The cells B2 and C2 are formatted for a 24-hour clock. But if I tell the system to just subtract the two, I get "0,118. Everything I find on the forum search goes beyond what I need. Can someone help me?

    Thank you

    Hi sapirs,

    Departure and arrival of the cells are in Date and time with Date format: no and time: 24-hour clock.

    Formula in D2 (fill down)

    = C2−B2

    The results become a duration format, but under automatic (numbers automatically worth this format)

    If you wish, you can change the cells of lasting results.

    What Data Format have your result cells?

    Kind regards

    Ian.

  • How can I change the amount of time before a call to voicemail

    How can I change the amount of time before a call to voicemail?

    -alex-

    You will need to contact your carrier and see if they can change. There is no setting on the phone, only the owner can modify it, if they can. Not all carriers cannot change, and even if they can, it's a very short period. This has to do with the configuration of the call. At least you know that it's all the time and not the number of ringtones.

  • How to calculate the execution time of a SCTL in FPGA VI?

    Hello

    Can someone guide me that how to calculate the execution time of a SCTL for an iteration in the FPGA VI?

    Thank you and best regards,

    Rashid

    Hello r,.

    A SCTL will always run in a beat the clock it has been linked to.  So, if you use a 40 MHz clock, this loop will run in 25 ns.  If the code cannot complete in that, or if it requires two graduations of the watch to do the calculation, your code does not compile, then you have the guarantee that this will always be how long it takes this piece of code to run.

  • Added a counter which keeps the total number of times where a loop has run, even if LabVIEW has been restarted.

    Hi all

    I am writing a VI to measure the data and insert into a database. The measures are controlled by a loop that runs once per minute. I want to give a unique to each measure identification number and store it too much in the database.

    To do this, I want to add a counter to this loop so that I can count the number of times that the loop is executed in total. It is, even if the VI, LabVIEW or even e PC is restarted, I want the counter to track the number of executions. If say the Edeka runs twice and then the VI is stopped and restarted, I want the number following on the counter to be three.

    Does anyone have an idea on how to do it? I'm gratefule for any help!

    Clara

    A suggestion. Can you write the last counter value in a txt file and read it all by running again the vi?

  • How to calculate the execution time of a loop?

    Hello

    Can someone guide me that how to calculate the execution time of a loop to iterate?

    Thank you and best regards,

    Rashid

    I hope I have your question! See attached screenshot

  • calculate the time in seconds, the day of the year and year

    I have a data file where they record three columns, the seconds elapsed since midnight, day of the year and the year.  I am creating a timestamp of LabVIEW from these three numbers.  Of seconds elapsed since midnight, I can create seconds, minutes and hours.  If I feed in a cluster of time with the day of the year and the year, the timestamp of output is 0.  Does not work.  Although an input of the day of the year element, the Date and time with seconds function apparently requires day for months and months to work.

    The only solution I can imagine at this stage is to calculate the month and the day of the day of the year, which would imply a choice of the month table and a check of the leap year.

    Smart solutions, I'm missing?

    DaveT

    Dave,

    I found a Julian Georgian so far.

Maybe you are looking for

  • Password files differ between versions of Firefox?

    The 'profiles' page - where Firefox stores your bookmarks, passwords and other user data (https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data) seems to give different information (without specifying what it does) according to

  • How to identify a person by a photograph?

    As above

  • home page will not be displayed

    I downloaded firefox 12 now, it will not be displayed when I try to open that a page with lots of info but no home page

  • Import a CA certificate file created with OpenSSL

    I am trying to import a CA file, I created with the CA.sh of OpenSSL utility. Firefox does not see as valid well: when I try and import the cacert.pem I get the error "is not a certificate authority certificate, so it cannot be imported into the cert

  • Vista: problem downloading SP2

    whenever I'm trying to download SP2, it shows that it's almost over and then told me that there is a problem and it cannot end. I tried every hour, and it makes no difference. Been trying for at least a year.