calculate the average of the length of a day with stop start vi

Hello Forum members

I'm having a hard time with this one and I don't think I should be.

Background: I have a vi that runs on a schedule task windoze. The vi will start, search for a tool and take a single value of reading of 10 channels.

The vi will stop then. CAVEAT... The vi is not allowed (supposed to) to run continuously. I have to stop after each reading (this part of the process works very well) and anyway, this point is debatable and non-negotiable.

The vi will repeat this process over a period of 12 hours, BUT the number of readings, that it may necessarily not the same each period of 12 hours, due to several factors.

The 10 data points in reading are saved in a text file.

This process is repeated every 30 minutes. Now what I'm trying to do is take an average run of consecutive readings of each channel, so at the end of a period, I have an average of all readings gathered during playback 12 hours pewriod.

The vi I created not giving me the results I expect. I ran the numbers the good old fashion way (pencil and paper) and they do not match the results of vi.

-What seems as clear as mud?

Could someone please take a look and tell me where I have gone wrong?

Thank you

Ray

Dear reader

Thanks anyway, but I solved it myself.

Concerning

Tags: NI Software

Similar Questions

  • Calculate the length of the lines of text

    In a script, I'm inserting text which is a 4 line poem. Each line except the last ends with a hard return ('\n'). I would like to calculate the length (in inches or in another unit of length) of each individual line to find the longest line and adjust the left indent accordingly. Is it possible to get the length of a line of text in a script?

    Thank you!

    A return is \r

    \n is a soft return

    Take a look through the comments here

    http://InDesignSecrets.com/setting-poetry-flush-left-Center-on-longest-line.php

  • How to calculate the length of the video format (seconds)

    Hello

    I use the ActionScript 3.0 CookBook book and it shows how to calculate the length of a video (and also playing the video in progress) in seconds using the property at the time of the NetStream class.

    So, for example, the length of my video is 1070 seconds.

    But I want to be able to convert a format such as ' 00 (hours): 00 (mins): 00 (dry) ", '1070 seconds' how can I get this?

    Any help is appreciated!

    TA :)

    Kind regards
    M.

    Hi, thanks for the reply :) you have helped me understand the following code which I just found (and that seemed to work the way I needed it).

    Quote:

    If (_duration > 0 & _stream.time > 0)
    {
    _playbackTime.text = generateTime (_stream.time);
    }

    function generateTime(nCurrentTime:Number):String
    {
    var nMinutes:String = (Math.floor(nCurrentTime / 60)< 10="" "0"="" :="" "")="" +="" math.floor(ncurrenttime="">
    var nSeconds:String = (Math.floor (nCurrentTime % 60)< 10="" "0"="" :="" "")="" +="" math.floor(ncurrenttime="" %="">

    Result set
    var sResult:String = nMinutes + ":" + nSecondes;

    Return value
    return sResultat;
    }

  • around the world in 80 days has stopped working, said gameinst request was missing can anyone help

    around the world in 80 days has stopped working.   Telling me gameinst request failed, can anyone help.    Thank you

    Hi Paul.fishers5,

    Thanks for posting your question.

    I suggest completely uninstall Adobe and Java on the computer and then try to play the game.
    Download the latest version of Java using this link http://java.com/en/download/index.jsp

    Download Adobe flash player, use this link http://get.adobe.com/flashplayer/?promoid=BUIGP

    Let us know if that helps.

    Kind regards
    Clement Kumar.

    Microsoft Answers Support Engineer. Visit our Microsoft answers feedback Forum and let us know what you think.

  • Calculate the length of the median line of the polygon

    How to convert the polygon to the central axis to calculate its length?

    I assume that you are not after the length of the bounday of a polygon, but the length of a median line after its construction of a polygon?

    Oracle 11 g 2 has no such ability. He can do it in 12 c but no one knows what's next for this version, in space.

    I was contacted several times on the implementation of an algorithm of centerline for my Oracle Spatial to 4 Companion (SC4O) the software free. It is possible that this example of wikipedia shows:

    https://Commons.wikimedia.org/wiki/file:Medial_axis_example_2d.svg

    But I am not prepared to implement such an algorithm without actuals) 1 and 2) some kind of inducement.

    concerning
    Simon

  • The process of Windows Service Host: stop start update failure

    Running 32-bit Vista Home Premium SP2

    Description
    A Windows Update was not installing correctly. Send the following information to Microsoft can help improve the software.

    Signature of the problem
    Problem event name: WindowsUpdateFailure
    ClientVersion: 7.4.7600.226
    Win32HResult: 800f0816
    UpdateId: 4585715C-92BD-4D61-9F64-88AD70A7936D
    Scenario: install
    SourceId: 101
    Environment: unmanaged
    The system version: 6.0.6002.2.2.0.768.3
    Locale ID: 2057

    Additional information about the problem
    Bucket ID: 1563453098

    Searched for fix and it could not find a. When I put on, I must go through a restoration of the system to an earlier point. At this point, the error says "a patch has stopped windows to start successfully. I have not run any firewall / anti virus other than the defender and Security Essentials.

    Applications, (Norton and McAfee) are known to not uninstall (or upgraded) themselves.

    1. download the Norton Removal Tool, save it to your desktop: ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    2. close all open applications (that is, anything with an icon on the taskbar).

    3. click right on the file saved in #1 above, and then select run as administrator to run the utility. DO TAP not your keyboard until the race ends, then restart.

    4. open Internet Explorer (only) to http://support.microsoft.com/kb/923737 & run the difficulty.

    5. open Internet Explorer (only) to http://support.microsoft.com/kb/971058 & run that set it by DEFAULT and modes and AGGRESSIVE. [1]

    6. restart a last time & test.

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not the list of installed updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • The last works FP wrong with stop

    Bug #4109904 - the last works FP wrong with gotoAndPlay

    Stop do not work! He broke almost all the apps and games of swf. Samples and attached to the ticket, etc.

    Hello

    This problem is fixed in our latest beta FP who is alive today.

    Please check.

    Thank you

  • calculate the length of stay in each Department

    Create table flow_tbl
    (order_id number
    , from_dep varchar2(100)
    , to_department varchar2(100)
    , date_sent date);
    

    insert into flow_tbl
    values (234, 'store', 'lab', '01-jan-14');
    
    insert into flow_tbl
    values (234, 'lab', 'QC', '02-jan-14');
    
    insert into flow_tbl
    values (234, 'QC', 'front desk', '02-jan-14');
    
    insert into flow_tbl
    values (235, 'store', 'front desk', '02-jan-14');
    
    insert into flow_tbl
    values (236, 'store', 'QC', '03-jan-14');
    
    insert into flow_tbl
    values (236, 'QC', 'front desk', '05-jan-14');
    
    commit;
    
    
    
    
    
    
    
    
    
    
    
    

    I have above data for an order when it has been sent from one Department to the other.

    I would like to recover the time during which an order has been in a Department before a transfer to another Department.

    For example, order 234 is since laboratory Department time = January 2, 14 - 1 January 14

    Can someone help me please on how I can retrieve the duration for each order by Department?

    Thank you

    Diana

    Looks like, you probably want to then:

    Select order_id,

    from_dep,

    to_department,

    date_sent - lag (date_sent) lifetime (order_id date_sent order partition),

    date_sent

    of flow_tbl

    order by order_id

    date_sent

    But I expect there to be a '1' for the QC online store?

  • I got the Blue Screen Of Death with Stop: 0 x 00000024 (5898 0x86D4, 0xC0000102, 0 x 00190203, 0 x 00000000)

    Original title: Help, I got the blue screen of death!

    Can someone help me please? Whenever I turn on my computer, it goes to the BSOD. I tried the last settings that worked, but he went to the BSOD too! In addition, safe mode it won't work goes to the BSOD as well. Nothing works. I have to go to a computer store to fix it, or is - it possible to fix it at home? Please help immediately!

    The BSOD I get says:

    A problem has been detected and windows has shut down to prevent damage to your computer.
    If this is the first time you've seen this stop error screen, restart your computer. If this screen appears again, follow these steps: disable or uninstall all utility defragmentation or anti-virus disk backup,. Check the configuration of your hard drive and check the updated drivers. Run CHKDSK /f to check for hard drive corruption, and then restart your computer. Stop: 0 x 00000024 (5898 0x86D4, 0xC0000102, 0 x 00190203, 0 x 00000000)

    Hi TheCookeNinja,

    I suggest you run the check disk (chkdsk) of the Recovery Console & check if you are able to boot to the desktop correctly.

    Step 1: To start the Recovery Console, you can follow this link.

     

    To start the computer and use the Recovery Console

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/recovery_console_overview.mspx?mfr=true

    Step 2: At the Recovery Console prompt, type the following command and then press ENTER:

    CHKDSK [/ p]: [/ r]

    Note: At first, try to run chkdsk/p & check if it helps. Later, you can run chkdsk/r.

    Reference:

     

    How to install and use the Recovery Console in Windows XP

    http://support.Microsoft.com/kb/307654

    I hope this helps.

  • How to find the length of a certain number in labview?

    Hi all

    I am Pramod in Bangalore.

    I need to know is all their VI which calculates the length of a number.

    For example, for the number 1000, length is 4. Same I need is calculated automatically in VI, instead of manually.

    Kind regards

    Pramod M G

    If the number is in a control or the indicator, you can do it like this:

  • Get the length and width of a rectangle

    I use sdo_sam.tiiled_bins in rectangles of bursting into different sections. I need to divide the rectangle along the x axis depending on if there is longer or wider. I checked the documentation and I couldn't find a way to get the length and width of a rectangle encompassing minimum. Is there any built-in feature to get the length and width of a rectangle or do I have to create my own? Database is 11 GR 2.

    Thank you
    Rob

    Rob,

    You can use SDO_GEOM. SDO_MIN_MBR_ORDINATE and SDO_GEOM. SDO_MAX_MBR_ORDINATE to calculate the length and width of a mbr.

    References:

    [SDO_GEOM. SDO_MIN_MBR_ORDINATE | http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_objgeom.htm#i866250]

    [SDO_GEOM. SDO_MAX_MBR_ORDINATE | http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_objgeom.htm#i866249]

    Kind regards
    Noel

  • find the length of the string

    Hi all

    I have a srting that contains two or more channels as for instance, it's my channel (think of this total string as one string) "Bronson, Ms. Jamie", "elder, Ms. Francis '.
    Now I want to calculate the length of the string of replacement of commas and apostrophes with null.

    Can someone pls help me with this?

    Thank you
    SQL>
      1  with t as (
      2   select '''Bronson, Ms. Jamie'',''Elder, Mrs. Francis''' as mystring
      3  from dual)
      4  select * from t;
    
    MYSTRING
    ------------------------------------------
    'Bronson, Ms. Jamie','Elder, Mrs. Francis'  
    
    SQL>
      1  with t as (
      2   select '''Bronson, Ms. Jamie'',''Elder, Mrs. Francis''' as mystring
      3  from dual)
      4  select replace(replace(mystring, ',', null), '''', null) from t;
    
    REPLACE(REPLACE(MYSTRING,',',NULL),
    -----------------------------------
    Bronson Ms. JamieElder Mrs. Francis
    
    SQL> l
      1  with t as (
      2   select '''Bronson, Ms. Jamie'',''Elder, Mrs. Francis''' as mystring
      3  from dual)
      4  select length(replace(replace(mystring, ',', null), '''', null)) as string_len from t;
    
    STRING_LEN
    ----------
            35  
    
  • How to find the length of curves?

    Help me please!
    I need to find a length of curves in clip placed on stage. It is not created by a script drawing. At least, I need to find our association to the properties of the points and controllers of curves in order to calculate the length. It is even beter than just length.

    In other words, it there is no way to access the properties by using the functions of AS3 and even layout of the Flash editor? I think it's a way to work in future versions of AS and flash.

    Thanks for the replies.

  • How can I calculate the total time in java?

    Hello!

    I need to calculate the total time!

    For example I start time:
    Format formatter1;
    Date date1 = new Date();
    formatter1 = new SimpleDateFormat("hh:mm:ss");
    Dim startTime = formatter1.format (date1);
    startTime = "14:20:40.

    And I have finishing time:
    Format formatter2;
    Date2 date = new Date();
    formatter2 = new SimpleDateFormat("hh:mm:ss");
    String finishTime = formatter2.format (date2);
    finishTime = '08:30:55;



    Also, having calculated manually, I get the total time: '18:10:15.

    How can I calculate the total time in java? (Using formatter1 and formatter2 I guess)

    What I need is to print 'total 18:10:15 '.

    Thank you!

    800512 wrote:
    I did the following, but I think something's wrong here:

    I've defined before: Date date1 = new Date(); Date2 date = new Date();
    And it should be exactly 5 seconds between them.

    I found the delta between date1 and date2:

    Format formatter = new SimpleDateFormat("HH:mm:ss");
    timeInMilliFromStart long = date1.getTime () - date2.getTime ();
    Date date3 = new Date (timeInMilliFromStart);
    String timeInSecFromStart = formatter.format (date3);

    and I still get
    timeInSecFromStart = 02:00:05

    But it should be exactly 00:00:05.

    What is a problem?

    Because, as I said, a Date to measure a moment in time, not a period. So when you have 5000 ms, and you that transform a Date, this means that 5 seconds after the time, which equals 00:00:05.000 01/01/1970 GMT.

    As I said, if you are not currently in GMT, then you must set the DateFormat GMT TZ. Right now, it's to show you the time in your TZ. If you have included the date in your SimpleDateFormat, you would see the 01/01/1970 or 31/12/1969, function that TZ you find.

    Bottom line: you try to use these classes in a sense they are not intended for, and while you can get the results you want for a limited set of entries if you understand how these classes and how to work with it, it is a fragile approach and comes with all sorts of warnings warning.

  • Calculate the number of days between two dates

    Hello

    Can someone help please change my formcalc script to calculate the number of working days between two date fields.  My script currently calculates the total number of days between two dates, including the weekends which must be excluded from the total.

    If

    (HasValue (Start_Date1) & HasValue (End_Date1)) then

    $

    = Date2Num (End_Date1, "YYYY-MM-DD" "en_IE") - Date2Num (Start_Date1, "YYYY-MM-DD" "en_IE") + 1

    on the other

    ""

    endif

    Any help will be most appreciated.

    Thank you.

    Check...

    (1) you said that you put the script on the event «days1» calculate My sample imitates the variable names used in the original message, "Start_Date1" and "End_Date1". If the names of variables for the start and end dates are different, you will need to modify the script to account for these names.

    (2) the Date2Num functions in the calculation of the "totalDays" use the date format "YYYY-MM-DD". If your date habits differ from "YYYY-MM-DD" FormCalc will complain.

    Steve

Maybe you are looking for

  • backup iPhone contacts?

    Hello I have an iPhone 4 with OS 7.1.2 and want to restore the factory settings. The only thing that I need to backup my contacts are. I've never used iCloud. Can I temporarily save my contacts on iCloud and then download it again? If so, please can

  • How can I turn off animations tab?

    I use FF 5.0 on WinXP SP3. When I select to 'Open the link in a new tab', new slides tab in sight, much like windows animations that I turned off. How can I get the old behavior of the back of the tab appearing simply, without the animations and cpu

  • Win8 to Satellite M840-B1T display driver need

    Hello WIN8 installed on a laptopneed drivers for video (OpenGL)The site of Toshiba drivers are notin the compatibility list, this laptop is. Pls help

  • Pavilion AL033TX: Extend the flag AL033TX memory - how?

    I find not in the copy of the documentation that comes with my new PC anything on how to open the PC case and how to develop memory. Accofding spec, it consists of 8 GB 2133-DDR4 SDRAM (1 x 8 GB).  I would like to add another 8 GB of memory.  I found

  • Satellite A100-1011E - AV button does not work

    Hello world I'm new here but I have an urgent problem. I hope that you guys can tell me what to do. I have this laptop SATELLITE A100-1011E model. My AV button which located on the left side of the keyboard does not work. I'm sure that it works alway