<?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: 2D imaging in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782300#M617543</link>
    <description>&lt;P&gt;OK . I think I get it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I need to accept in the values for each XY point and store it in a array indexed by this X and Y positions.&lt;/P&gt;
&lt;P&gt;2. later export them to be viewed as an Image file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I getting it right ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Lynn ... &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2011 03:51:56 GMT</pubDate>
    <dc:creator>abikutn</dc:creator>
    <dc:date>2011-11-21T03:51:56Z</dc:date>
    <item>
      <title>2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782154#M617517</link>
      <description>&lt;P&gt;Dear friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing an application that involves optical setup along with a XY scan using stepper motors and also a sensor ( Photo sensor ) to collect in values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My application has to do with imaging surfaces. XY scan is used to move the surface in x pixels and y pixels, a photo sensor is used to collect the values that are reflected off from the surface. &lt;U&gt;I have successfully completed my XY scan program thanks to members who helped me with that.&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;My question:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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; I need a start as to how to start collecting the values that are read in by Photo sensor and store it into a &lt;STRONG&gt;2D array&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a beginner and please help me start with this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. &lt;/P&gt;
&lt;P&gt;abhi&lt;/P&gt;
&lt;P&gt;[ labview 6.1 ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 21:10:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782154#M617517</guid>
      <dc:creator>abikutn</dc:creator>
      <dc:date>2011-11-20T21:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782164#M617521</link>
      <description>&lt;P&gt;How you collected the data from sensor? Have read the data directly into labVIEW(if so, it should give some kind of voltage graph or data) with DAQ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;Have saved the data into some files outside the labVIEW?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want read any files that contains data, I would suggest you to look on File I/O pallet in Programming main pallet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 21:48:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782164#M617521</guid>
      <dc:creator>shjukheter</dc:creator>
      <dc:date>2011-11-20T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782178#M617523</link>
      <description>&lt;P&gt;No the data are read into a DAQ and I need to display what it is reading ( eg. waveform ) also store the value into a 2D array so that I can convert it into an image file later .&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 22:32:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782178#M617523</guid>
      <dc:creator>abikutn</dc:creator>
      <dc:date>2011-11-20T22:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782216#M617530</link>
      <description>&lt;P&gt;abhi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I interpret correctly what you said, your DAQ device output is a waveform. &amp;nbsp;A waveform is a 1D array of data (Y) bundled with a start time (t0) and a time increment (dt). &amp;nbsp;When you get this waveform from your DAQ device, does it represent the entire image or only one line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is the entire image, then use Get Array Components to get the Y array and use Reshape Array to change it to the desired 2D format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is one line of the array, then as above extract the Y array. &amp;nbsp;Use Replace Array Subset to put the data into the appropriate row of a 2D array. &amp;nbsp;Before you start the acquisition, initialize a 2D array of the correct size. &amp;nbsp;The acquistion and Replace Array subset will be inside a loop and the array will be passed from one iteration to the next via a shift register.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 00:46:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782216#M617530</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2011-11-21T00:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782244#M617535</link>
      <description>&lt;P&gt;Hi Jhonsold,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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; When I meant a waveform it means jus one point. Not a full image. Its like the laser is staring at one point and what ever is reflected is shown as a wave over a time axis. (eg a sine wave that doesnt change shape cos it is from a single point ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, When moved to the next point it will read in another value and this again will show another wave depending on the surface change of the target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you got the point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;So in total , the scanning system moves the target in a fixed X and Y pixels. what ever is the values that are obtained by staring at all X*Y points should be stored in a 2D array so that it can be later transformed into a image plot.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have any questions,please let me know. I will try explaining better with a diagram maybe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 02:07:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782244#M617535</guid>
      <dc:creator>abikutn</dc:creator>
      <dc:date>2011-11-21T02:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782252#M617537</link>
      <description>&lt;P&gt;abhi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you get a waveform at each x,y location, do you want to display all the waveforms or are you reducing that waveform to a single number at each point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 02:24:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782252#M617537</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2011-11-21T02:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782280#M617539</link>
      <description>As a number.</description>
      <pubDate>Mon, 21 Nov 2011 03:13:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782280#M617539</guid>
      <dc:creator>abikutn</dc:creator>
      <dc:date>2011-11-21T03:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782292#M617542</link>
      <description>&lt;P&gt;abhi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK. &amp;nbsp;Then the procedure is much like the one line method I posted above, except that you replace each point in the 2D array as you acquire it. &amp;nbsp;One point rather than one line. The X and Y pixel locations correspond to the row and column indexes of the array. &amp;nbsp;Depending on the orientation of your X-Y scan, you may need to transpose or reverse one or both axes. &amp;nbsp;Also note that arrays in LV start the indexing at zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it. &amp;nbsp;If you have questions about how something works, post what you have tried along with your question or indication of what is not working as you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 03:39:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782292#M617542</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2011-11-21T03:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782300#M617543</link>
      <description>&lt;P&gt;OK . I think I get it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I need to accept in the values for each XY point and store it in a array indexed by this X and Y positions.&lt;/P&gt;
&lt;P&gt;2. later export them to be viewed as an Image file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I getting it right ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Lynn ... &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 03:51:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782300#M617543</guid>
      <dc:creator>abikutn</dc:creator>
      <dc:date>2011-11-21T03:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2D imaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782322#M617548</link>
      <description>&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what is available in LV6.1, but newer versions have several array to image functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 04:33:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2D-imaging/m-p/1782322#M617548</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2011-11-21T04:33:29Z</dc:date>
    </item>
  </channel>
</rss>

