National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 5 RS-232 Library
© National Instruments Corporation 5-19 LabWindows/CVI Standard Libraries
FlushOutQ
int
status
=
FlushOutQ
(int
COMPort
);
Purpose
Removes all characters from the output queue of the specified port.
Parameter
Input
COMPort
integer Range 1 through 32.
Return Value
status
integer Refer to Error Codes in
Table 5-6.
Using This Function
The function returns an error if the port is not open or if
COMPort
is invalid.
GetComStat
int
status = GetComStat
(int
COMPort
);
Purpose
Returns information about the status of the specified COM port. COM port conditions are
accumulated until you call GetComStat.
Parameter
Input
COMPort
integer Range 1 through 16.
Return Value
status
integer Bits indicate COM port status.
<0 Error. Refer to Table 5-5.
Using This Function
Table 5-5 lists definitions of specific bits in the return value. Several bits can be set to indicate
the presence of more than one condition.