AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein daten von gps-maus über Com-Port auslesen
Thema durchsuchen
Ansicht
Themen-Optionen

daten von gps-maus über Com-Port auslesen

Ein Thema von btbe · begonnen am 10. Nov 2004 · letzter Beitrag vom 3. Mai 2008
 
btbe

Registriert seit: 15. Okt 2004
20 Beiträge
 
#9

Re: daten von gps-maus über Com-Port auslesen

  Alt 10. Nov 2004, 22:52
hm.... hab hier mal n ansatz, um die einzelnen elemente einer zeile in das entsprechende array zu schreiben...
Delphi-Quellcode:
procedure TForm1.ComPortTriggerAvail(CP: TObject; Count: Word);
begin
  { OnTriggerAvail; Read the data }
 for I:= 0 to Count -1 do
     Data := ComPort.GetChar;
   Label2.Caption := Label2.Caption + Data;
 if Data = '*then
  begin
   Memo1.Text := Label2.Caption;
   Label2.Caption := '';
  if pos('GPGGA', Label2.Caption) > 0 then
      begin
          while x < length(Label2.Caption) do
             begin
              if Label2.Caption[x] = ',then
                begin
                 y := y + 1;
                 x := x + 1;
                end
               else
                begin
                 GPGGA[y] := Label2.Caption[x];
                end;
             end;
      end;

 Label1.Caption := Label1.Caption + Data;
 end;
end;
komme aber nicht weiter, da wenn ich ein array ausgeben will, kommt diese Fehlermeldung:
Zitat:
Project Project1.exe raised expection class EAccesViolation with message 'Access violation at adress 004741C4 in module 'Project.exe'. Read of adress 00000001'. Process stopped. Use Step or Run to continue.
Also wenn jemand ne Ahnung hat wie ich hier weiter komme oder einen besseren Ansatz hat bitte so schnell wie möglich melden!

thnx
btbe
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz