Using arduino with electrical power suite

I am using an arduino to measure voltage and current and eventually get the power readings . But however when i am getting  the readings from the analog input  and connect it to my power VI the  power factor remains 1or -1 . I am measuring single phace power. I am using an SCT- 013 -000 current transformer for the current . and apower transformer for the voltage 240 - 6V . below is my vi and screenshots . Can you help me troubleshoot why my powerfactor isonly flickering between 1and -1 . for all loads including resistive , capacitive and inductive loads . 
Attachments:
Power from Wall Socket.vi ‏45 KB
VI outlook.PNG ‏58 KB

OK. Let's try to define some terms.
Phase resolution: The smallest difference in phase angle between the voltage and current waveforms that can be measured. 
Example: At 50 Hz one period is 20 ms. If you take a sample every millisecond (1 kHz), you will get 20 samples per cycle of the 50 Hz signal. That is equvalent to 18 degrees between samples. Since power factor is proprtional to the cosine of the phase difference you would get possible power factor values of 1, 0.95, 0.81, and 0.59 for phase differences of 0, 18, 36, and 54 degrees or time differences of 0, 1, 2, 3, and 4 milliseconds.
If the sampling rate is 120 Hz, the period is 8.333 ms and the phase resolution is 150 degrees. That is meaningless for power factor measurements.
Next, the Arduino LINX software cannot achieve anywhere near 120 Hz as you have the VI set up.  Open up the LINX VIs and look at what they are doing. It sends an 8-byte packet to define a channel. Then it waits for 2 bytes to return. One of those bytes tells the next VI how many data bytes are coming. It appears that you get 2 bytes of data from each read. That is a total of 24 bytes for two channels. The digital write also sends 8 bytes although that runs in parallel with the reads. With the standard settings doing two one-channel analog reads takes at least 25 ms. That is equivalent to a sampling rate of 40 Hz. The Nyquist criterion specifies that the sampling rate must be greater than twice the frequency of the signal you want to measure. So your sampling rate needs to be >100 Hz.
If you use the N Channel version of Analog Read for two channels (as opposed to the two separate Reads you have now), it sends a 9-byte packet and receives 6 bytes. The maximum rate it could achieve is ~64 Hz, which is still far too slow.
Lynn

Similar Messages

  • Will Non-DSA Simultaneous Cards (such as the 9220) Work with the Electrical Power Suite?

    Hello, All!
    I wondered if the 9220, and other non-delta-sigma (DSA) c-series modules, will still work with the Electrical Power Suite. From the overview on the product page:
    Supported Hardware
    C Series Modules
    -The suite meets standard accuracy requirements when used with the NI 9225 (high voltage) and NI 9227 (5 A current) C Series modules. 
    -Compatible modules include any self-timed delta-sigma module such as the NI 9229, NI 9232, NI 9234, and NI 9239. Due to the lower voltage inputs, these modules require external voltage transformers. 
    -The resampling algorithms of the LabVIEW Electrical Power Suite are not designed for multiplexed modules, such as the NI 9201 or NI 9205.
    Note that a few modules are listed explicitly, and it sounds like any self-timed delta-sigma module (eg the 9229, 9232, 9234, 9239) will work appropriately, and that multiplexed modules (eg 9201, 9205) will not work. However, what about non-DSA simultaneous cards such as the 9220? Note also that supported hardware is not explicitly listed in the 2012 EPS Readme, so I wanted to check.
    Please let me know!
    Will Hilzinger | Switch Product Support Engineer | National Instruments

    [originally posted 7-19-2013]
    Hello, Fang!
    Thank you for the information! The question is from a customer who is an Alliance Partner. They don't have to use the 9220, but would very much like to. Please let me know if you have any further questions for me, and thank you again!
    Best,
    Will H | Applications Engineering | National Instruments
    Will Hilzinger | Switch Product Support Engineer | National Instruments

  • Ues of Electrical Power Suite for variable frequency test

    My customer is doing capacitor testing. He would like to measure the phase angle whiile varying the source frequency. Can the Electrical Power Suite be used for this? If not can you make a recommendation (basically for measuring power factor)?

    I do not have the Electrial Power Suite so I cannot comment on its suitability.  In addition to posting here, there is an Electrial Power Suite on the Forums, although it gets very little traffic.  Some of the NI people involved with the suite seem to monitor that Board.
    Assuming that your customer has suitable instrumentation and data acquisition hardware, it should not be too difficult to measure/calculate phase angle with LabVIEW and standard DAQ drivers.
    Can you be more specific about the equipment?
    Lynn

  • Using SCM with 10g developer suite

    i am using Oracle SCM utilities with 10g developer suite. can any body tell me that is there any way-out, or mechansim exists so that i can add existing coded objects in the database (e.g. procedures, functions, or table definitions) into the repository, and can check-out those objects...make the changes in them, and then check-in back, and SCM repository automatically maintains the history for those database objects (procedures, functions). i don't want to use any designer tool for this purpose. i want to make changes at the code level and want that version history be automatically maintained. tell me that whether oracle SCM can do this or it works only with the definitions created through oracle designer. Or any other alternative solution will also be highly appreciated.
    thanks

    Alibaba
    Thanks for your response, it was my mistake in having typoed in bad host name in runtime preference.
    Thx again for your time, the forms are running now.

  • Is it better to use macbook with ac power?

    is it safer to use macbook pro with ac power?

    Both are safe lol!
    You need to run it on battery at least every now and then so that the battery will remain capable of holding charge, otherwise if you dont use the battery for a long period of time you will notice the health and charge retention begin to drop. The mac is great with battery life, its made to be portable and run on the battery (as all laptops are), so you should have no fear using the battery until it is almost depleted, and then plugging in the AC to continue using the mac while it charges. Mac batteries have stupidly long lives, have a look at mine below, its been nearly a year now. The battery cycle represents the number of times the battery has been run down to 0%. It is accumulative, so for example say you run your battery down to 50% then charge it back up then run it down to 50% again, that counts as a ful run down to 0% and is one cycle

  • Flicker measurement using Electrical Power Suite

    I try to use DAQ to obtain voltage and current from the grid voltage, around 240 V, 50 Hz as attached in the file attached.
    Then, the flickermeter is used to obtain the instanteneous flicker, P inst to calculate the short term flicker, P st and long term flicker, Plt.
    Usually, the value obtain for the P st is around 1.0, but the value obtain as shown in the picture attached is far greater.
    Hope for guidance. Thank you
    Attachments:
    flicker measuremnt.jpg ‏141 KB
    Pst.jpg ‏56 KB
    Plt.jpg ‏58 KB

    Hi all,
    I try to remove the unused part and left only the flicker measurement part.
    I try to configure the DAQ Assisstant with continuous acquisition mode and not using the N sample.
    After around 20 mins, I encounterd problem error 200279 as shown.
    Since I required 2 hours to obtain long term flicker, therefore, I reall hope someone can help me on this.
    Thank you.
    Attachments:
    flicker meas_1 Sept.jpg ‏120 KB
    DAQ assistant.jpg ‏99 KB
    error 200279.jpg ‏57 KB

  • Measurement of harmonics using THD block in Electrical power

    Hi to all,
    I want to measure the harmonics in a waveform. I take the THD block which is present in the Electrical Power Suite, but the input to that THD block is spectra but not waveform. So please help me in converting the waveform into spectra.
    Awaiting Reply,
    Thanks in Advance.

    I do not have that suite, so I am not sure of the exact requirements. LabVIEW has several VIs in the Signal Processing >> Spectral, Waveform Measurements, and Transforms palettes.  One of those may be what you need.
    Lynn

  • Electrical power measurement with compactrio

    Hi,
    It's me again. I'm trying to set up a very simple 1-phase electrical power measurement system. I have found this link: http://sine.ni.com/nips/cds/view/p/lang/en/nid/208111. Here it's done with a DAQ system. I would like to use the same code, but with the CompactRIO. The question is how to connect the channelinput of the voltage and that of the current, to finally get the power reading. And how can I get a sine figure on the chart?
    See attachment. 
    Soedarman
    Attachments:
    code.doc ‏209 KB

    Hello Mr. Soedarman,
    To do these Power Measurements it's better to better use the following software:
    http://zone.ni.com/devzone/cda/tut/p/id/11336
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Use of an Older Power Cable with a New MacBook Pro

    I have purchased a new MacBook Pro 15". It comes with the power cord with the silver "L-shaped" magnetic end.
    My old laptop, which is a MacBook from around 2006, came with the white squarish magnetic end. It fits just fine on the new MacBook pro and seems to work fine.
    Is it safe to also use this as an additional power cord for my new MacBook Pro? (I know, it seems like a silly question, but when dealing with electricity issues, it's always good to double check. I'd hate to find out that for some reason something about the old cord fries something on the new system.)

    The older Macbook's power adapter has a maximum output of 65 watts, while the 15" McBook Pro comes with an 85 watt adapter. The 65W adapter will work, but with certain caveats — see this post of mine from the day before yesterday for a fuller explanation:
    http://discussions.apple.com/message.jspa?messageID=12625011#12625011

  • Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Please take the Mac to  Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

  • Help with using itunes with 4s library after i upgraded to iPhone 5 and computer power supply went

    long story hopefully an easy fix....
    on wensday my power supply went and had to ship computer across country to Puget Computer Systems as we weren't sure if it was power supply or mobo...luckily it was power supply.
    i daily backed up iphone 4s with itunes (10.7) as i do all music manually, playlists, etc. have like 3,000 plus songs, videos, audiobooks, mail aaccts and about 48 apps.
    so next day (sept 19th) apple comes out with iOS 6 which i update my 4s to with no problem. I wanted a day to play with it to learn my way around.
    next day i wait in line for 8 hours overnite and was #2 in line at apple store for my ATT 32gb white iPhone 5. while at apple store I get my icloud backup which gets all paid music,apps, etc since itunes version 10.3 (i always did both backups so as not to lose my contacts more than anything.
    I have other paid stuff that is in library on computer along with audiobooks and about 2700 more songs.
    my icloud backup put the playlists on iPhone but not most of the music for them as lots were ripped from my cd's.as i double them up making a copy on iPhone and a copy on itunes.
    So I have been using iPhone 5 with no problems just don't have all of itunes library on it. My computer is coming back this week how do I plug in iPhone 5 via USB (which will be seen as new phone even though it has same name) and use my existing iTunes 10.7 library which the backups in iTunes still has iOS 5.1.1 on it?
    There must be an easy way of doing it as i don't want to wipe off iphone 5 again as i don't see any purpose my library is all organized perfectly. I know my way around windows 7 pro 64 bit pretty well just don't know what itunes is going to say once it sees "joe's iPhone" again and installs the usb drivers and icon for it. what will it ask in regards to library and how do i use it with previous iOS on it?
    Thank you very much for the help as I am going to need it.
    yes i broke the cardinal rule of cross posting and apoligize  for it just amazed i couldn't find answer via google nor any apple store genius knew it either.

    Hi All,
    Any help?
    No one has any answers here amoungst all this apple knowledge?
    Thank you

  • Using Apple World Travel Power Adapter with Airport Extreme

    Hi, I was wondering if anyone knows if you can use Apples World Travel power adapters they sell for Powerbooks and ipods on an airport express. I'm looking to use it in Switzerland.
    Thanks

    1) use some sort of USB to Ethernet converter to plug the USB device into the AE
    A "normal" USB-to-Ethernet adapter/converter merely makes the computer network capable. Useful if an Ethernet port is not provided originally. This is not what you want in this case. Instead, if you wish to connect an existing Wi-Fi base station (router), you should look for a special adapter (maybe something like this) with an Ethernet output and support for the very USB mobile broadband modem that you are using.
    An alternative solution could be a dedicated mobile broadband router (with support for said USB modem), where you choose to or not choose to use its Wi-Fi capabilities.
    Jan

  • What version of Flash Player should I use with my Power PC based Mac?

    I did the following (see below from a Recent Forum) - and even got a sucessful INSTALLED, but when I go to YouTube....I can not get anything and I am asked to update FLASH.....thoughts?
    What version of Flash Player should I use with my Power PC based Mac?
    Please follow these instructions for installing the most recent version of Flash Player that supports PowerPC based Macs
    1. Follow the instructions for uninstalling Flash Player on the Mac: Uninstall Flash Player
    2. Download and extract the Flash Player 10.1.102.64 zip file
    3. Navigate into the folder "/Flash Player 10.1.102.64/10_1r102_64/"
    4. Mount the file "flashplayer10_1r102_64_ub_mac.dmg" by double clicking
    5. Install using the normal procedure

    I was finally able to successfully installed FP on my Mac OS 10.5.8 using the last trick shown below by Chris (Adobe Flash Player.pkg file). This, only after several (at least 10) attempts, and only after restarting my computer after downloading the install file. Thanks for the helpful post.

  • Power unit from older MacBook Pro - using it with newer model

    I once had a MacBook Pro, one of the early version, bought somewhere in August 2006. Now I have the power unit that is left from it. I want to use it with my current MacBook Pro which is newer model, but not the one which is currently sold - it is NOT the unibody model, it looks exactly like the previous model, but with better spec, and the notable difference is that on the previous model the green diode near camera had a single hole, and the newer model has lots of tiny miniholes there, which makes it completely invisible unless the diode is lit.
    (unfortunately I have no idea how to identify those two models more correctly - model numbers or whatever)
    When I compare the power units - the one which I have with my current model, and the one which is left from the previous, the newer is a bit smaller, and the power output markings are a bit differently organised, not totally identical, but they show what I understand is same voltage/amperage.
    I'm still a bit cautious about using the power unit from the older model. Did anyone tried it, is it safe?

    Next time you can use Mactracker to identify your machines exactly:
    http://www.mactracker.ca/
    Go to >About this Mac>More Info and you will see the Model Name and Model Identifier.
    Good luck!

  • How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013

    How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013 there's two plugs do I use both for the safety to work or I just one ? Thanks sorry new macbook air 2013 was given to my daughter fir her 18th bday 2 days ago by my brother

    No, the one is just an extension cord,          just use the 45W charger with its attached thin cord and connect the magnetic magsafe to to the connector on the back left of the macbook Air for use and charging it

Maybe you are looking for

  • Keyboard issue after coffee spill.

    I've problem. I've spilled a bit of coffee (sugar+milk) on my W500's keyboard - (Enter key area). And now, there are such problems: After pushing keys: F5, F9, Backspace, backslash, Space the behaviour is like hitting the Enter. Could anyone help me

  • Flex 3 to Flex 4 migration issue (Flex charting and Special char)

    Hi All, I have migrated Flex 3 to Flex 4 and in Flex charting axis label, I am not able to see less then sign ( < ). I tried to use <  but it's not working, I have attached sample code. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="

  • Can't compile package body

    hello. i ran in to little issue today. After patch 13839550 was applied to one of our test enviroments, we get one invalid package body. but when i try to compile it shows warrning! SQL> alter package APPS.AP_ACCTG_DATA_FIX_PKG compile body; Warning:

  • Stop NAL from going offline?

    We've got a few remote (notebook) users who use a VPN (Cisco) to connect to our network via their high-speed ISP. In the cases of many in one geographical area, their NAL goes into offline mode, and stays that way until a human sets it back to online

  • PSRF_REPORT_CREATE message only running when outdesttype is web

    Our team has setup messaging to allow generated reports to be listed in the report manager by using the PSRF_REPORT_CREATE message and the PSRF_REPORTING_FOLDERS queue. When we run a new report with an outdesttype of Web, the message is passed to the