Get every 10 sec a int.value and need to take the sum of the last 18 values

Hi,
i get every 10 sec a int.value and need to take the sum of the last 18 values (3 minutes).
the programm should work permanently.
I tried with a 1d-array but didn´t get a result. Could anyone help me?
Best regards
kasche

Use the example in the posted link, then add another shift register for your sum of all elements. Dont add all the elements every time, add them to a running total when they come in. You will need to evaluate how big this number is going to get, however, and decide if you should use an I64 for your running total of all elements. Even this will overflow eventually. 
So your code would look like that posted by GerdW in the above link, then add a shift register with a starting value of 0. Then add your input value to the value comming from this shift register and send the output to the shift register's output terminal. This creates your running total of all values. The code by GerdW provides your "last 18 elements" total in a very efficient manner, just change the 15 to an 18.
I have attached a sample bit of code to make it clear. I saved it in LV 8.0 so more people can open it.
CyberTazer
Software Systems Engineer
Attachments:
Running 18 total.vi ‏11 KB

Similar Messages

  • I need the IP values and Subnet Mask which is given by the ISP for my jetpack so i can configure my smart tv

    i need the IP values and Subnet Mask which is given by the ISP for my jetpack so i can configure my smart tv

    Your public IP Address is provided by the ISP.  Your smart TV does not need to know this information unless you plan to host some kind of an application or service for folks on the internet through your TV.  It wouldn't work anyways since all Jetpacks sit behind a VZW NAT firewall and blocks hosting capabilities by default.
    What you more than likely are referring to is the Default Gateway and Subnet mask of the Local Area Network being hosted by your Jetpack.  By default these values should be something like 192.168.1.1 and 255.255.255.0.  You can confirm the DG and SM by connecting a computer to the Jetpack.  Every computer has a way to look up the networking information.  On a Windows OS you would open up a CMD window and type in "IPCONFIG".
    If you shoot us the model number of your Smart TV we may be able to look up a User Guide to confirm what kind of info is needed to connect to a wireless network.  Most of the time exchanging the IP information is done automatically during the connection process.  It would also be nice to know which Jetpack model you have so we can compare the User Guide for that device with your TV.

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • Do I need to download the software to restore my iphone every time I restore one and should it take 3 hours?

    Do I need to download the software to restore my iphone every time I restore one and should it take 3 hours?
    I have an iphone 3G and an iphone 3GS and apple prompts me to download the software for each every time I use the restore function, this takes an (itunes) estimated 3 hours.
    Thanks in advance.

    Yes, that's correct - I misunderstood your question - I thought you meant you were downloading mutliple times for the same phone.
    Apple provides separate files for each iPhone/iPod Touch/iPad model - with iOS and iCloud, this will improve since you'll only have to download the updates, not the complete file

  • Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Please be more specific. What Premiere project? What version of Premiere? Which operating system? What CoDecs do the QT fiels use? Are all the video files in the correct folders inside the Premiere project structure? Your description sounds like you are attempting to open a Mac based project on a PC and your video files are either in the wrong location or use a Mac-specific CoDec, hence they cannot be read on a PC.
    Mylenium

  • When I open iTunes, I receive an error that reads "iTunes has encountered a problem and needs to close.  Sorry for the convenience."  When I click to see the error, it reads "AppName: itunes.exe      AppVer: 10.5.2.11      ModName: msvcr80.dll"  Why ?

      When I open iTunes, I receive an error that reads "iTunes has encountered a problem and needs to close.  Sorry for the convenience."  When I click to see the error, it reads "AppName: itunes.exe  AppVer: 10.5.2.11  ModName: msvcr80.dll"  Why ?  I am overly frustrated.  Please help.  Not exactly sure which operating system I have.  It is a dell laptop with xp.
    AppName: itunes.exe AppVer: 10.5.2.11 ModName: msvcr80.dll
    ModVer: 8.0.50727.6195 Offset: 00026b72
       AppName: itunes.exe AppVer: 10.5.2.11 ModName: msvcr80.dll
    ModVer: 8.0.50727.6195 Offset: 00026b72

    Well I was able to successfully revert back to iTunes8. Here's my steps:
    1. In Add/Remove Programs I deleted all Apple products (iTunes, QuickTime, Safari, Bonjour, etc.)
    2. I then check C:\Program Files\ and made sure all folders were deleted (QuickTime, etc.)
    3. I then ran a Registry Cleaner program to make sure all entries from Apple products were removed.
    4. I then rebooted my PC
    5. I then downloaded iTunes8.0.2 from here: http://www.apple.com/downloads/macosx/apple/ipod_itunes/itunes802forwindows.html
    6. After it installed it said it could use my iTunes library file because it was created with a newer version. So I re-created my library by following these steps: http://support.apple.com/kb/HT1451
    It took some time but iTunes is now back up and running. And I have all my playlists, etc. I haven't tried to sync anything yet. I'm just thrilled to have my iTunes back!

  • I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • Macbook air Wi Fi and sound stops every time it goes to sleep. i have to  restart it every time to use wifi and sounds. this started happening just after the latest upgrade to X. any reasons why its doing that and how to fix it.

    Macbook air Wi Fi and sound stops every time it goes to sleep. i have to  restart it every time to use wifi and sounds. this started happening just after the latest upgrade to OS X. any reasons why its doing that and how to fix it.

    Test after taking each of the following steps. Back up all data before making any changes.
    1. Make sure the network is on the preferred list by following these instructions. It's important to read the article carefully, as it's the starting point for any further efforts to solve the problem. If you skip any of the steps, the problem may not be solved.
    2. Follow the instructions in this support article under the heading "Symptom: The network connection drops unexpectedly."
    3. Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    4. From the Location menu at the top of the Network preference pane, select Edit Locations. A sheet will drop down. Click the plus-sign button to create a new location. Give it any name you want. In the new location, set up the Wi-Fi service with the same settings you used before. Click Apply and test.
    5. Launch the Keychain Access application. Search for and delete all AirPort network password items that refer to the network. Make a note of the password first.
    6. In some cases, the problem has been resolved by repairing permissions on the startup volume.
    7. Turn off Bluetooth and test.
    8. Reinstall OS X.

  • I purchased the 9.99 monthly plan from iTunes to convert my resume from .doc to .pdf and it keeps telling me to purchase the upgrade I already bought. I look on my PC and it says I'm still a free customer and need to sign up annually for the pack. Bullshi

    I purchased the 9.99 monthly plan from iTunes to convert my resume from .doc to .pdf and it keeps telling me to purchase the upgrade I already bought. I look on my PC and it says I'm still a free customer and need to sign up annually for the pack. ********! What do I need to do

    If you purchased a subscription from Apple's iTunes store, you'll need to go to them to manage it:
    Manage your auto-renewing subscriptions - Apple Support

  • HT2155 I want to use hotmail as my email not icloud and need to connect new ipod to the same account as my ipod nano

    I want to use hotmail as my email not icloud and need to connect new ipod to the same account as my ipod nano

    Just setup the iPod with your Hotmail account email address/Apple ID
    The add the Hotmail email account to Settings>Mail

  • HT204266 I forgot the answers to the security questions and need it to buy things from the apple store in my new iPhone, how can I resolve it?  Thank you

    I forgot the answers to the security questions and need it to buy things from the apple store in my new iPhone, how can I resolve it?
    Thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • HT1364 I have a new PC and need to sync my iPhone5 to the new installation of iTunes. I don't want to lose the data on the phone! How do I do this? The PC is Win8 Pro.

    I have a new PC and need to sync my iPhone5 to the new installation of iTunes. I don't want to lose the data on the phone! How do I do this? The PC is Win8 Pro.

    If you have the old PC, transfer the library from it. If not, see Recover your iTunes library from your iPod or iOS device.
    tt2

  • My account asks me to change my password every week for no reason and i have different security questions for the same account

    My account asks me to change my password every week for no reason and i have different security questions for the same account

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iPod connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Try changing the security on the router. Start with no securty as a test.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I have CS6 and need to be able to utilize the open GL option but not sure what I need to do to make

    I have CS6 and need to be able to utilize the open GL option but not sure what I need to do to make this work...trying to bring a 3D pdf into photpshop for animation. Screen simply reads "enable 3D view'.

    my goal is to bring 3d solidworks drawing files into photoshop and animate. one export option is a 3d pdf file which opens and rotates well in Acrobat pro...but when trying to bring it into photoshop. It looks like the attached pic."enable 3d view"

  • How can I stop my nano from syncing every time I do something?  Sometimes it takes overnight to complete the sync.

    How can I stop my nano from syncing every time I do something?  Sometimes it takes overnight to complete the sync.

    Check your sync settings on the Music and other tabs. Personally I untick the box that says "Open iTunes when this iPod is connected" and under Edit > Preferences > Devices I tick the box that says "Prevent iPods, iPhones, and iPads from syncing automatically". This means that I get to choose and, if necessary, edit the content selections and then start the sync only when I'm ready.
    tt2

Maybe you are looking for

  • Can i use a macbook pro to drive an iMac as a monitor?

    can i use a macbook pro to drive an iMac as a monitor?

  • Open PO's table

    Hi Is there any table which willshow the PO is open? I know the standard Reports but I want this data from the table level. Regards

  • Subcontracting scrap.?

    hii In subcontracting process, how to handle scrap. In my case , i know this much is expected after production in subcontractor place. In what method i can do it in SAP. Send me the step by step procedure with transaction code  and explain me what mo

  • Where is Histogram in Three-way Color Corrector

    The Three-way Color Corrector Help section states: "The effect has a histogram that displays the image's luminance." Where is this histogram?

  • Shuffling music excluding songs in a playlist

    Is there any way to have songs in a playlist and not the main library? I have several songs that I only want to play when i pick them but the majority of the songs are in my library. I don't want the occasional songs to play with the majority songs.