LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling RTS on a Com port

Hi,

Is there anyone who has code to control the RTS line of a com port using LW/CVI?

Jim
0 Kudos
Message 1 of 4
(3,244 Views)
In other words : What does THIS mean to you?

VI_ATTR_ASRL_RTS_STATE
Resource Classes
Serial INSTR

Attribute Information
Access Privilege Data Type Range Default
Read/Write
Global
ViInt16
VI_STATE_ASSERTED (1)
VI_STATE_UNASSERTED (0)
VI_STATE_UNKNOWN (-1)
N/A


Description
VI_ATTR_ASRL_RTS_STATE is used to manually assert or unassert the Request To Send (RTS) output signal.

When the VI_ATTR_ASRL_FLOW_CNTRL attribute is set to VI_ASRL_FLOW_RTS_CTS, this attribute is Read Only. Querying the value will return VI_STATE_UNKNOWN.
0 Kudos
Message 2 of 4
(3,238 Views)
Well,

It looks like I managed to dig far enough to find the answer. Too bad there was no easy path.

After a lot of trial and error, I found out how to use viSetAttribute(). Of course, that was after a few hours of searching for the meaning of viOpenDefaultRM() and viOpen().

If I get the time (since I wasted so much making this work) I'll post a .zip file with a good example.

NI gurus - Can you please write a 'good' online reference? Please?! Maybe include a few cross references and 'hints' along the way?

Till then ...
0 Kudos
Message 3 of 4
(3,229 Views)
Hi Jim,

I did some research to see if there was any info on controlling the RTS on a COM port in LabWindows/CVI but the only thing I could find was info for how to do it in LabVIEW. Here is that document:
http://digital.ni.com/public.nsf/websearch/1ECEFAA7AD52994986256966005356EA?OpenDocument

Hopefully we can get something similar to this for CVI soon. Thanks for the suggestion.

JenK
0 Kudos
Message 4 of 4
(3,197 Views)