<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Binding Cursor with particular plot in LabWindows/CVI</title>
    <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242993#M17536</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks Wendy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2005 06:08:08 GMT</pubDate>
    <dc:creator>Gajanan</dc:creator>
    <dc:date>2005-07-19T06:08:08Z</dc:date>
    <item>
      <title>Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242048#M17493</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have ploted 6 plots on graph control and added 6 cursors. I want to bind the each cursor to particular plot, so that&amp;nbsp;&amp;nbsp;I can display 6 X and Y pairs on UI.&lt;/DIV&gt;
&lt;DIV&gt;Any suggetion will be very heplful to me.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Gajanan&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jul 2005 13:31:50 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242048#M17493</guid>
      <dc:creator>Gajanan</dc:creator>
      <dc:date>2005-07-15T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242873#M17530</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello Gajanan,&lt;/P&gt;
&lt;P&gt;There isn't a function to restrict the cursor to a particular plot.&amp;nbsp; You will have to do this programmatically.&amp;nbsp; You can get the ID of the plot the cursor is currently over&amp;nbsp;(if it is a snap-to-point cursor) with the GetGraphCursorIndex (panel, PANEL_GRAPH, eventData1, &amp;amp;plothandle, &amp;amp;index) function.&amp;nbsp; The ID of the cursor that was moved will be passed in the eventData1 parameter.&amp;nbsp; If the plotHandle is not the plot you want the cursor associated with, you can choose not to display the X/Y coordinates of the cursor on the UI and reset the cursor to a default location on a specified plot with the SetGraphCursorIndex function.&lt;/P&gt;
&lt;P&gt;For instance, if you create two cursors and you want cursor 1 to be associated with plot 1 and cursor 2 to be associated with plot 2, you could do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get the cursor's position */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetGraphCursor (panel, PANEL_GRAPH, eventData1, &amp;amp;x, &amp;amp;y);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Figure out which plot and which point the Cursor is over */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetGraphCursorIndex (panel, PANEL_GRAPH, eventData1, &amp;amp;plothandle, &amp;amp;index);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (plothandle == eventData1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Display the data */&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SetCtrlVal (panel, PANEL_XREADOUT, x);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SetCtrlVal (panel, PANEL_YREADOUT, y);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SetCtrlVal (panel, PANEL_INDEX, index); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("E1: %d, x: %f, y: %f, index: %d, plotHandle: %d\n",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;eventData1, x, y, index, plothandle);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else SetGraphCursorIndex(panel, PANEL_GRAPH, eventData1, eventData1, 0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Wendy L on &lt;SPAN class="date_text"&gt;07-18-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:18 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2005 20:17:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242873#M17530</guid>
      <dc:creator>Wendy L</dc:creator>
      <dc:date>2005-07-18T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242993#M17536</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks Wendy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2005 06:08:08 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/242993#M17536</guid>
      <dc:creator>Gajanan</dc:creator>
      <dc:date>2005-07-19T06:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/243001#M17537</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;hello,&lt;BR /&gt;
&lt;BR /&gt;
&lt;SPAN class="noindex"&gt;I would like to plot&amp;nbsp; a&amp;nbsp;&amp;nbsp; XY graph with small text near by plotted points .Ofcourse I tried with PlotText ()&lt;BR /&gt;
but&amp;nbsp; it takes much time to display text with each point&amp;nbsp; in
the graph. Is it possible to&amp;nbsp; plot XY graph with&amp;nbsp; text at
each point&amp;nbsp;&amp;nbsp; ???&lt;BR /&gt;&lt;BR /&gt;
I am reading a binary file&amp;nbsp; which has an array with many elements
(approx. more than 1 million)(each element of this arrray is a
structure)&lt;BR /&gt;&amp;nbsp;for
example&amp;nbsp; first element of&amp;nbsp; myarray is&amp;nbsp; myarray[ 0].
x,&amp;nbsp;&amp;nbsp; myarray[0].y,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
myarray[0].text1,&amp;nbsp;&amp;nbsp; myarray[0].text2&lt;BR /&gt;
&lt;BR /&gt;
I am reading the file element by element until the end of file and
copying the values&amp;nbsp; to different arrays for plotting a graph&lt;BR /&gt;
&amp;nbsp;&amp;nbsp; For ex:&amp;nbsp; first elements of different arrays
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Xarray[0]=
myarray[ 0]. x&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; Yarray[0]= myarray[ 0].y&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
Text1array[0][50]= myarray[ 0].text1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Text2array[0][50]=
myarray[ 0].text2&lt;BR /&gt;
Now I am using PlotPoint and PlotText for plotting XY graph with empty
square points and for displaying my texts at each point&amp;nbsp; (text1 ,
text2 of my Textarrays) inside the reading&amp;nbsp; loop ( reading binary
file ).&lt;BR /&gt;
It is very slow if I use these PlotPoint and PlotText inside the reading loop.&lt;BR /&gt;
I tried with PlotXY&amp;nbsp;&amp;nbsp; to plot XY graph with empty square by
giving Xarray and Yarray (after finishing the reading&amp;nbsp; binary file
). It&amp;nbsp; is very fast&amp;nbsp; if I use only&amp;nbsp; PlotXY(without
displaying text at each point). But now&amp;nbsp; I am still using PlotText&amp;nbsp; inside the reading file
routine(for displaying text at each point). So&amp;nbsp; it is again
very&amp;nbsp; slow&amp;nbsp; because of&amp;nbsp; PlotText inside&amp;nbsp; reading
routine. &lt;BR /&gt;
Is it possible&amp;nbsp; to display text at each point at a time( like PlotXY )&amp;nbsp; by giving Xarray , Yarray&amp;nbsp; and Text1array&lt;BR /&gt;
Text1array[ ][ ] =&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; "xyz"&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "abc"&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "def"&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&lt;BR /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; .......&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;
&amp;nbsp; "xyz" at&amp;nbsp; first point , "abc" at second point , so on............&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any suggessions...................???&lt;/SPAN&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jul 2005 06:44:33 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/243001#M17537</guid>
      <dc:creator>raj1</dc:creator>
      <dc:date>2005-07-19T06:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/243427#M17551</link>
      <description>&lt;P&gt;Hello rajj,&lt;/P&gt;
&lt;P&gt;Refer to the following &lt;A href="http://forums.ni.com/ni/board/message?board.id=180&amp;amp;message.id=17432" target="_blank"&gt;post&lt;/A&gt;.&lt;/P&gt;
&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jul 2005 17:40:34 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/243427#M17551</guid>
      <dc:creator>Wendy L</dc:creator>
      <dc:date>2005-07-19T17:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Cursor with particular plot</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/262836#M18400</link>
      <description>&lt;SPAN class="noindex"&gt;
			Hello raj1,&lt;BR /&gt;
&lt;BR /&gt;
maybe it should help, if you make the graph invisible with
SetCtrlAttribute (panelHandle, controlID, ATTR_VISIBLE, 0) and then
plot all the points and text. After plotting, you make the graph
visible with SetCtrlAttribute (panelHandle, controlID, ATTR_VISIBLE, 1).&lt;BR /&gt;
This should accelerate the plot.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
&lt;BR /&gt;
Martin&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Sep 2005 09:06:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/Binding-Cursor-with-particular-plot/m-p/262836#M18400</guid>
      <dc:creator>Martin_Manger</dc:creator>
      <dc:date>2005-09-05T09:06:35Z</dc:date>
    </item>
  </channel>
</rss>

