Is it possible to determine the volume of a cylindrical tank in the horizontal position using Lookout objects?

Rather than doing this calculation in my plc's programming language, I was wondering if anyone has done this or might have an idea on how to do it in Lookout. I am using an ultrasonic level sensor to get the tank level, I just am not sure on how to calculate theta (how full the tank is in degrees) using Lookout.
Any response would be appreciated.
Thanks!
Jason Phillips

Hi, I should have looked in the forums first to find this answer, would have saved me some work. I'm using lookout, and needed to find gallons in a horizontal tank, I came up with the following formula...Then I decided to come to the forums to post the example, and I found this thread already started.
(LenghFeet*(((DiaFeet/2)^2*(acos(((DiaFeet/2)-(LevelInches/12))/(DiaFeet/2))))-(sqrt(2*((DiaFeet/2)*(LevelInches/12))-(LevelInches/12)^2)*((DiaFeet/2)-(LevelInches/12)))))*7.48
Where in my example lookout file:
LenghFeet=Pot used to enter the length of the tank in Feet (would be hard coded in production program)
DiaFeet=Pot used to enter the diameter of the tank in Feet (would be hard coded in production program)
LevelInches=Pot used to enter the height of the liquid in the tank in Inches (would be from the field instrument measuring this in inches)
7.48=gallons in a cubic foot
The attached example is the source (.lks) file, so you will need to change the extension from .txt to .lks and then compile it.
I hope this example is useful.
Rich Anderson
Green Bay, WI
Attachments:
roundhorizontaltank.txt ‏4 KB

Similar Messages

  • HT1947 Can I control the volume of my MacBook Pro with the remote app on my IPhone or IPad?

    Can I control the volume of my MacBook Pro with the remote app on my IPhone or IPad?

    Welcome to the Apple Community.
    To an extent yes. You can't control the master volume, but tou can turn the volume up and down, up to the maximum set manually on your computer.

  • How do I get the volume on my ipod classic to the same level for all songs?  Some are louder than others.

    How do I get the volume on my ipod classic to the same level for all songs?  Some songs are a lot lower than others.

    Coverflow in iTunes is sorted by Album Artist whereas coverflow on the iPod classic is sorted by Artist. Unfortunately, there is no way to set this on your iPod. This is such a fumble on Apple's part that I'm beginning to think they're becoming another Microsloth with buggy firmware and products.

  • Why is the volume so low on my iMac when I'm using Safari?

    Why is the volume so low on my iMac when I'm using Safari?
    On both my 2008 MBP and my new 2014 iMac 27" when I listen to the audio portion of a streaming video or news story using Safari, I can hardly hear anything. I have to crank the volume all the way up just to barely hear what is being said. Any ideas on how to fix this?

    please help!! I have the new 2014 iMac 27" as well, same thing happen to me. Dont know what to do!

  • The creation of the shadow copy on the backup destination has failed. Detailed Error: The Volume Shadow Copy operation failed with the error 0x80042316

    When using Microsoft Backup on a Windows Server 2008 SP2 (not R2 - [Microsoft version 6.0.6002]) I get the error "The creation of the shadow copy on the backup destination has failed. Detailed Error: The Volume Shadow Copy operation failed with the
    error 0x80042316"
    The odd thing is that when I start the backup manually, it works fine. When  it runs automatically the error appears.
    When doing a SFC /scannow I do get errors that can't be corrected.
    Is there anything short of rebuilding this machine (It's a DC and the only one this office has) I can do to fix this?

    Hi,
    0x80042316 means "Another shadow copy creation is already in progress". This error could occur when another VSS instance is running.
    Is there any third party backup application installed? Try to uninstall it to see the result. And please also check if there is another backup schedule which causes the conflict.
    Meanwhile please provide the result of:
    vssadmin list providers
    vssadmin list writers
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
    Hi,
    I do have Crashplan ProE running. It started at 1900 and the Windows Backup starts at 2000. I have modified Crashplan not to start until 2300 to see if that helps.
    Also:
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2005 Microsoft Corp.
    Provider name: 'Microsoft Software Shadow Copy provider 1.0'
       Provider type: System
       Provider Id: {b5946137-7b9f-4925-af80-51abd60b20d5}
       Version: 1.0.0.7
    AND:
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2005 Microsoft Corp.
    Writer name: 'System Writer'
       Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
       Writer Instance Id: {f0c7ee55-5885-4894-8dd3-14fffbdd4d2e}
       State: [1] Stable
       Last error: No error
    Writer name: 'SqlServerWriter'
       Writer Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
       Writer Instance Id: {017a0133-7577-4322-b513-04f72404b70a}
       State: [1] Stable
       Last error: No error
    Writer name: 'ASR Writer'
       Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
       Writer Instance Id: {6b17d670-9ea8-4ff1-a59e-b474f4b893db}
       State: [1] Stable
       Last error: No error
    Writer name: 'Shadow Copy Optimization Writer'
       Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
       Writer Instance Id: {56aad1bf-9bf1-4fde-b2f4-a706577c632d}
       State: [1] Stable
       Last error: No error
    Writer name: 'COM+ REGDB Writer'
       Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
       Writer Instance Id: {e942d09d-276e-450a-9bf4-b1d5abe6af8a}
       State: [1] Stable
       Last error: No error
    Writer name: 'Registry Writer'
       Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
       Writer Instance Id: {3737164b-61ac-454c-b1f7-42f2620f10db}
       State: [1] Stable
       Last error: No error
    Writer name: 'DFS Replication service writer'
       Writer Id: {2707761b-2324-473d-88eb-eb007a359533}
       Writer Instance Id: {39458257-aca4-481e-a302-994f3eb1e9a3}
       State: [1] Stable
       Last error: No error
    Writer name: 'Dhcp Jet Writer'
       Writer Id: {be9ac81e-3619-421f-920f-4c6fea9e93ad}
       Writer Instance Id: {6a8ab4aa-760c-4102-a27f-58f570c9c572}
       State: [1] Stable
       Last error: No error
    Writer name: 'NTDS'
       Writer Id: {b2014c9e-8711-4c5c-a5a9-3cf384484757}
       Writer Instance Id: {53577013-8397-448e-9a25-c7cac08aa0a8}
       State: [1] Stable
       Last error: No error
    Writer name: 'IIS Metabase Writer'
       Writer Id: {59b1f0cf-90ef-465f-9609-6ca8b2938366}
       Writer Instance Id: {ee2c9173-92e7-455c-8f73-601647c0ddb2}
       State: [1] Stable
       Last error: No error
    Writer name: 'BITS Writer'
       Writer Id: {4969d978-be47-48b0-b100-f328f07ac1e0}
       Writer Instance Id: {b1f60392-9dfd-4e3a-bda6-3dc2cb622ba4}
       State: [1] Stable
       Last error: No error
    Writer name: 'IIS Config Writer'
       Writer Id: {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
       Writer Instance Id: {a328aede-78f0-448e-9c36-e8379e9fe2a8}
       State: [1] Stable
       Last error: No error
    Writer name: 'WMI Writer'
       Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
       Writer Instance Id: {c39fa334-5c9d-4906-a3b5-33c3444948e6}
       State: [1] Stable
       Last error: No error
    Writer name: 'NPS VSS Writer'
       Writer Id: {35e81631-13e1-48db-97fc-d5bc721bb18a}
       Writer Instance Id: {3c9c5584-b5fd-48cf-8541-0c8bfa585ca0}
       State: [1] Stable
       Last error: No error

  • Suddenly most of the applications have no sound and I can't adjust the volume, and when I try with the volume button, appear the message "sound effect" and nothing append

    Suddenly most of the applications have no sound and I can't adjust the volume, and when I try with the volume button, appear the message "sound effect" and nothing append

    Hello, Miryam Maria. 
    Thank you for visiting Apple Support Communities. 
    I see you are experiencing issues with sound on applications when playing video/audio content.  If this is the case, the first thing I would check is if the side switch is set to silent as this can cause applications to be mute.  Below I have included an article that covers adjusting the  settings for the side switch.  Also, make sure to close all applications in Multitasking and power cycle the device.  Test the sound issue after processing these steps.
    iPad: Understanding the side switch
    http://support.apple.com/kb/ht4085
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Cheers,
    Jason H.

  • Hi All.  My iPad 4 just started having issues with the volume.  On either Bluetooth or the iPad Speaker, anything I'm watching or listening to drops the sound to just barely hearing it and then, about 2 seconds later, it comes back.

    Hi All,
    I tried to search through the community, but with the sheer volume of posts, I didn't find anything that seemed like the same issue.
    My iPad 4 just started having issues with the volume.  On either Bluetooth or the iPad Speaker, anything I'm watching or listening to drops the sound to just barely hearing it and then, about 2 seconds later, it comes back.
    I haven't tried wired ear phones, but I am sure they'll be the same way.
    It's very random, but consistent enough to happen several times per day.
    Thanks for any help that anyone can provide.
    I have restarted it and also did a Hard Reboot and it didn't help.
    Thanks Again,
    Scott P.

    Well there you go, when you advertise it just be sure to say that you can't even see the scratches at half brightness and see how it goes.
    Of course you are saying you want $500 for one with many scratches on the screen, has been dropped, but the scratches aren't visible at half brightness, and has no warranty. Or I can buy a refurbished iPad 4 WiFi 32 GB directly from Apple with no scratches and a one year warranty for $499. http://store.apple.com/us/product/FD514LL/A/refurbished-ipad-with-retina-display -wi-fi-32gb-white-4th-generation
    Why would I buy yours?
    I wouldn't pay more than $300 for a used model with your specs in perfect condition. But yours is far from perfect. I think your high point is $250 which is why I said 50%.

  • To extract the users permission on files and folders in sharepoint 2010 using client object model

    To extract the users permission on files and folders in sharepoint 2010 using client object model

    Hello,
    This is sample code to get item level permisison: (Just written in notepad so it is not tested)
    public void ItemLevelPermission()
    SecurableObject curObj = null;
    ListItem curItem = ctx.Web.Lists.GetByTitle("LibraryName").GetItemById(ItemId); -> Use Id of file or folder.
    IEnumerable roles = null;
    roles = ctx.LoadQuery(
    curObj.RoleAssignments.Include(
    roleAsg => roleAsg.Member,
    roleAsg => roleAsg.RoleDefinitionBindings.Include(
    roleDef => roleDef.Name, // for each role definition, include roleDef’s Name
    roleDef => roleDef.Description)));
    ctx.ExecuteQuery();
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I have a 2013 mac pro and the volume keys aren't changing the volume of my LED display. The icon shows up as going up or down but the volume seems to not adjust.

    I've had this computer since october of 2013 or so and I have just recently run into this problem. I use the volume keys on the keyboard and I hear the tick sounds and it shows that its going up and down but the volume doesn't actually change. I've looked in the "sound" settings and everythings seems to be correct... I can't adjust the sound in their either though. I pay too much to be having an issue like this.

    Possible? Yes. Likely? I'm not sure.
    In my house, I would suspect that either one of our pets chewed on a cable or dislodged a connector, or somebody bumped a connection loose, but then I would expect either no volume at all or hum from a grounding problem. Clear, non-zero constant volume is harder to explain.
    You say adjusting the output volume directly in the Sound settings or on the menu bar also has no effect on the audible output?
    You might want to go ahead and answer the question about connections. Somebody else might come along who recognizes a possible problem with the particular combination you are using. I don't have exactly your model of Mac Pro or display. (Is yours the Apple LED Cinema Display? Which size?)

  • I turned on the itunes radio on my computer - I am unable to turn off the music, I turned the volume down, however this isn't the answer

    I turned on itunes radio on my desk top computer - now I don't know how to turn it off or get to the icon to at least change the channel.  I turned the volume down on the computer!  any help anyone can give would be appreciated

    even if you wipe the drive LoJack is still there, it's installed in a hidden partition so you would have get rid of the entire OS. I caught a glimpse of the culprit and from what I seen he is more of a low life than a computer nerd. It is possible he could have tried to log-in but didn't notice the guest and admin account. While I see what you're saying I still have some hope, from what I've read online it took people more than a day to see that their laptop had gone online. If it can't get replaced LoJack has a $1,000 guarantee but that still doesn't make up for the $3,000 worth of equipment lost.

  • How do I control the volume so all my songs are the same loudness

    On my older IPOD, one song plays soft, then the next is too loud.  How can I control the volume so they are all the same loudness?

    See the playback section (more specifically the Sound Check option) of this Apple support document for a possible suggestion.
    http://support.apple.com/kb/ta38521?viewlocale=en_us
    B-rock

  • When I make an outgoing call the recipient cannot hear as though the volume were turned down Lowe. However when I use my speaker phone function the recipient can hear at normal volume. Is there a fix for this issue? Thanks Teresa

    When I make an outgoing call the recipient cannot hear me very well as though the volume was turned down very low
    However when I activate the speakerphone the recipient can hear me loud and clear
    Is there a fix for this?
    Thanks
    Teresa

    Hey Tlabounty,
    Thanks for the question. I understand you are experiencing issues with the microphone on your iPhone 5. To troubleshoot this issue, you may find the information in this article helpful:
    iPhone: Microphone issues
    http://support.apple.com/kb/ts5183
    Note that speakerphone and regular calls utilize seperate microphones on the device. It sounds like you have isolated the issue. Furthermore, if you determine that the issue is hardware related, the following resource may help you get started with the service process:
    iPhone Repair and Service - Apple Support
    http://www.apple.com/support/iphone/repair/
    Thanks,
    Matt M.

  • The volume keys on my MacBook Pro stop working after using headphones.

    The volume keys on my MacBook Pro recently stopped controling the volume after I've used headphones. I still have sound; I just can't make the volume increase or decrease. The mute, however, still works just fine. Because I have sound from the intenral speakers I know the computer doesn't think the headphones are still in the jack. A reboot fixes the problem, but as soon as I use headphones the problem starts up again. I want to fix this permanently.
    I don't know if this helps but all the other keys (brightness, play/pause, etc) still work. I recently had to reset the PRAM because my computer refused to sleep when the lid was shut. I've checked system preferences and everything seems to be in order.
    Can someone please help!?

    I found this advice on another thread after encountering the same problem - I did the reboot and it worked fine and dandy!
    I spoke with Applecare to fix my Macbook volume. Apparently there are pins inside the speaker/headphone jack that can get jammed. We fixed mine by doing some sort of reboot:
    Turn off laptop.
    Hold down the Option, Command, P, and R keys (all four at once, it's tricky!) and while holding down the four keys, turn on the computer. When you hear the second chime, release the four keys.
    This re-set the sound toggle to internal speakers. Now I'm afraid to insert headphones again, but I assume this reboot will work over and over.

  • My iphone 4S doesn't show the volume controls when playing videos and the speakers don't sound. But if I plug in the earphones then I can hear fine and the volume controls appear on screen. Please someone help.

    After a week or so of installing IOS 7 now I having this problem, the speakers don't work for videos, music or apps sounds, but they work fine for using the speaker phone. It's definitely some software issue as the volume control appears when i plug in the earphones, but disappears when unplugging them, same happens with the volume buttons on the side, they don't work when trying to use the speakers, but the work when using the earphones. Please help if you have a workaround for this. I don't want to carry my earphones all the time to listen to videos and music.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • The volume control icon has disappered from the task bar.

     A few days ago I turned on my pc and found the volume control icon that is normally showing on the bottom task bar, had dissappeared?  I have explored every option (hidden icons etc.) but the icon does not exist anywhere.  Can you help?
    This question was solved.
    View Solution.

    Go to the link below.Enter your Product Number as listed on Service Tag attached to bottom of notebook (may be under battery). You can also get the Product Number by pressing Fn + Esc key. After entering PN, click Next ,then choose Software & Drivers.On the next page use the dropdown to select your OS (probably Windows 7 64bit). A list will populate with drivers. Download & Intall the latest Audio driver. Restart the laptop and check results.
    http://h10025.www1.hp.com/ewfrf/wc/siteHome?cc=us&lc=en
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

Maybe you are looking for

  • How to call a web service from a session bean's business method???

    Hi Experts, Can anybody help in calling a web serivce frm a session bean's business method?? Hw do we do that? I have one requirement where i want to send emails to set of users for which i have email sending web service ready.. How can i call it thr

  • Mic wont work please someone help!

    I've Creative Webcam Live Pro, and my mic wont work. I used the installation CD(webcam CD), and I tried plugging the outlet in the mic slot, and line in slot, but it still wont work. I went to the sound recording program that is installed in the XP,

  • Error when uploading BW roles into the Portal

    I am trying to upload one standard BW role with 3 BW web applications into the Portal using Portal's RoleUpload functionality.  Teh BW role gets uploaded fine in the Portal, but the Portal fails to create the iViews for the Web Applications. The erro

  • Will the new IPad display PDFs quicker?

    I use my IPad 1 to follow musical scores that I have downloaded (legally) in PDF. Some complex scores with a large number of instruments can take several seconds to refresh the screen after changing pages. I have compared this against an IPad 2 and i

  • How to insert a row into nth row of a table

    Hi I am new to oracle. I just have a doubt. How do i write a sql query to insert into the nth row of a table with and without rownum. Could some one help me in this Thanks