National Instruments 320682C Musical Toy Instrument User Manual


 
Contents
LabWindows/CVI Standard Libraries x © National Instruments Corporation
ThreadIberr.......................................................................................................4-23
ThreadIbsta.......................................................................................................4-25
Chapter 5
RS-232 Library
.................................................................................................................5-1
RS-232 Library Function Overview.............................................................................5-1
The RS-232 Library Function Panels...............................................................5-1
Using RS-485...................................................................................................5-3
Reporting RS-232 Errors..................................................................................5-3
XModem File Transfer Functions....................................................................5-3
Troubleshooting ...............................................................................................5-3
RS-232 Cable Information ...............................................................................5-4
Handshaking.....................................................................................................5-6
Software Handshaking .........................................................................5-6
Hardware Handshaking ........................................................................5-7
RS-232 Library Function Reference ............................................................................5-8
CloseCom.........................................................................................................5-8
ComBreak.........................................................................................................5-9
ComFromFile ...................................................................................................5-9
ComRd .............................................................................................................5-11
ComRdByte......................................................................................................5-12
ComRdTerm.....................................................................................................5-12
ComSetEscape..................................................................................................5-14
ComToFile .......................................................................................................5-15
ComWrt............................................................................................................5-16
ComWrtByte ....................................................................................................5-17
FlushInQ...........................................................................................................5-18
FlushOutQ ........................................................................................................5-19
GetComStat ......................................................................................................5-19
GetInQLen........................................................................................................5-20
GetOutQLen.....................................................................................................5-21
GetRS232ErrorString.......................................................................................5-22
InstallComCallback..........................................................................................5-22
OpenCom .........................................................................................................5-25
OpenComConfig ..............................................................................................5-26
ReturnRS232Err...............................................................................................5-28
SetComTime ....................................................................................................5-29
SetCTSMode ....................................................................................................5-30
SetXMode.........................................................................................................5-31
XModemConfig ...............................................................................................5-31
XModemReceive..............................................................................................5-33
XModemSend...................................................................................................5-34
Error Conditions...........................................................................................................5-36