Biomedical Engineering Reference
In-Depth Information
End of Chapter Appendix 2
Start
Create serial port object
Set port properties like baud rate, parity, data bits, stop bits
Set 'event' triggering the properties like buffer size, mode of data
transfer, bytes available function, calling function
Open the serial port and temporary text file for
data storage
'Event'
Generated
?
N
Y
Enter 'callback' function
Pick-up entire buffer data in an array, then
transfer the same in the text file
Increment counter
Transfer
complete
?
N
Y
Stop
Search WWH ::




Custom Search