Download sensor acquisition and control system

Transcript
The UBW class consists of a single parallel function for each available function
on the UBW. It also contains the ability to construct a UBW object using either a new or
pre-existing RS-232 connection. This allows for a single UBW connection session to be
passed between different functional sections of the application. Finally, the UBW
contains both a direct-connect and search-connect method of opening its own RS-232
connection as well as getters and setters for all associated private member variables.
Although there are many methods inside the UBW class, the majority of them are
left untouched for the purposes of this project. The entire method list and explanations
on the functionality of each can be found in Appendix D. Only methods used in the
SACS project are described below.
4.1.5.2 - UBW Class Properties
Port Question
The UBW class contains a property called PortQuestion() that can be used to get
or set the unique identifier string. By allowing this, it is possible to have numerous
different SACS devices attached to a single computer, each potentially recording values
from different input devices.
The default identification string is set to match the default firmware version. This
string currently is “UBW.D.130”. The computer will only make a connection to the
UBW if the port-question matches the unique id (currently the version string) of the
corresponding UBW device.
Connection Verification
The UBW class contains a property called conxd() that returns a Boolean value
used to identify the status of the current UBW connection. If the device currently has
an active RS-232 connection, this property will display true.
This property is read-only because the function of connecting/disconnecting is left
up to a different function.
23