Read power meter in LabVIEW via RS-232/RS-485

Hello!

I have a power meter, an advanced WM14 DIN power Analyzer. I want to display different values, Kwh, WILL, etc. Kvar, the meter in the graphs in labview. I have just a basic knowledge of Modbus RTU and with RS-232 connection. But I don't know how to make it work with labview. To my counter, I plugged a converter Moxa TCC-100 (see attachments) RS - 485 to RS-232, given that my electricity meter works only with RS-485.

The converter, I have an adapter usb to RS - 232 (see attachment) to COM3 on my PC.

Perhaps the easiest way would have been the connection directly http://sine.ni.com/nips/cds/view/p/lang/sv/nid/12845 . But I have not bought!

So now you know the configuration of the connection, drivers for the usb adapter is installed and also VISA drivers. I found no good examples explaining how you can do with programs and data sending and reciving.

I have google around and discovered that you use read/write VISA blocks, and that there is a library, Modbus, you could use. I installed the library, but I don't know how to connect with my electricity meter.

I have a communication protocol to my electricity meter, but I don't know how to use it.

I'm a little stuck and don't really know where to start. But my understanding of modbus, such things should be easy to do, so I think that's not too difficult to learn.

Is there anyone who could explain how these work thing or if there is something I could read or see?

Best regards Maurlind


Tags: NI Hardware

Similar Questions

  • Power Meter Modbus rs485 via 9871

    Hello

    I'm under Labview 2015

    I'm currently trying to connect has the place D Pm820 (meter) NI 9871 module in a crio 9076. The project is supposed to read the performance data in the registers of the meter (current, voltage, etc.) using the port rs485 on the back of the meter.

    The pm820 has a pinout for rs485 2-wire with 1 (-) 2 (+) and a 3rd Armor/ground wire. The pm820 meter is a slave device that has several different protocols that it can run on (Modbus RTU/ACII8/7 and JBUS).

    The setting of the counter are:

    Protocol: Modbus RTU

    Address: 1

    Baud rate: 9600

    Parity: None

    I use the module 9871 for device communication for the cRio

    I use the power cord that came with the module 9871 RJ50 to db9 and have the pins 4 and 8 rider (TXD + TXD +), and then connected to the (+) 5 and 9 meter jumper pins (-RXD, TXD) - and then wired to the (-) meter and ground on pin 1. I have read, it's how wire you the db9 connection rs485 2-wire.

    My first goal is just to get the communication with the power meter so that the value that I see in the registry, it is what I should see.

    I started using an example VI for holding registers (master modbus on target RT) reading as labview was pre-constructed and changed it so that its contribution would be to port 1 on the 9871 as created controls for my run configuration. Other I left the rest of the VI that it has been opened.

    When I run the VI I see numbers appear in the registry list, but they have nothing to do with the power meter. I unplugged the power meter and still got the same result however if you unplug the cable connection the 9871 1 VI will be a mistake (as expected). I have the feeling that the labview speaks to itself through the 9871, but I'm not sure. I looked at other posts, trying to find a solution and came across a mention of having to set the thread mode, but I can't find a way to do it using the modbus library.  However I could not find an example reading VISA registers the using visa I see there is a way to do it.

    I enclose a picture of my VI and the front panel to show what I mean.

    If I could help either make my VI work or at least get pointed in the right direction that would be great. I'm not against the use of the Visa library either. Also if you have examples or resources that would allow that they would be greatly appreciated

    It's just a part of my project but just get work communication is my main priority at the moment.

    Thanks in advance,

    Mike

  • T500 Vista Enterprise - can not read power meter on taskbar

    Just past to my new T500.  It is running Vista.  For some reason any gauge in the task bar appears, but the percentage or the time inside the battery icon in the taskbar is almost impossible to read.   The only way I can get the info is to place the mouse on the icon.    Someone at - it works in it, or have any suggestions?

    See you soon

    Mike

    Found the answer... is transparency.   I had disabled... enabled and I'm good to go.

    See you soon

    Mike

  • Order EV232 Consort power via RS - 232

    Hello

    I am completely new in the world of Labview. I started yesterday to an internship in a laboratory of protein engineering and my first duty is to create a Labview interface that allows to control a power source (IE EV232 Consort) for an application of electrophoresis. The power supply is connected to a MOXA multiport via RS-232 serial card, which is in turn connected to the PC.

    As I said, I am completely new to Labview, after having only some really basic programming class. I have never had the opportunity to touch any material and I am completely at a loss to how say the PC or Labview to connect to the power supply, and I found no driver that corresponds to the power supply. I am aware that it is a really basic question, please keep in mind that I don't really know where to start.

    Good day.


  • multi channels data acquisition, a single frequency, counter a pulse, two voltage inputs, a power meter (by USB) and an analog output spontaneous and recording

    Hello

    I have a power meter which provide the USB driver and a Labview program to get the data and NI USB-6221. The project I am currently working on the needs of:

    1 acquire two signals (inputs of simple tension), pressure frequency KHz

    2. acquire a flow signal, the output signal is 0 to 5V pulse, each pulse means 0.4 ml volume. So I use a voltage inflows to count impulses in certain period of time (in this case, 1 S) for water flow. ; KHz sampling frequency and the 1 Hz update rate

    3. acquire a signal of engine speed. The output signal is pulse square wave whose frequency is related to the speed. I use a REIT port to measure the frequency. Sampling rate: Auto

    4 give output voltage sine or square wave, I use AO do that.output rate: Auto

    5 acquiring by VISA electricity meter data.  Data update rate: every 50ms

    Currently, all the 5 tasks work well separately. But when I put them together, some signals are beginning to hang, for example, pressure signals sometimes give nothing.

    Another problem is the data record. I programmed the VI in such a way that whenever I press the button 'save start', he begins to record data and save them in a .cvs file. For some reason, I always get only the data in the first table. Coult someone help me? I download my code as follows

    Hello

    What I meant by open, write, close.  For any type of file you are using.

    Open the file, which produces a reference, then put the mention in a registry to offset.

    Write data, using the function write (for this type of file) and the reference.

    When you are finished, close the file reference.

    Writing in the spreadsheet opens, written, close all at once.  It is very good for this type of application.

    ***

    The issue of the loop is more general.  I would like to say first of all, I want to say that since each loop works on its own, it is own VI, and that this program has put all this into a single VI, which has a method to solve the problem is to disable all the loops and allow them one at a time to see if there is a culprit responsible for.

    Using multiple loops executes the code at the same time, and some loops would be cycle faster than others, especially if some of them are loops just as they are.

    Communication between the loops is a test to the address if necessary.

    Running all these signals through different loops DAQ must also be examined.  Don't know what questions are for read and write somewhat randomly in the channels.

  • How can I get the digital power meter?

    How can I get the digital power meter?

    I use a method similar to the example below to measure the market factor using the inputs of a multifunction data acquisition meter.  If the duty cycle is 0% or 100% for a given period, DAQ reading times out and returns an error.  In this case, I would get the digital state of the counter of entry so I can put as cycle to 0% or 100%.  I want to do it without knowing the digital port and line the entrance of counter... for example I would like to continue referencing DAQ/ctrX since I already have this information.

    The application uses an M series: PXI-6229 DAQ and LabVIEW 2011 to make a system customized for VeriStand.

    https://decibel.NI.com/content/docs/doc-12396

    For the moment I wired the block diagram to add a case structure to check the meter ID and string constants to set the identifier of digital input, as they share the physical connection.  As much as I can say that makes the specific code for the PXI-6229 (or any DAQ with only two counters that share connections with p2.1 and p) 1.4

    I have attached the VI sub.

    When the device is used with a different data acquisition, I can add the connection and/or separate control.  Looks like at least one will be necessary given that the meter can only detect the edges... I think it was the piece of information I needed.

    Thanks for your help!

  • GPIB error message (VISA?) when you access a power meter HP E4419B (double channel)

    Hello

    I used a GPIB-USB-B adapter to access the E4419B meter, via a Calibration of IFR application software. The required initial standard test equipment is an E4418B. During the initialization process, there is always a message:

    "Initialization error: initialization of the HP4418 Power meter, error error: interface type is valid, but the number of specified interface is not configured."

    He was waiting for me that software has always controlled the unit later in some way (i.e., cal sensor, etc.). But that would creat some other comm failure in the race.

    I would like to know, if E4418B and E4419B are compatible with each other insofar as NEITHER Visa is concerned, and it is ' has some sort of screening OR the part number? The software itself is not all flexbility to do.

    Thanks in advance.

    Simon

    Simon,

    For the 19 do not work which suggests that there are no channel selection. Looking at the programming specification for E4418/E4419 (Yes, it the same specification) suggest the same programming codes the only difference is that the E4419 has two channels.

    The other would probably be during initialization and query software maybe be looking for E4418 instead of E441x and ignoring the last character.

  • Reactive power meter in Multisim

    Hello, is there a way to create a phase three reactive power meter using the components/instruments in Multisim v12?

    Thanks in advance!

    Hi Tobster

    (1) Yes... Conexion Aron is the same thing with 2 wattmeter method.

    (2) the connection is good. But the formula is Q = sqrt (3) (XWM2-XWM3)

    (XWM2 + XWM3) =P

    SQRT (3) (XWM2-XWM3) = Q

    S = P + JQ


    ATT:

    Alvaro Tasco

  • How to turn on the power meter to the battery status?

    Hello

    We develop a laptop with battery backup smart power. It is to have 2 batteries battery charger (linear LT1760) and intelligent (energy inspired). LT1760 have 2 SMBus port for 2 batteries and 1 for the communication to the host. We have linked this SMBus port to map host mother SMBus with appropriate voltage level shifter. The motherboard chipset is ICH8M.

    After the installation of the Windows operating system (XP Professional SP-3) and chipset the SMBus driver installation, on power options there is no tab counter and alarm power. So, we can not able to allow the State to feeding on the taskbar. In device manager there is no battery material. How put us this power meter tab. Please, help us to do so.
    Kind regards
    Bala

    Hi Bala,

    Thanks for posting your question in the Microsoft Community Forum.

    According the information, you develop laptop with battery backup smart power.
    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for further assistance. You can follow the link to your question:

    MSDN forums

    Using the windows-related issues feel free to post on the Microsoft Community Forum.

  • Lost the power meter of my office - and it is therefore more 'selectable' inside the 'Settings' box of Notifications. Its information line shows currently in gray (unselectable) text instead of the text in black (of your choice).

    I lost the power meter of my office - this little icon that shows when your laptop is plugged in the current House, and where your battery level is when you're not connected to the power of the House

    The problem I found is that it does not appear in mode 'selection' in the 'Settings' box of Notifications.
    Its information line currently shows the text in gray (unselectable) color rather than black (selectable).

    For unknown reasons, the tutorial of vistax64 does not help, so I don't see why not, there is another way...

    Do a system restore. Choose the date where all the icons in the taskbar were present and functional as your restore point.

    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Question about the accuracy of the Total remaining time for battery in Power Meter

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

    The remaining computing power comes from the numere questioning power management drivers and is a fairly complex calculation based on current usage (the amount of energy is consumed), the capacity of the battery (what total capacity is left and how fully charged is battery) and can also vary depending on what else is plugged into the USB port of the computer , what accessories (memory, video card, etc.) are installed, how good or bad, the battery is to maintain a charge and so on.  There is no particular reason to believe that maybe outside the right-out-of-the-box everything two laptops will show the same calculation even if they are all the same brand and model.

    "Horky.Chen" wrote in the new message: * e-mail address is removed from the privacy... *

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

  • Access to the use of memory and processing power charge connect 6224 via SNMP.

    Hi support them

    Is it possible to access the use of memory and processing power charge connect 6224 via SNMP? If possible, should the mib I use?

    Thanks in advance

    Rogerio

    When looking through the available MIB found in the zip file for download of the latest firmware.  I see that the MIB fastpathswitching mentions 'agentSwitchCpuProcessGroup '.

    MIB fastpathlogging has 'agentLogInMemoryConfigGroup '.

    There is no reference document material about what offer different MIB.

    I hope this helps.

  • How can I get a copy of Adobe Reader or similar to distrbute via Group Policy?

    How can I get a copy of Adobe Reader or similar to distrbute via Group Policy?  Why don't post it a verstion dispributable on your website?

    Hello

    Adobe Reader software is available for distribution beyond single-user installation and can be deployed in an organization.

    Please take a look at this link which provides more information and allows you to apply for distribution:

    http://www.Adobe.com/products/reader/distribution.html

    I hope this helps.

    Thank you

  • How to read a signal of temperature continuous of a pyrometer via RS - 232

    I am currently reading and chart of a pyrometer Pyrofiber Lab that arrives via an RS - 232, a continuous signal cable. As much as I know there is no device driver for this instrument (or any other pyrometers).

    If I the pyrometer measures alone I can get these in LabView using the Assistant Instrument i/o, but only as a string reading ABC ' 'value emmisivity' "" "corrected for the temperature" "and not as individual numbers or data that I can use/chart. If I have the pyrometer in high mode baud rate (which is the mode in which I need), I can't read the signal at all. How can I get LabView to read continuous (and save or graphic) of the input signal? And is it possible to analyze the signal when it comes as a string with ""time""emissivity""temperature""fixed temperature "?

    I am very new to LabView (and programming in general), so that advice on a good place to start would be appreciated.

    You should start by reading the manual of programming. Instruments of series such as this one are unique in how the communication interface is implemented it is quite difficult to give any kind of specific help. I suggest that you start to read/control from a program of emulation of terminal as Hypertermina, Procomm, etc before attempting to write code. Then, you can view examples of shipping communication series to see how you could write the program. Personally, I have never used the Instrument i/o Assistant.

    p.s. attaching the manual would go a long way to get more help.

  • Reading from the sensor to LabView via rs232 or Subvi problem

    I'm quite new to LabView and not too experienced with instrument control so I was wondering if someone could help me to solve my problem?

    Currently, I'm using LabView 2011 and I'm trying to read pressure DualGauge of Pfeiffer (TPG 262) pressure sensor and display the readings of two pressure on LabView.  However, when I run my program, the pressure readings are not displayed - what is displayed are default 0.00 if same mBar pressure reading a reading of the display of the DualGauge probe.  To connect the sensor, I use a RS232 cable and have managed to find the device on my device manager, so I don't think that the connection is the problem (I've also seen the port appears in the Device Manager, when I connected the sensor via RS232 and USB in my computer).  I also use Subvi Pfeiffer in my code, and I suspect that the problem may be in there.

    Attached is my code and here are links to the manual of the DualGauge and the driver of the software LabView of Pfeiffer

    Double manual gauge - p. 23 and 68 are probably the only things related to the RS232 connection.

    http://www.idealvac.com/files/brochures/Pfeiffer_TPG262_Operating_Instructions.PDF

    DualGauge LabView driver - software Pfeiffer double gauge LabView driver 2009

    http://www.Pfeiffer-vacuum.com/products/measurement/activeline/measurement-equipment/OnlineCatalog.a...

    Any help is very appreciated!

    -Candice

    You have not tested really do anything. Devices and MAX Manager displays only the com port that you added to the computer. It does nothing to verify that an instrument is truly connected. You might have the wrong settings of com or the wrong type of cable serial (null-modem is required). I suggest that you start with program such as hyperterminal, PuTTY or MAX and try something simple. It seems that you will receive an acknowledgement returned by the instrument when a correct command is received. Make sure that this simple step that happens.

Maybe you are looking for

  • In the bird of fire, I have loss of all messages; must fix whenever I log on

    My wife and I have separate emails, both are available on Thunderbird. Every time one of us open a session, all messages have gone replace only with very light diagonal stripes of roses. Messages for each address can be retrieved by right-clicking on

  • Double Instance of one button

    Hi guys I have a structure of the event which handles both cases, one of them is to write some external hardware and the other is to read. There are 2 methods of reading and writing to this part through his Volatile and Non Volatile memory. To choose

  • e9110t Power Supply Upgrade

    Good, finally found the power mentioned in my last thread and is been installed today. The only thing is that nothing lights up. Am I missing something? I reconnected it allt he same points with old food and here I am able to use my computer. It coul

  • Z3 Compact is amazing! But we can't get things to work...

    Hello world This is my first Sony phone, I bought to replace my S4 Galaxy. Gone this route because of the reported impressive battery life and because I get fed up with such a "big" phone and wanted something small. The lighthouse-speced Z3 Compact w

  • Creating a Bar Code Android instead of APK file

    Is it possible that you can create a file "Code Android" bar and not the APK? When I renamed the zip file bar and open archive, I see that the conversion is essentially just a MANIFEST file next to the original apk file. But I'm looking for a file ba