LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I communicate between two computer via RS 232 port?

I would like to communicate between two computer in order to servo a motor motion to an acquisition.
Thank you in advance for your answer an your solutions
Message 1 of 5
(4,524 Views)
To me RS-232 communication has always been my preferred means of communication in measurement/control applications in the development/research stage.
Talking to our home-grown electronics, ranging from 24bits ADC system, audio mixers to LED-based scoreboards has never really disappointed me.
Take some time to understand the basics of RS-232 communication in LabVIEW by studying the examples in LabVIEW and on this site.
For tight control in your application, be aware of possible lags caused by the RS-232 buffer.
And handle a time-out/error condition on the servo-PC.

Good luck,

Patrick de Boevere
Serenity systems design (www.serenity.nl)
0 Kudos
Message 2 of 5
(4,524 Views)
PreScript: I did not rate the above answer!

Here's a VI I use to test my instruments - if you have it running on both PCs, you should be able to communicate (with the help of a Null modem between them - cross Rx and Tx) - hopefully this will get you started.

cheers,
Christopher

Christopher G. Relf
Certified LabVIEW Developer

Christopher.Relf@mBox.com.au
International Voicemail & Fax: +61 2 8080 8132
Australian Voicemail & Fax: (02) 8080 8132

---
EULA
1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
2) This email has NOT been scanned for virii - atta
ched file(s), if any, are provided as is. By copying, detaching and/or opening attached files, you agree to indemnify the sender of such responsibility.
3) Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 3 of 5
(4,524 Views)
Hi,

Try this link:
http://www.zytrax.com/tech/layer_1/cables/tech_rs232.htm

I did a quick look on Google... Look at the section that says "RS232 DB9
NULL Modem Pinout". This is most likely what you want. I don't
understand what you're trying to do with the servo motor but if you simply
want to send text messages or data between two PCs at a low data rate,
RS232 is a simple solution.

Have you considered TCP/IP? I think NICs are becoming more common on
modern PCs than even the venerable serial port. I prefer TCP/IP because
it makes my applications more portable in a networked environment. Your
data rate will also be a LOT faster.

-Kevin


In article <5065000000080000002B610000-1031838699000@exchange.ni.com>,
"J?me" wrote:

> I would like
to communicate between two computer in order to servo a
> motor motion to an acquisition.
> Thank you in advance for your answer an your solutions
Message 4 of 5
(4,524 Views)
I invite the person(s) that 1-star rated me to join this discussion. In that way I may get a chance to understand what is wrong with my opinion/answer.

Thanks

Patrick de Boevere
0 Kudos
Message 5 of 5
(4,524 Views)