LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232: COM1 connect with COM2 in LabVIEW

Hi everyone!

I am using a RS232 cross cable to connect COM1 and COM2 on my PC.

In the same LabVIEW program, I will output some data to COM1 from "Data in",
the data from COM1 will be received at COM2 and show in the "Data out".

What should I do???
0 Kudos
Message 1 of 11
(4,223 Views)
Hi,

Select the visa resource names appropriately and try this vi and try varying the timeout from 1000ms onwards

good luck
Message 2 of 11
(4,212 Views)
Thank you for your reply!

But...
DO you have solutions in LabVIEW 7.0?
I can't open your suggested solution file.

Thanks once more!
0 Kudos
Message 4 of 11
(4,170 Views)
Hi,

Go through the attachment and implement this logic in your system and try. We tried to save the vi in version 7.0, but it gave some error.

Regards
Shivakumar Singh
Message 5 of 11
(4,162 Views)
Just use the shipping example "Basic 2 Port Serial Write and Read" change the VISA resource names accordingly. The example uses a For Loop, you can define how many times you want the write and read happen by wiring in different values to the N (count) terminal.
0 Kudos
Message 6 of 11
(4,127 Views)
Hi spicing!
Thank you for your reply!
And thanks for your solution!

Would you plz tell me more about the functions of the property node in your solution?
And what is an appropriate value of the "time-out"?

Thank you! ^_^
0 Kudos
Message 7 of 11
(4,115 Views)
Hi,

Here we are using property node to give some time to read data from COM port i.e. If Data is available at comport Read VI will read the data and comeout from the read and if data is not available, then it will wait for specified time for the data to available at comport. You have to specify timeout limit in msec. You can give 1000 msec.

Regards
Shivakumar Singh
Message 8 of 11
(4,105 Views)
Hi!

Thank you for your reply!
I will try it~

Thank you! ^0^
0 Kudos
Message 9 of 11
(4,098 Views)
Hi,

Please try this VI.


Regards
Shivakumar Singh
Message 10 of 11
(4,091 Views)