Campbell CR1000 Bedienungsanleitung Seite 18

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 19
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 17
Interfacing the MICROCOM DESIGN GTX Modulator to the Campbell Scientific CR1000 Data Logger PRELIMINARY
A subroutine can be developed which can be called periodically to implement the pass
through mode calls in the CRBASIC source code.
Sub SerialThru()
' handle feed through of comport 1 In
GTXInString=""
SerialIn (GTXInString,Com4,1,10,100) 'read in from GTX
'SerialIn (DummyString,Com4,1,10,1) 'read in from GTX
if (GTXInString <> "") then
SerialOut (ComRS232, GTXInString+LF,"",0,0) 'send to PC Util
SerialOut (Com1, "G2C->"+GTXInString+CRLF,"",0,0)
SerialOut (Com1, CRLF,"",0,100)
Endif
' handle feed through of comport 1 In
GTXOutString =""
SerialIn (GTXOutString,ComRs232,1,10,100) 'read in from PC util
if (GTXOutString <> "") then
SerialOut (Com4, GTXOutString,"",0,0)' send to GTX
SerialOut (Com1, "C2G->"+GTXOutString+CRLF,"",0,0)
SerialOut (Com1, CRLF,"",0,100)
endif
EndSub
The code can be called periodically in a program:
© 2005 Microcom Design Inc. All rights reserved voice: 401.771.1070 Fax:410.771.0018
uAPP222 (v1.0) July 12, 2005 http://www.microcomdesign.com 18
Seitenansicht 17
1 2 ... 13 14 15 16 17 18 19

Kommentare zu diesen Handbüchern

Keine Kommentare