- 积分
- 34
- 注册时间
- 2002-9-6
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2002-12-23 16:12:04
|
显示全部楼层
来自 吉林吉林
回复: 【求助】LabVIEW中怎么实现串口通信控制阿
请参考:
Problem: How can I control the DTR and RTS serial lines in LabVIEW?
Solution: To control the DTR and RTS serial lines, place a VISA Property Node on the block diagram and select any of the Modem Line Settings properties to read or write individual control lines.
LabVIEW 6.x
Complete the following steps to place a VISA Property Node on the block diagram and select the Modem Line Settings:
Place a Property Node (Functions Palette » Instrument I/O » VISA » VISA Advanced) on the block diagram.
Right-click the Property section of the Property Node.
Select Properties » Modem Line Settings.
Select the appropriate setting (Line CTS State, Line DCD State, Line DSR State, Line DTR State, Line RI State, or Line RTS State).
LabVIEW 5.x
Complete the following steps to place a VISA Property Node on the block diagram and select the Modem Line Settings:
Place a Property Node (Functions Palette » Instrument I/O » VISA) on the block diagram.
Right-click the Property section of the Property Node.
Select Properties » Modem Line Settings.
Select the appropriate setting (Modem CTS State, Modem DCD State, Modem DSR State, Modem DTR State, Modem RI State, or Modem RTS State).
Note: You may only read from or write to the DTR and RTS serial lines. The other serial lines (listed above) are read-only. To change the DTR or RTS serial line properties from read (default) to write, right-click on that property and select Change To Write from the pop-up menu. To change the property back to read, right-click on that property and select Change To Read from the pop-up menu. |
|