08-04-2009 11:27 PM
Hi everyone.
I have 2 PCs connected to each other with a RS-232 cable(Crossover cable using two DB9 female conenctors by connecting 5-5, 2-3 and 3-2 (pins 2 and 3 are crossed)). I intend to use just LabVIEW write data from one PC to the 2nd PC. The 2nd PC will then read the data(something like what I can do with Hyperterminal). I have read through many posts and have seen the "Basic Serial Write and Read.vi" and "Advanced Serial Write and Read.vi" examples.
I have tried running the examples and nothing happens (nothing seems written and read). I am a beginner in LabVIEW and have no experience at all in this kind of communication at all and I do not understand the examples given and posts people have put up. I still do not understand how the VISA functions really work.
In conclusion, I really need guidance on this. First of all, is it possible to accomplish the task with just the LabVIEW software and the DB9 connectors connected to the 2 computers which I have mentioned earlier?
If it is possible, I really need guidance on how can I accomplish the task(in terms of programming in LabVIEW 8.6)? If not, what can I do on my side(either hardware or software)?
Any help that would answer my queries and solve my problems would really be much appreciated. Thanks in advance.
Regards,
Jonathan
08-05-2009 09:07 AM
It's certainly possible to communicate between 2 pc's. If you have confirmed that it works with Hyperterminal, then VISA should work.
Attached are a couple of basic programs. One just does a write and the other just does a read. If these work, then you can modify them to do both a read and a write. Just place them on your separate pc's and before running, select the com port.
08-05-2009 07:41 PM