How to calculate rms voltage, rms current and frequency from real time data?

Hello,
I need to calculate the real time rms voltage, rms current and frequency of the received voltage and current graphs using visa read. Actually am trying to monitor the voltage and current parameters of AC load, in this case, am using a set of 4 light bulbs at the moment. Expected frequency is 50 Hz, and rms voltage close to 240v AC, current about 1A. 
Attached is the vi picture of what I have been able to achieve so far, courtesy of labview forums. But I need to finally finish this vi by calculating the Vrms, Irms and frequecy. The front panel shows the voltage (Chart V) and current (Chart I) after scaling. Chart VI represents ADC value 0 ~ 1023 of received data. Aray V & I show the binary bits received up to 10 bits of useful data from ADC. Each sine wave from ADC is sampled at 25 samples for the ADC conversion, and sampling frequency of 1.28kH.
I have tried using the RMS vi, but seems I don't know how to configure it correctly to get desired results. Also when I make changes like switching of one of the bulbs so that their is current change, I need to refresh the SERIAL port first before changes show up on the VI. Any ideas on how to improve on this are highly appreciated.
Otherwise, I would appreciate if somebody helps me MODIFY my VI to read the rms values and frequency from received data. This is the last piece of my project, I do appreciate all the help rendered. Am currently using labview labview 2014, student version!
Gavin.
Attachments:
Test_revised1.vi ‏39 KB
Test_frontpanel.png ‏196 KB
Test_blockdiagram.png ‏187 KB

hello,
note that peak voltage (Vpeak) is (240 * 1.414) = 399 V and peak current about 1.414 if intended rms current is 1A.
Gavin.

Similar Messages

  • How to count occurences of a certain string in incoming real-time data? Also displaying RTC data. Current VI included

    I use LabView student Express 7 on a Windows XP system.
    Time-frame: we are doing final integrations for our balloon experiment today. We just got told that the press wants to view real-time data, which we haven't programmed for. I need help to get a working VI at the latest by 25.02.2004 before 0800(morning) (GMT+1).
    Note on license
    It is a student balloon flight, and the data will not be used in scientific work, so the I am not breaking any license agreements (I hope).
    Problem synopsis:
    The balloon continually transmits data at 9600baud. The data is a semi-repeating header followed by a constant lenght data-package arranged like this:
    BEXUS[h][m][s]BEXUS[h][m][s]
    [Raw binary data, 7channels*8sub-channels*8bits]
    What the groundstation is doing right now:
    Take all incomming data and save (append) the data to a file without any data-handling. (We figured we would go post-processing).
    What I need to change in less than 24 hours:
    - Add a "package" counter
    - Add a display of the clock data (RTC)
    How I planned to implement the changes:
    -RTC display:
    The RTC data is in BCD format, since that means that if you look at the data as hex numbers, you get the hours and minutes and seconds out in "clear text". That is 12 hours is 0x12hex. I figured that I can do a match pattern BEXUS and pass the "after substring" to another match pattern BEXUS from which I feed the "before substring" to a type-cast VI (casting string to u8) and displaying that, which should give me a display of "123000" for the time 12:30:00... I couldn't get it to work at all when I tried out the supplied "beta" vi.
    - Package counter:
    Counting how many BEXUS that gets detected and dividing by 2. I don't know how to do this. I've looked on the forum (a good thread on the problem: "how do I count the number of *'s in a string") but these use either loops or arrays... and I'm not sure how this works when I'm getting the data in at realtime. I cant make an array and then count it, since then the array would grow fast and possibly interfere with saving of the data??? Saving the data is critical.. without that file we cant do post-processing.
    Since my time is so limited (I'm not even supposed to do the groundstation software but they called on me in the last minute because no-one else had time/wanted too/could do it) I hope that you could make an exception and provide me with working VI's (based on the one I have attached) so that I can show something to the press! (Free comercial for NI!! Since the student version shows the National Instruments water-mark on all VI's!!! Possible TV time!!)
    Thanks!
    PS: even if you are to late (after 25) post anyway!
    Why:
    -I can learn from it
    -the launch might be delayed due to weather conditions
    -others might find it amusing!
    Thanks again!
    Attachments:
    BexusII_groundstation.vi ‏46 KB

    I have a valid example data file attached to this thread.
    If you open BEXTEST.bin in a hex-editor of your choice, you'll see the BEXUS as 42 45 58 55 53 and then the time as 00 28 09 etc.
    I couldn't get Joe Guo's VI to work. It doesn't count packages correctly, and the time is not displayed correctly either.
    The file was saved using a straight save to file VI.
    The data is from actual launching area tests performed a few mintues ago. The time displayed is "On time" e.g. how long the gondola has been powered up.
    I have a spare T-junction, so I can hook into the balloon real-time data as we fly, in case anyone care to see if they can figure out why the latest version of Joe Guo's program is not displaying correctly.
    I will monitor this
    thread during and after flight to see if anyone can make it in time!
    Thanks for the great effort!!
    Attachments:
    bextest.bin ‏53 KB

  • How SAP calculate the outstanding PO quantity and amount.

    how SAP calculate the outstanding PO quantity and amount.

    Hi Arun Raj,
    APO does not calculate the open qty.
    Only the open qty of the PO is ciffed to APO from R/3.
    Regards,
    Ashok

  • How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    You're almost there. When you look in that Profiles folder, you should see one or more folders with semi-randomized names. The most recent one probably is your last active profile.
    You have a lot of options for how to recover:
    * Restore last bookmarks backup ([[Restore bookmarks from backup or move them to another computer]])
    * Manually copy over saved password files to your currently active profile folder ([[Recovering important data from an old profile]])
    * Attempt a complete "transplant" of your old settings folder to your new installation of Firefox (e.g., this thread: [https://support.mozilla.org/questions/965036 how to install and migrate info to a new laptop with Win 8])

  • How can i sync all my music and playlists from my iphone to my new computer

    how can i sync all my music and playlists from my iphone to my new computer

    Yes.  You can sync everything that is currently on your iPod Touch to your newer one. Just plug it in and sync it like you did with the old one.
    If you want to retain your App data, see this article for information on backing up your current iPod Touch and restoring the backup onto a new one.
    http://support.apple.com/kb/ht1414
    If you purchase the iPad, keep in mind that some Apps may not be compatible with it.
    B-rock

  • How can I transfer my iTunes library and playlists from one computer to another?

    How can I transfer my iTunes library and playlists from one computer to another?

    Copy the iTunes folder (Mac: Home\Music or PC: My Music) to the same location on the new computer. If an iTunes folder already exists on the new computer (it will on a Mac) replace it with one you copied.

  • How can I transfer my email accounts and emails from my old macbook pro with ML to my new macbook pro with ML

    How can I transfer my email accounts and emails from my old macbook pro with ML to my new macbook pro with ML

    Do you have your system backed up to Time Machine? If so, you can open your user Library and copy your Mail folder from Time Machine to your Desktop on your new machine; then copy THAT folder to your new machine's user Library.
    To get to your user Library, open Finder and Go and press the Option key. Library will show up. Click on it to get into your user Library. Now go into Time Machine and you should see your user Library for Time Machine. Restore the Mail folder to your Desktop.

  • HT1296 How do I back up the calendar and contacts from my iPhone5 to my new macbook pro(10.8.3)? I have backed up the phone, but it does not transfer the calendar or the contacts. If I check them in the sync area and the back up the phone again...

    How do I back up the calendar and contacts from my iPhone5 to my new macbook pro(10.8.3)? I have backed up the phone, but it does not transfer the calendar or the contacts. If I check them in the sync area and then back up the phone again will they transfer or be erased? I am a bit gun shy since my previous macbook pro committed suicide and I lost a ton of info there.

    Copy everything from your backup copy of your old computer.

  • How can I remove all my preferences and settings from mail and do a clean install of mail app?

    How can I remove all my preferences and settings from mail and do a clean install of mail app?

    Open mail > Preferences > Accounts
    Select the account and click the minus button at the bottom of the column.
    Quit mail
    ~/Library/Preferences/com.apple.mail.plist move this file to the trash and empty it.
    ~/Library/Mail/ and move all of the items in that folder to the trash and then empty it.

  • How can I transfer all my music and apps from my computer to my new iphone?

    how can I transfer all my music and apps from my computer to my new iphone?

    This is one of the most basic of functions of the iPhone.  This is a good time for you to read the User Guide.  All the instructions on how to operate yor phone are included.  I suggest you read through it.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Once bootcamp is installed on my Mac, how easy is it to go back and forth from windows to Mac? Just a press of button or do I have to completely log off of one to go to the other?

    Once bootcamp is installed on my Mac, how easy is it to go back and forth from windows to Mac? Just a press of button or do I have to completely log off of one to go to the other?

    Using vitual machine programs (VirtualBox, Parallels, VMWare Fusion) you can run both at the same time.
    Load Windows under BootCamp.  Then load the VM software and select the existing BootCamp partition as the "virtualized space".
    But ... BootCamp first, following Csound1's advice about backups.  And you will wantto boost RAM most likely because you need to allocate certain amount of system RAM to each "virtual machine", as well as leaving some for OSX.
    But ... BootCamp first.

  • I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    Unless you transfer the files from Setup Assistant, Migration Assistant creates a new user with the data.
    To transfer the files to your first user, you have to log on this new user, and copy all your files to /Users/Shard folder. This is a folder where you can put the files you want to share between two or more users, and all users can read and write in it.
    After copying the files, go to your first user, open /Users/Shared folder, and copy the files to your user folders. If you migrated applications, you must know that they are stored in a common folder (/Applications), so you don't have to transfer them. To open /Users/Shared folder, open Go menu (in the menu bar) > Go to Folder, and type the folder

  • I have iphone5 and now been given Nokia lumia 520 for work. How can I ensure that my calendars all sync in real time between each phone? Many thanks for any advice

    I have iphone5 and now been given Nokia lumia 520 for work. How can I ensure that my calendars all sync in real time between each phone? Many thanks for any advice

    Well if you got the Phone Pggray43 at a Local Corporate store in your Area)  you should be able to return it as long as you have all the contents.!  Phone, Charger and any other accessories that came with it the Box of Course.. As long as you have not went past the 14 Day return.. the store can go over what you used as in Air Time and Data..
    Now if you've went past the 14 Day return you be Liable to pay a E.T.F =  Early Termination Fee the fee for this is around $300 so hopefully you have not went past the 14 Day return window the Manager if Available is the one I would talk to tell them your on Social Security and you just can't afford a phone as this I'm sure they'll work with you to get something solved..
    Hope ya have Good Luck.! b33

  • How do I upload my contacts, calendar and notes from outlook 2007 to my new iPad with retina display

    I just cleaned up my outlook 2007 contact files.
    I have an iPhone 5, a new iPad with retina display, and a PC, which is where the outlook program is.
    I also have an iCloud account
    How do I get the contacts, calendar and notes from outlook to any of these devices, so I can have one synced contact file on all three devices?
    I'm sure I am not the first one asking about this but I am new to Apple, and loving it.

    With your device connected and iTunes open, navigate to the 'info' tab and scroll down. You'll see the option to sync contacts and such from outlook.

  • HT1926 I get a message stating MSVCR80.dll is missing. How to fix? I have removed and re-installed multiple times.

    I get a message stating MSVCR80.dll is missing. How to fix? I have removed and re-installed multiple times.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

Maybe you are looking for

  • Problems with browsers and 'w' key since updates

    Hi I ran 'pacman -Syu' a little over a week ago, and since then I've been experiencing two rather odd problems. 1. Using any web-browser (firefox, epiphany, songbird, etc), visiting pages that make use of javascript (i -think- that's the cause) makes

  • Print Proxy Queue Won't Quit

    On my Brother MFC connected by USB, the printer proxy app won't quit after the print job ends, and you have to click the proxy app's icon in the Dock, then quit the app manually. (You have to close it, as the computer won't sleep by itself after x am

  • Can we show information messages after triggring IDOC's in background

    Hi friends, Iam executing one custom transaction for sales cycle in background, in that iam trigging IDOC's, user are getting the messages like 1. Idoc No: 0000014254 despatched to client - 2. 1Output  were processed. 3. 1 IDOC's selected. user has t

  • MacMini DVI colored static and KVM's

    Hi I manage 50 odd Mac's at work and have a new 09 MacMini. I have it connected via the Mini-DVI to DVI connector to a Rextron DAG12 DVI-I / USB KVM switch. I have been using the KVM for a year or 2 with a PowerMac G4 machine with no problems. When I

  • Not to display the file name in the browser bar.

    Hello, Merry Christmas to all, Is it possible not to display the file name in the browser bar? Like say, when we write www.rediff.com, the index page name is not displayed. Likewise is it possible for any other page too. What I want is not to display