Campbell Scientific LoggerNet Server SDK User Manual

Page 21

Advertising
background image

Section 3. Developing an Application Using the CsiServer Control

In order to stop the LoggerNet server, use the method stopServer(). A basic
example of code used to stop the LoggerNet server is found in the following
table:

Private Sub cmdStop_Click()
'Stop the LoggerNet Server
If CsiServer.serverStarted Then
CsiServer.stopServer
txtServer.Text = "Server Stopped"
cmdStop.Enabled

=

False

cmdStart.Enabled = True
Else
txtServer.Text = "Server Already Stopped"
End

If

End Sub

Add additional functionality and objects as necessary to meet the specific
requirements of your application. Complete examples using the CsiServer
control are included with the LoggerNet Server SDK installation.

3-3

Advertising