取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 11 条)
5,057 次查看
Hi,

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

good luck
2 条消息(共 11 条)
5,046 次查看
3 条消息(共 11 条)
5,035 次查看
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 项奖励
4 条消息(共 11 条)
5,004 次查看
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
5 条消息(共 11 条)
4,996 次查看
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 项奖励
6 条消息(共 11 条)
4,961 次查看
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 项奖励
7 条消息(共 11 条)
4,949 次查看
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
8 条消息(共 11 条)
4,939 次查看
Hi!

Thank you for your reply!
I will try it~

Thank you! ^0^
0 项奖励
9 条消息(共 11 条)
4,932 次查看
Hi,

Please try this VI.


Regards
Shivakumar Singh
10 条消息(共 11 条)
4,925 次查看