<?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[NI Measurement St. f. Visual C++ (waveformGraph Object)]]></title><description><![CDATA[<p>Hi,<br />
ich habe das Measurement Studio von NI in Microsoft Visual C++ eingebunden und möchte gerne einen Graphen (X,Y) mit Hilfe von &quot;Waveformgraph&quot; aus der Toolbox darstellen.<br />
In der entsprechenden Klasse aktualisiert ein Timer sowohl die Werte für X und Y als auch den Graphen.Der Timer ruft die Funktion DoPlot auf:<br />
void ThreadWinApp::Form::DoPlot(unsigned int itimercount)<br />
{<br />
struct_test TSP;<br />
calculation^ ThrE;<br />
TSP=ThrE-&gt;DoReturn();<br />
this-&gt;label1-&gt;Text=TSP.m.ToString();<br />
this-&gt;label2-&gt;Text=TSP.z.ToString();<br />
this-&gt;label3-&gt;Text=ThrE-&gt;FromCharToSystemString(<a href="http://TSP.name" rel="nofollow">TSP.name</a>);<br />
this-&gt;meter1-&gt;Value=TSP.m;<br />
this-&gt;meter2-&gt;Value=TSP.z;</p>
<p>//this-&gt;waveformGraph1-&gt;PlotX((double) itimercount);//ev. unnötig<br />
this-&gt;waveformGraph1-&gt;PlotY((double) TSP.m[itimercount]);<br />
this-&gt;waveformGraph1-&gt;Update();</p>
<p>}<br />
Das Diagramm erfährt zwar ein Update, aber es werden keine Werte ausgegeben/dargestellt.<br />
Vielen Dank für Hilfestellungen.<br />
//Habe das Problem bereits selbst gelöst:<br />
Plot Befehl muss<br />
this-&gt;waveformPlot1-&gt;PlotYAppend((double)TSP.m[itimercount],1);<br />
sein, dann funktionierts, bei PlotY wird der vorher ausgegebene Wert immer wieder überschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/273903/ni-measurement-st-f-visual-c-waveformgraph-object</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 21:55:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/273903.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Sep 2010 11:16:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NI Measurement St. f. Visual C++ (waveformGraph Object) on Thu, 16 Sep 2010 14:39:14 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich habe das Measurement Studio von NI in Microsoft Visual C++ eingebunden und möchte gerne einen Graphen (X,Y) mit Hilfe von &quot;Waveformgraph&quot; aus der Toolbox darstellen.<br />
In der entsprechenden Klasse aktualisiert ein Timer sowohl die Werte für X und Y als auch den Graphen.Der Timer ruft die Funktion DoPlot auf:<br />
void ThreadWinApp::Form::DoPlot(unsigned int itimercount)<br />
{<br />
struct_test TSP;<br />
calculation^ ThrE;<br />
TSP=ThrE-&gt;DoReturn();<br />
this-&gt;label1-&gt;Text=TSP.m.ToString();<br />
this-&gt;label2-&gt;Text=TSP.z.ToString();<br />
this-&gt;label3-&gt;Text=ThrE-&gt;FromCharToSystemString(<a href="http://TSP.name" rel="nofollow">TSP.name</a>);<br />
this-&gt;meter1-&gt;Value=TSP.m;<br />
this-&gt;meter2-&gt;Value=TSP.z;</p>
<p>//this-&gt;waveformGraph1-&gt;PlotX((double) itimercount);//ev. unnötig<br />
this-&gt;waveformGraph1-&gt;PlotY((double) TSP.m[itimercount]);<br />
this-&gt;waveformGraph1-&gt;Update();</p>
<p>}<br />
Das Diagramm erfährt zwar ein Update, aber es werden keine Werte ausgegeben/dargestellt.<br />
Vielen Dank für Hilfestellungen.<br />
//Habe das Problem bereits selbst gelöst:<br />
Plot Befehl muss<br />
this-&gt;waveformPlot1-&gt;PlotYAppend((double)TSP.m[itimercount],1);<br />
sein, dann funktionierts, bei PlotY wird der vorher ausgegebene Wert immer wieder überschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1952897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1952897</guid><dc:creator><![CDATA[cassiopeia]]></dc:creator><pubDate>Thu, 16 Sep 2010 14:39:14 GMT</pubDate></item></channel></rss>