08-07-2015 07:50 AM
Aug 7
Group:
I am having difficulty trying to obtain a cumulative addition action.
I am trying to calculate the cumulative lethality of a heat process using NI-9213 thermocouple module and Labview 2014. The calculation consists of the temperature variable (x), reference temperature (r), and z-value (z) and the elasped time (t) between temperature logs. The formula sits inside a 'formula node'.
I can obtain the first lethality reading, but the 'addition' part does not work.
I've included a snippet of my code and would appreciate any help.
thanks
tom
08-07-2015 08:38 AM
You've got broken wires at the beginning of your snippet. So it won't run to begin with.
Beyond that, I assume you are talking about the 2nd For Loop inside the larger For Loop.
I'm not exactly sure what you mean by "cumulative lethality", but if I were you, I'd sit down, think about how you would calculate by hand writing it down on a piece of paper. Write it out like pseudo code, where you loop, what values carry from one loop iteration to the next.
Once you have that, it should be clearer as to how to write the LabVIEW code.
08-07-2015 10:54 AM
Aug 7
Group:
let me try to explain what I'm trying to accomplish.
After taking a temperature measure from 1 to 32 thermocouples, we calculate the lethality value associated with each temp.
This is called the 'current lethality'. At the next log of data, I want to add the new lethality values to the old lethality values.
in the end the cumulative lethality = (initial lethality + next lethality, + next lethality and so on until the test is over.
I can do the initial lethality, but the cumulative part leaves me stumped.
any help will be appreciated.
best regards
tom
08-07-2015 11:42 AM
08-07-2015 12:11 PM
@TomR2800 wrote:
At the next log of data, I want to add the new lethality values to the old lethality values.
in the end the cumulative lethality = (initial lethality + next lethality, + next lethality and so on until the test is over.
I can do the initial lethality, but the cumulative part leaves me stumped.
Keep the total in a shift register. Then you just add your current lethality to your total lethality to get your new total lethality.
08-07-2015 02:38 PM
Aug 7
Dennis:
that's why i'm asking for help.