Jump to content

inverter voltage and ampere data taking with usb rs485


Recommended Posts

hello, 

i am working with solar inverter and i want to acquire voltage and ampere with USB RS485 as modbus.

i am using LABVIEW 2012 and visa serial in LABVIEW.

i already make it but the chart doesnt show anything.

could you please help or make a little correction in my block diagram.

here is my block diagram *first to acquire voltage

 

thankyou for your kind attention and help :)

Untitled 1.vi

Link to post
  • 2 weeks later...

You will need a Modbus driver. Don't forget to read the whitepapers and the suppliers programming manual.

 

Where can i get that modbus driver? i have been stuck in this project for 1 months arrgh.

i need to display in the labview with graphs for the voltage and current and power.

thankyou =)

Link to post

Shaun has given you the link.

 

What seems that is unclear to you, is what is involved. Modbus is a communication protocol. A way do do things like for example reading or writing numeric values to "registers", by sending formatted messages to the instrument across the serial line, across ethernet, or anything else. As such, you have probably to go to the manual of your instrument, and look up which register corresponds to reading V, I, or what else you need. You can't just expect to write the character "1" to the serial port and expect that the instrument responds in no time with a string, as you're doing in your VI. The modbus library referenced above has VIs for accessing registers, the rest of the information (which register, which port, when, what) you have to provide yourself.

Link to post

Shaun has given you the link.

 

What seems that is unclear to you, is what is involved. Modbus is a communication protocol. A way do do things like for example reading or writing numeric values to "registers", by sending formatted messages to the instrument across the serial line, across ethernet, or anything else. As such, you have probably to go to the manual of your instrument, and look up which register corresponds to reading V, I, or what else you need. You can't just expect to write the character "1" to the serial port and expect that the instrument responds in no time with a string, as you're doing in your VI. The modbus library referenced above has VIs for accessing registers, the rest of the information (which register, which port, when, what) you have to provide yourself.

yes i am very new using this labview. i usually use matlab or qt for programming. i know that labview is more practical but this is the very first time i use it. i dont even have a clue for the modbus library and how to use it =(

Link to post

If your instrument talks modbus (you say), then you have to talk modbus to it. This has little to do with the programming language.

 

I attach a snippet of mine which I've used in the past to check basic communication using the library referred above, hope it helps.

 

ModbusTester.vi

Edited by ensegre
Link to post

If your instrument talks modbus (you say), then you have to talk modbus to it. This has little to do with the programming language.

 

I attach a snippet of mine which I've used in the past to check basic communication using the library referred above, hope it helps.

 

attachicon.gifModbusTester.vi

i am sorry that just now i am replying you, i actually did it! thank to you and now i have more problem in getting the real time data.

you can see my vi there.

btw, thankyou so much for your kind help!

here is my final vi 

#but sadly i cant get the real time data :(

vi.vi

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Benoit
      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       
    • By Benoit
      Name: Calendar XControl
      Submitter: Benoit
      Submitted: 09 Jan 2016
      Category: *Uncertified*
      LabVIEW Version: 2011License Type: BSD (Most common)



      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       

      Click here to download this file
    • By Ulf
      Does anyone have any recommendation of a tool that makes gui testing easier and automatic for LabVIEW? I have heard that some use AutoIT, is it any good?
    • By Gan Uesli Starling
      I've had a request to disable or modify the RED X at top right of MS Window for a LabVIEW program.
      Everyone here knows to ONLY use File->Exit to quit from LabVIEW. Sometimes, though a harried operator on a PC with plural windows will accidentally click that RED X thinking it's the overlaying ap's window. This, of course, wreaks havoc on the test underway. Would be nice to make that impossible, or at least doubly hard.
      So...is there a way to do that? Or alternately, to cause an ARE YOU SURE? intermediary window?
      TIA,
      Gan
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.