LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus

Solved!
Go to solution

Hi,

I am new to Labview and I am trying to write a code in Labview and I have the Modbus comminication protocal. I want to be able to send messeges through the labview code and ask the inverters, which is connected to PV modules, to give me data and it just send me back the data. this is going to be a RS 232 communication.

Where do I start? please let me know if you know anything about this.

Donya

Message 1 of 37
(4,286 Views)

Start here.

 

You'll have to decide whether you want to use DSC (an extra cost add-on) or the LabVIEW modbus library that is linked in the above tutorial. There have been numerous discussions on modbus. Search the forums and the NI Developer Zone.

Message 2 of 37
(4,276 Views)

Thank you

I will be studying this for a little while and see if I get any where.Smiley Wink

0 Kudos
Message 3 of 37
(4,270 Views)

Hi,

I need to put a code together that would allow me to have a serial communicatio between two computers.

I have started this by using instrument I/O and using the Serial tools.

I need help with hooking them up, I have no idea with one goes first, and I have been opening them and I found the options for parity and flow control and... in the configure serial port and I have no idea how to connect them to each other?!!

Thank youSmiley Happy

Donya

0 Kudos
Message 4 of 37
(4,195 Views)

Hi,

I need to put a code together that would allow me to have a serial communicatio between two computers.

I have started this by using instrument I/O and using the Serial tools.

I need help with hooking them up, I have no idea with one goes first, and I have been opening them and I found the options for parity and flow control and... in the configure serial port and I have no idea how to connect them to each other?!!

Thank youSmiley Happy

Donya

0 Kudos
Message 5 of 37
(4,195 Views)

Try leaving everything in its default values for start.

0 Kudos
Message 6 of 37
(4,189 Views)
Solution
Accepted by topic author Donya

Both ends just need to be set the same. For the physical connection, you need a null modem cable (tx and rx swapped).

 

Why would anyone use serial for communication between 2 pc's instead of an ethernet connection?

0 Kudos
Message 7 of 37
(4,185 Views)

Thats a little complicated, I want to test it by talking with two computers first and then I would be hooking it up to another dvice.

So I have all these Write function and Read function.... and I am not sure what I should be connecting to what?!!

 

0 Kudos
Message 8 of 37
(4,181 Views)

What do you mean? I probably need to give it some values, I will eventually change the parity and start bit and stop bit,.... alll that but for now I need to know how to hook them up to eachother.

?!!

 

0 Kudos
Message 9 of 37
(4,177 Views)

Your approach seems overly complicated and not guaranteed to help much with communicating to an actual instrument. You would need to write some custom code at one end that would emulate the instrument's response. You could do a simple write of anything you want at one end and simply read it at the other. All that you would need is one of the existing serial example programs. Since an instrument would have very specific commands and responses, the simple check would only verify that the com port on your pc is working. A simple loopback on one pc would do the same thing. The instrument you would use might not even use the same type of serial cable. I would suggest you not waste your time and start by verifying communication with a program such as Hyperterminal, Procomm, Putty, or MAX's VISA utility. Then see if there is an existing driver for it (Help>Find Instrument Drivers). Find out more about instrument communication and drivers here.

0 Kudos
Message 10 of 37
(4,164 Views)