<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TChart]]></title><description><![CDATA[<p>Hallo,<br />
ich bastele gerade eine Datenaufnahme, die Daten mit Hilfe des TCharts darstellt. Die Daten befinden sich in Memo-Boxen und sollen von dort aus gezeichnet werden.<br />
Die Befehlszeile sieht so aus:<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),StrToInt(Memo3-&gt;Lines-&gt;Strings[i]),&quot;&quot;, clRed);<br />
Leider funktionier das ganze nicht für größere Zahlen (z.B. 32000 oder 64000). Liegts vielleicht am Int? Wo liegt also das Problem?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/130648/tchart</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 00:10:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/130648.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Dec 2005 19:34:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TChart on Sun, 25 Dec 2005 19:34:32 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bastele gerade eine Datenaufnahme, die Daten mit Hilfe des TCharts darstellt. Die Daten befinden sich in Memo-Boxen und sollen von dort aus gezeichnet werden.<br />
Die Befehlszeile sieht so aus:<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),StrToInt(Memo3-&gt;Lines-&gt;Strings[i]),&quot;&quot;, clRed);<br />
Leider funktionier das ganze nicht für größere Zahlen (z.B. 32000 oder 64000). Liegts vielleicht am Int? Wo liegt also das Problem?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949770</guid><dc:creator><![CDATA[StartERrror]]></dc:creator><pubDate>Sun, 25 Dec 2005 19:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Sun, 25 Dec 2005 19:40:24 GMT]]></title><description><![CDATA[<p>Also ein Integer geht nur von -32 768 bis +32 767. Von daher weiß ich nicht wieso er 32 000 nicht mag. Aber probier doch mal das ganze mit float zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949773</guid><dc:creator><![CDATA[IchDuErSieEs]]></dc:creator><pubDate>Sun, 25 Dec 2005 19:40:24 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Sun, 25 Dec 2005 19:49:30 GMT]]></title><description><![CDATA[<p>Unter 32 Bit geht ein INT</p>
<p>int 32 -2,147,483,648 bis 2,147,483,647</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949780</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sun, 25 Dec 2005 19:49:30 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Sun, 25 Dec 2005 23:37:04 GMT]]></title><description><![CDATA[<p>Also ich habe es mit:<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToFloat(Memo7-&gt;Lines-&gt;Strings[i]),StrToFloat(Memo3-&gt;Lines-&gt;Strings[i]),&quot;&quot;, clRed);<br />
ausprobiert. Geht leider auch nicht! Die Fehlermeldung lautet: &quot;Exception der Klasse EAccessViolation aufgetreten. Meldung: ´Zugriffsverletzung bei Adresse 40901083 in MOdul ´tee60.bpl´. Schreiben von Adresse 00920000´.<br />
Also der Bereich der Messwerte geht von 0 bis 65000. Klar, dass das mit Int nicht geht...aber mit StrToFloat und StrToInt64 gehts auch nicht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/949913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949913</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Sun, 25 Dec 2005 23:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 06:49:24 GMT]]></title><description><![CDATA[<blockquote>
<p>Klar, dass das mit Int nicht geht</p>
</blockquote>
<p>Warum nicht?</p>
<p>Was sollte an 65000 mit int nicht gehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949985</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 26 Dec 2005 06:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 07:06:29 GMT]]></title><description><![CDATA[<p>Oder sind Kommazahlen in der Memofeldern?</p>
<p>Vielleicht mal genaue Auskünfte und der Hinweis auf</p>
<p>StrToFloatDef / StrToIntDef</p>
<p>der Umwandlungsfehler abfangen kann. Und wie aus der Hilfe zu ersehen erwartet die Funktion ADDXY double als Parameter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949990</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 26 Dec 2005 07:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 08:50:22 GMT]]></title><description><![CDATA[<p>Hier ist mein Code:<br />
Chart1-&gt;BottomAxis-&gt;Title-&gt;Caption = &quot;Zeit [µs]&quot;;<br />
Chart1-&gt;LeftAxis-&gt;Title-&gt;Caption = &quot;Massenspektrometer&quot;;<br />
int a = Memo3-&gt;Lines-&gt;Count;<br />
int b = Memo7-&gt;Lines-&gt;Count;<br />
if (a==b)<br />
{<br />
Chart1-&gt;Series[1]-&gt;Clear();<br />
for(int i=0; i&lt;a; i++)<br />
{<br />
double h = StrToInt64(Memo3-&gt;Lines-&gt;Strings[i]); // StrToInt(Memo3-&gt;Lines-&gt;Strings[i])<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),h,&quot;&quot;, clRed);<br />
}<br />
}</p>
<p>Zunächst werden also die Achsen beschriftet, dann die zwei Memo Boxen 3 und 7 verglichen, ob sie die gleiche Anzahl an Elementen beinhalten. Wenn dies so ist, wird der Graph gezeichnet. Das klappt bei leider bei Zahlen außerhalb des INT Bereichs nicht! ...der Debugger sagt, dass &quot;double h&quot; den Richtigen Wert hat. Der Fehler tritt demnach in der AddXY Funktion auf! Warum??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/949998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949998</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 08:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 09:04:56 GMT]]></title><description><![CDATA[<p>Du hast also Zahlen außerhalb von</p>
<p>-2147483648 bis 2147483647<br />
???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950001</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950001</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 26 Dec 2005 09:04:56 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 09:38:55 GMT]]></title><description><![CDATA[<p>Nein, maximal 16Bit also 65535. Ich hab echt keine Ahnung, warum das nicht geht! In den Memo-Fenstern, in denen nur Werte unter 1000 stehen, geht der TChart ohne Probleme!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950014</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 09:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 09:46:59 GMT]]></title><description><![CDATA[<p>Sorry ich verstehs nicht:</p>
<p>Was hat ein 16-Bit Int mit dem Problem zu tun?</p>
<p>Du hast ein 16-Bit Compiler/ Programm?</p>
<p>Die Funktion will double haben!</p>
<p>Was hast du in den Memofeldern stehen?? Ganzzahlen oder Kommawerte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950020</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 26 Dec 2005 09:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 10:18:00 GMT]]></title><description><![CDATA[<p>In den Memos stehen ganze Zahheln zwischen 0 und 65500...und diese will ich grafisch darstellen! Dafür verwende ich den TChart und das klappt auch für kleine Zahlen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950048</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 10:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 10:39:07 GMT]]></title><description><![CDATA[<p>Du hast eine Schleife die von der Anzahl der Memolines abhängt. Dann liest du mit ADDXY die Werte ins Chart ein. Woher kommt h?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950065</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Mon, 26 Dec 2005 10:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 10:52:13 GMT]]></title><description><![CDATA[<p>Ursprünglich sah es so aus:<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),StrToInt(Memo3-&gt;Lines-&gt;Strings[i]),&quot;&quot;, clRed);</p>
<p>Der zweite Versuch sieht so aus:<br />
double h = StrToInt64(Memo3-&gt;Lines-&gt;Strings[i]);<br />
Chart1-&gt;Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),h,&quot;&quot;, clRed);</p>
<p>Dort wollte ich sicher sein, dass der Funktion AddXY auch der richtige Wert übergeben wird. (Zahl (0 bis 65500) vom Typ double). Durch das Einfügen eines Breakpoints konnte ich sehen, dass h den Wert aus dem Memo Fenster hat!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950080</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 10:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 11:07:41 GMT]]></title><description><![CDATA[<p>Du kannst auf jeden Fall über 32000 Werte hinzufügen:</p>
<pre><code class="language-cpp">for (int x=0; x&lt;=330000; x++)
 {
  Series1-&gt;AddXY(x,sin(x),x,clRed);
 }
</code></pre>
<p>Ist zwar ein wenig sinnfrei...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950094</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Mon, 26 Dec 2005 11:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 11:12:58 GMT]]></title><description><![CDATA[<p>und floats gehen auch:</p>
<pre><code class="language-cpp">for (float x=0; x&lt;=10; x=x+0.1)
 {
  Series1-&gt;AddXY(x,sin(x),x,clRed);
 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/950100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950100</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Mon, 26 Dec 2005 11:12:58 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 12:31:47 GMT]]></title><description><![CDATA[<p>Das Problem ist nicht die Anzahl der Werte, sondern der Wert selber! Ist der Wert z.B. 6 geht alles super, ist der Wert z.B. 65000, dann geht nix mehr!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950164</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 12:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 12:53:56 GMT]]></title><description><![CDATA[<p>Wenn du dir einen Button aufs Form ziehst und den Code mit dem Sinus (oben) einfügst und sin durch x^2 ersetzt, siehst du das auch Werte über 32000 kein Problem darstellen (#include &lt;math.h&gt; nicht vergessen). Dein Problem liegt darin, daß du auf einen Wert zugreifst der nicht &quot;da ist. Das ist zumindest meine Vermutung oder wie Christian meinte ein . oder , falsch interpretiert wird.<br />
Aber: es liegt nicht am Chart, daß Werte über 32000 nicht akzeptiert werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950178</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Mon, 26 Dec 2005 12:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 12:56:27 GMT]]></title><description><![CDATA[<p>Probiers mal so:</p>
<pre><code class="language-cpp">Series[1]-&gt;AddXY(StrToInt(Memo7-&gt;Lines-&gt;Strings[i]),i,StrToInt(Memo7-&gt;Lines-&gt;Strings[i]), clRed);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/950180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950180</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Mon, 26 Dec 2005 12:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 13:01:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">Series[1]-&gt;AddXY(70000,i,90000, clRed);
</code></pre>
<p>So würde ich ja die Fehlersuche beginnen<br />
dann jeden Druchlauf durch das Memo debuggen<br />
Werte ggf. mit Messagebox ausgeben lassen<br />
oder in ein neues TMemo schreiben<br />
Oder loggen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950184</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 26 Dec 2005 13:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Mon, 26 Dec 2005 19:19:45 GMT]]></title><description><![CDATA[<p>So, die Lösung des Problems:<br />
Chart1-&gt;LeftAxis-&gt;Maximum = 66000;<br />
Mit der Automatik funktion ging es einfach nicht...warum auch immer!<br />
Danke euch für eure Mithilfe!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950373</guid><dc:creator><![CDATA[Saibot78]]></dc:creator><pubDate>Mon, 26 Dec 2005 19:19:45 GMT</pubDate></item><item><title><![CDATA[Reply to TChart on Tue, 27 Dec 2005 08:02:16 GMT]]></title><description><![CDATA[<p>Stimmt, da hast du recht. Sorry, daß ich nicht gleich drauf gekommen bin. Bei der der Fehlermeldung:</p>
<blockquote>
<p>Exception der Klasse EAccessViolation aufgetreten. Meldung: ´Zugriffsverletzung bei Adresse 40901083 in MOdul ´tee60.bpl´. Schreiben von Adresse 00920000´.</p>
</blockquote>
<p>konnte nur:</p>
<blockquote>
<p>Chart1-&gt;LeftAxis-&gt;Maximum = 66000;</p>
</blockquote>
<p>die Lösung sein. Danke, daß du die Lösung hier auch anderen zur Verfügung stellst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/950557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/950557</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Tue, 27 Dec 2005 08:02:16 GMT</pubDate></item></channel></rss>