Campbell-scientific Java PakBus Software Development Kit Instrukcja Użytkownika Strona 10

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 30
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 9
Java PakBus® Software Development Kit
clock set/check, data collection, or sending a file. Each has a
corresponding client interface which will receive status notifications as the
transaction progresses and a completion notification when the transaction
is complete. An application initiates transactions by creating specific
transaction objects and addingthem to the appropriate datalogger object.
All of the other classes in the API are designed as helperclasses for the core
classes mentioned above.
2. Setting up the Network
Setting up the API consists of creating an instance of the Network class. This
class has one constructor which requires a PakBus® address, an input stream,
and an output stream. The PakBus® address must uniquely identify your
application in the PakBus® network in which it will participate. The input and
output streams can be derived from an instance of java.net.Socket or of
javax.comm.CommPort. They could also be derived from some other
communications API supported on your platform. The network object will
listen for incoming messages on the input stream object and will write outgoing
messages to the output stream object. Once the network object has been
created, the application must drive it by calling its check_state() method
periodically. All notifications and activity in the network will result from this
call. The following code fragment shows an example of constructing and
driving a network object:
import com.campbellsci.pakbus.*;
import java.net.*;
class Example2
{
private Network network;
private Socket socket;
private boolean complete;
public void run() throws Exception
{
socket = new Socket("192.168.4.225",6785);
network = new Network(
(short)4079,
socket.getInputStream(),
socket.getOutputStream());
complete = false;
while(!complete)
{
network.check_state();
Thread.sleep(100);
}
}
}
The application shown above doesn’t do much of interest to anyone. It will
accept, but not act on most incoming messages. But, at this point, it is pretty
much useless to us. This can be changed somewhat by adding station objects
to the network. Consider the above example expanded:
2
Przeglądanie stron 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 29 30

Komentarze do niniejszej Instrukcji

Brak uwag

Vertical Teléfonos Ip manuales de usuario

La lista de productos de Vertical Teléfonos Ip contiene 27 manuales de usuario para 8 seleccionados. Todas las guías de usuario en pdf están disponibles para descargar o ver en línea.

Haga clic en el alfabeto a continuación para desplazarse a la lista completa de modelos que comienzan con esa letra

Modelos Tipo de documento
Edge 120
Especificaciones   Vertical Edge 120 Specifications, 146 paginas
Guía de usuario   Vertical Edge 120 User`s guide, 70 paginas
Manual de usuario   DX-120 Brochure, 6 paginas
Manual de instrucciones   Vertical Edge 120 Programming instructions, 504 paginas
Manual de usuario   FAQ - How do I change the time in my VERTICAL (COMDIAL) System:, 1 paginas
Edge 480i
Manual de usuario   FEATURE COMPARISON GUIDE, 10 paginas
Guía de usuario   Vertical Edge 480i User guide [en] , 200 paginas
IP8012
Guía de usuario   Vertical IP8012 User guide, 64 paginas
IP8024
Guía de usuario   Vertical IP8024 User guide, 62 paginas
Guía de instalación   Vertical IP8024 Installation guide, 160 paginas
SBX IP 320
Manual de servicio   Vertical SBX IP 320 Technical data, 452 paginas
Manual de usuario    SBX IP 320 User Guide - Business Communications and Data [en] , 92 paginas
Manual de servicio   Vertical SBX IP 320 Technical data, 270 paginas
Manual de usuario   SBX IP 320 VoiceMail, 3 paginas
SUMMIT IP
Guía de usuario   Vertical SUMMIT IP User guide, 70 paginas
Manual de servicio   Vertical SUMMIT IP Technical data, 854 paginas
Guía de usuario   Vertical SUMMIT IP User guide, 124 paginas
Guía de usuario   Vertical SUMMIT IP User guide, 154 paginas
TeleVantage 7.5
Información técnica   Vertical TeleVantage 7.5 System information, 180 paginas
Manual de usuario   What`s New in TeleVantage 7.5 I. New End User, 13 paginas
Información técnica   Vertical TeleVantage 7.5 System information [en] , 344 paginas
Wave Phone
Guía de instalación   Vertical Wave Phone Installation guide, 1028 paginas
Manual de usuario    Vertical Wave SIP Phone Quick Reference Guide 2.0 SP1 [en] , 2 paginas
Guía de usuario   Vertical Wave Phone User guide, 127 paginas
Manual de usuario   Vertical IP Phone & Vmail Guide, 20 paginas
Guía de usuario   Vertical Wave Phone User guide, 150 paginas
Manual de usuario   Vertical Digital Phone & Vmail Guide, 19 paginas