<?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: Add values to array by clicking in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790597#M361069</link>
    <description>&lt;P&gt;Oh, thats probably why I couldnt find that property, because it isnt a property.&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2008 20:27:10 GMT</pubDate>
    <dc:creator>Cory_K</dc:creator>
    <dc:date>2008-10-10T20:27:10Z</dc:date>
    <item>
      <title>Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790575#M361060</link>
      <description>&lt;P&gt;Well I thought of a pretty cool VI conceptually, but I can't figure out how to actually execute the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that is read from a file, then graphed on an X-Y graph. I have a cursor that displays the x and y values of the current point.&lt;/P&gt;&lt;P&gt;I would like to do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have an initialized array. Then I manually move the cursor to a point of my choosing, then click a button.&lt;BR /&gt;That button will make the x and y value of that point append to the array. Is this possible? Or more importantly, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Cory&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 19:57:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790575#M361060</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T19:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790582#M361062</link>
      <description>&lt;P&gt;Almost anything is possible. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you're asking for is actually quite easy. To do what you want you need to respond to the graph's MouseDown event and then use the graph's Max Coordinates to XY method to get your XY pair. This method will also tell you if you clicked on a point, rather than, say, on the legend.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:06:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790582#M361062</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T20:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790584#M361063</link>
      <description>&lt;P&gt;Smercurio, in your example, what is controlling the boolean in the while loop?&lt;/P&gt;&lt;P&gt;It appears that I can only enter a data point once and then the loop stops. Or is that not correct?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:11:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790584#M361063</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790589#M361064</link>
      <description>&lt;P&gt;There's a Stop button on the front panel, and I have a case that handles the button's Value Change event. A fairly standard way with event structures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the example is a crude, quick-and-dirty one just to get you started. An Issue that you would need to consider is how far away you clicked from the actual curve. The method I showed will return the nearest point, even if you clicked a point that you may consider to be "far away" from the curve, but still within the graphing area. You may, for instance, only want to add the point if you basically clicked right on the point. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:18:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790589#M361064</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T20:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790590#M361065</link>
      <description>&lt;P&gt;And I'm still pretty new with LabVIEW. Could you tell me where you found those properties for the graph.&lt;/P&gt;&lt;P&gt;I created a property node, but&amp;nbsp;there are SO MANY properties, could you tell me the sub-heading under properties&lt;/P&gt;&lt;P&gt;where you found those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just trying to keep learning, thanks,&lt;/P&gt;&lt;P&gt;Cory&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:20:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790590#M361065</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790595#M361068</link>
      <description>&lt;P&gt;It's not a property, it's a method. Remember, I said "&lt;SPAN class="noindex"&gt;use the graph's Max Coordinates to XY &lt;EM&gt;method&lt;/EM&gt;". &lt;/SPAN&gt;Right-click on the graph and select &lt;EM&gt;Create-&amp;gt; Invoke Node -&amp;gt; Max Coordinates to XY&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the VI done in LV 8.2. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:24:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790595#M361068</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790597#M361069</link>
      <description>&lt;P&gt;Oh, thats probably why I couldnt find that property, because it isnt a property.&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:27:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790597#M361069</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790598#M361070</link>
      <description>&lt;P&gt;When I create an invoke node --&amp;gt; method, I only have 5 methods to choose from,&lt;/P&gt;&lt;P&gt;none of which being the one you stated.&lt;/P&gt;&lt;P&gt;I have:&lt;/P&gt;&lt;P&gt;1) Attach Data Socket&lt;/P&gt;&lt;P&gt;2) Get Image&lt;/P&gt;&lt;P&gt;3) Get Term Image&lt;/P&gt;&lt;P&gt;4) Reinit to Drift&lt;/P&gt;&lt;P&gt;5) Remove Data Socker&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I still doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I can't open your VI because I am running 7.1)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:32:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790598#M361070</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790602#M361072</link>
      <description>&lt;P&gt;Since this topic in specific is pretty new to me, does anyone know of anywhere off hand I could learn about 'Methods'.&lt;/P&gt;&lt;P&gt;Like a hyperlink to some NI article or some forum thread or something?&lt;/P&gt;&lt;P&gt;I am self-taught at LabVIEW, so I try to pursue a topic if I don't know it too well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:39:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790602#M361072</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790606#M361073</link>
      <description>Am I doing something wrong here? I can add the x and y value of the cursor once, then it just holds those values and wont let me do anything else?&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/361073/1/Append%20to%20Array.PNG" border="0" alt="Append to Array" title="Append to Array" width="1443" height="558" /&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Cory K on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 10-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 03:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:58:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790606#M361073</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T20:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790609#M361074</link>
      <description>Try moving the property node and associated logic, along with the O2&amp;nbsp;boolean into the "mouse down" event case.&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by a_carollo on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 10-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 04:03 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:03:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790609#M361074</guid>
      <dc:creator>a_carollo</dc:creator>
      <dc:date>2008-10-10T21:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790610#M361075</link>
      <description>In LabVIEW 7.1 you have to do things a little differently. Yes, that method is not available in 7.1. I'm not sure what you're doing in your VI since I can't see the front panel to see what those buttons are. Normally if you have buttons you respond to the Value Change event and have the button in the event case so the event structure can read the value and update the control. If you post your VI I will be glad to take a look at it. I have 7.1 on a virtual machine.</description>
      <pubDate>Fri, 10 Oct 2008 21:02:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790610#M361075</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T21:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790614#M361078</link>
      <description>&lt;P&gt;I moved the buttons inside their respective events, but to no avail.&lt;/P&gt;&lt;P&gt;I attached my (or shall I say mostly smercurio's) vi if anyone would like to take a look.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:06:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790614#M361078</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T21:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790621#M361083</link>
      <description>&lt;P&gt;Where are the O2 and N2 buttons? Also, what does your datafile look like? I'm trying to wrap my head around your array gymnastics. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/P&gt;&lt;P&gt;I'm guessing you're trying to peel off one column for X and another column for Y. You can use &lt;SPAN style="font-weight: bold"&gt;Index Array&lt;/SPAN&gt; to do this directly in one operation instead of using 4 different array functions for each column. &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/361083/1/IndexArray.PNG" border="0" /&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by smercurio_fc on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 10-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 04:23 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:23:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790621#M361083</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T21:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790625#M361086</link>
      <description>&lt;P&gt;My data looks basically like a sine curve.&lt;/P&gt;&lt;P&gt;All the maximum peaks signify O2, and minimums N2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The buttons should be right on the front panel. In the block diagram, they are inside the event structure.&lt;/P&gt;&lt;P&gt;As far as getting the x and y values into arrays.....don't worry about it, I taught myself LabVIEW so my methods are a little unorthodox &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'll use your method next time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll attach my updated VI and a sample file so you can run this bad boy.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:28:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790625#M361086</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T21:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790629#M361088</link>
      <description>&lt;P&gt;You know what, I attached the incorrect VI, sorry.&lt;/P&gt;&lt;P&gt;Give me a minute to attach the correct one&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:41:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790629#M361088</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T21:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790631#M361090</link>
      <description>OK here is my current VI&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Cory K on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 10-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 04:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Oct 2008 21:58:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790631#M361090</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-10T21:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790644#M361097</link>
      <description>Ah, so this actually has to do with &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=360686#M360686" target="_blank"&gt;this question&lt;/A&gt;. Have you tried simply using the Peak Detector function to get your peaks and valleys?</description>
      <pubDate>Fri, 10 Oct 2008 22:36:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/790644#M361097</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-10-10T22:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/791423#M361440</link>
      <description>&lt;P&gt;Well I don't want the absolute relative peak (if that makes any sense at all) because the noise makes the peak slightly higher than it should be. This is why I would like to go through and pick out the peak myself.&lt;BR /&gt;That is the point of the VI (whenever I finally get it working).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the VI so each time I click, the value of the cursor will change, however it does not append to the table, &lt;/P&gt;&lt;P&gt;it just replaces the first value over and over.&amp;nbsp;&lt;BR /&gt;Any thoughts as to why that is?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2008 19:53:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/791423#M361440</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2008-10-13T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to array by clicking</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/791464#M361465</link>
      <description>&lt;P&gt;Hi Cory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have slightly modified your VI, please let me know if this solves your problem.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2008 21:00:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Add-values-to-array-by-clicking/m-p/791464#M361465</guid>
      <dc:creator>Claire_Reid</dc:creator>
      <dc:date>2008-10-13T21:00:07Z</dc:date>
    </item>
  </channel>
</rss>

