Opening a comm port:
Closing a comm port.
I've attached a sample that you can find here:
http://www.midondesign.com/TEMP08/P08HS_SETUPT8.html
hs.OpenComPort(1,"9600,n,8,1",1,"com1_event.txt","main")
hs.CloseComPort("1")
http://www.midondesign.com/TEMP08/P08HS_SETUPT8.html