如何在LABVIEW内关闭一个串口,并且不关闭任何LABVIEW的应用程序?
主要软件: LabVIEW Development Systems
主要软件版本: N/A
主要软件修正版本: N/A
次要软件:
问题: 我想让LABVIEW暂时放弃对一个串口的访问权,从而其他程序可以访问该串口。但是我找不到关闭串口的vi,请问应该如何操作?
解答: 你可以使用一个低级别的串口VI——Close Serial Driver.vi。 在LabVIEW 5.x中, Close Serial Driver.vi 可以在
\Labview\vi.lib\Instr\_sersup.llb.目录下找到。在LabVIEW 6.0中, Close Serial Driver.vi位于
\LabVIEW 6\vi.lib\instr\Serial.llb目录底下。将这个VI包括在应用程序中,就允许其他程序在不退出LABVIEW的情况下使用串口。之后再通过运行Serial Port Init.vi,Serial Write.vi,或者 Serial Read.vi,就可以在LABVIEW中再次访问该串口。
相关链接:
附件:
报告日期: 06/15/1998
最近更新: 03/25/2004
文档编号: 1AE7PUEV
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.