05.11.2013 Aufrufe

Projektbericht 796.8 KByte - Technikpreis

Projektbericht 796.8 KByte - Technikpreis

Projektbericht 796.8 KByte - Technikpreis

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

43 D Quellcode<br />

begin<br />

lblCaption.Caption := PaxonStr;<br />

end;<br />

procedure TPaxonThread.SendSensorData();<br />

begin<br />

myString := myStringPointer^;<br />

end;<br />

procedure TPaxonThread.Connect(Call : WideString);<br />

begin<br />

Connection := myPaxon.FindConnection(Call);<br />

PaxonStr := ’Connection gefunden’;<br />

Synchronize(UpdateLabel);<br />

If Connection = Nil Then<br />

begin<br />

Connection := myPaxon.Connect(Call);<br />

PaxonStr := ’Neu verbunden’;<br />

Synchronize(UpdateLabel);<br />

end;<br />

end;<br />

procedure TPaxonThread.SendToMailbox(Einstieg : WideString; Board :<br />

WideString; Betreff : WideString);<br />

begin<br />

Connect(Einstieg);<br />

Connection.SendTextLine(’ ’);<br />

Connection.WaitForText(’=>’);<br />

Connection.SendTextLine(’m’);<br />

Connection.WaitForText(’-->’);<br />

Connection.SendTextLine(’ ’);<br />

Connection.WaitForText(’-->’);<br />

Connection.SendTextLine(’s’ + ’ ’ + Board + ’ ’ + Betreff);<br />

Connection.WaitForText(’:’);<br />

Connection.SendTextLine(’Diese Mail wurde automatisch generiert’);<br />

Synchronize(SendSensorData);<br />

Connection.SendTextLine(myString);<br />

Connection.SendTextLine(’NNNN’);<br />

Connection.WaitForText(’-->’);<br />

Connection.SendTextLine(’ ’);<br />

Connection.WaitForText(’-->’);<br />

Connection.SendTextLine(’q’);<br />

SendMailNext := False;<br />

end;<br />

end.<br />

unit CalibSensor;<br />

interface<br />

uses<br />

SysUtils, Windows, Messages, Classes, Graphics, Controls,<br />

StdCtrls, ExtCtrls, Forms, Dialogs;<br />

type TCalibArray = Array[0..7,0..255] of Single;<br />

type TEinheitArray = Array[0..7] of ShortString;<br />

type<br />

TfrmCalibSensor = class(TForm)<br />

btnOk: TButton;<br />

btnCancel: TButton;<br />

Label1: TLabel;<br />

lblSensorNr: TLabel;<br />

Label2: TLabel;<br />

Label3: TLabel;

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!