IO.WorkOnline |
Top Previous Next |
This Tag informs Driver's current status and allows starting or stopping the physical layer. ·0 - Driver Offline: The physical layer is closed (stopped). This mode allows a dynamic configuration of Driver parameters using the IO.SetConfigurationParameters Tag ·1 - Driver Online: The physical layer is open (executing). While in Online mode, the physical layer can be connected or disconnected (its current status can be checked on the IO.PhysicalLayerStatus Tag)
In the next example (using E3), the Driver is configured to Offline mode, its COM port is changed, and then configured to Online mode again: ' Configure to Driver to Offline mode
Driver.Write -1, 0, 0, 4, 0
The Write method can fail when configuring the Driver to Online mode (writing the value one). In this case, the Driver remains in Offline mode. The cause of failure can be: ·Type of physical layer incorrectly configured (probably an invalid value was configured in the IO.Type property) ·Driver may have run out of memory ·Physical layer probably did not create its working thread (search the log file for the message "Failed to create physical layer thread!") ·Physical layer could not start. The cause of failure depends on the type of physical layer. It can be an invalid serial port number, failure when starting Windows Sockets, failure when starting TAPI (modem), etc. This cause is recorded on the log file
|