<?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: problems creating a BMP file in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760760#M348564</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The vi I supplied above works at least for me in my program. Hopefully someone else will use it in their program to get a screenshot of the scope.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2008 12:06:27 GMT</pubDate>
    <dc:creator>Kaspar</dc:creator>
    <dc:date>2008-08-12T12:06:27Z</dc:date>
    <item>
      <title>problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757714#M347071</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;Hello,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am getting screen shot data from various instruments with the VISA read command, which outputs a string of data. &amp;nbsp;How do I convert this to a 2d array so that I create a BMP file?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Kaspar&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:23:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757714#M347071</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757726#M347078</link>
      <description>Well, that depends on the format of the 2D data, and what the 2D data represents. This should be documented in the instrument's manual, which we don't have. &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:31:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757726#M347078</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-08-06T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757740#M347086</link>
      <description>&lt;DIV&gt;Hello,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am getting BMP data from 2 differenet manufacturers. I will contact them to get the format. So once I get the format&amp;nbsp; how would I convert the output of the VISA read (which is string data) to the input that the Write BMP File vi needs which is image data?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Kaspar&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:42:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757740#M347086</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757748#M347089</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Kaspar,&lt;/P&gt;
&lt;P&gt;i think your "string" data is a binary byte stream. If you know the format you can convert your data to an array of U8 and build your picture of it.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:47:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757748#M347089</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-08-06T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757755#M347095</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yes your are correct this is a binary data string from the instrument. I will try what you suggested. thank you!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:51:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757755#M347095</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757763#M347097</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;And have you tried simply saving the data directly to disk?</description>
      <pubDate>Wed, 06 Aug 2008 14:57:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757763#M347097</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2008-08-06T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757776#M347104</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes I have tried writing the data directly to a file and have looked at it with binary file viewers. The file created does not have the BMP header info, it appears to just have the bitmap data. So it looks like I have to figure out how to convert &amp;nbsp;from the output of the VISA read, which is the binary data to image data, which is&amp;nbsp;what the Write BMP file needs for a input.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:07:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757776#M347104</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T15:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757788#M347105</link>
      <description>&lt;DIV&gt;Something like the vi attached is probably what you need.&lt;/DIV&gt;
&lt;DIV&gt;You will need to modify it according to the specifics of your data.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:19:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757788#M347105</guid>
      <dc:creator>Mythilt</dc:creator>
      <dc:date>2008-08-06T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757790#M347106</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am using Labview 8.2, the vi you attached is in 8.5. Could you PLEASE (I have used the magic word) save the vi in 8.2 and post it?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:22:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757790#M347106</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757796#M347109</link>
      <description>I think an easier solution is to use the Flatten Pixmap function to generate that cluster. You just need to know what bit-depth you're dealing with so you wire to the appropriate input.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:24:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757796#M347109</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-08-06T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757822#M347130</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I have used the "String to byte Array" vi to convert from&amp;nbsp;the string output of a VISA read to a u8 1d array. Unfortunately, the Flatten Pixmap vi, requires a 2d array input. So how would I convert this into a 2 day array for the flatten pixmap vi?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:41:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757822#M347130</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757825#M347132</link>
      <description>&lt;DIV&gt;Soitanly.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;v8.2 version attached.&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:42:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757825#M347132</guid>
      <dc:creator>Mythilt</dc:creator>
      <dc:date>2008-08-06T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757826#M347133</link>
      <description>&lt;HR size="2" width="100%" /&gt;&lt;SPAN class="noindex"&gt; I have used the "String to byte Array" vi to
convert from&amp;nbsp;the string output of a VISA read to a u8 1d array.
Unfortunately, the Flatten Pixmap vi, requires a 2d array input. So how
would I convert this into a 2 day array for the flatten pixmap vi?&lt;/SPAN&gt;&lt;HR size="2" width="100%" /&gt;&lt;BR /&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/347133/1/reshape%20array.png" /&gt;&lt;SPAN class="noindex"&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by smercurio_fc on &lt;SPAN class="date_text"&gt;08-06-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:44 AM&lt;/SPAN&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:44:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757826#M347133</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-08-06T15:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757828#M347135</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;
&lt;HR /&gt;
Kaspar wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I have used the "String to byte Array" vi to convert from&amp;nbsp;the string output of a VISA read to a u8 1d array. Unfortunately, the Flatten Pixmap vi, requires a 2d array input. So how would I convert this into a 2 day array for the flatten pixmap vi?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;&lt;BR /&gt;
&lt;HR /&gt;
&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;
&lt;DIV&gt;If you know the size of the image (width / Height) you use the reshape array function.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:44:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757828#M347135</guid>
      <dc:creator>Mythilt</dc:creator>
      <dc:date>2008-08-06T15:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757838#M347144</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for posting the 8.2 version. Now I have to contact the vendors to get the image res and size of the screenshot data.&amp;nbsp; Presently the programmers guides just state BMP format, there is no indication of res and/or size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:51:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/757838#M347144</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-06T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760084#M348247</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Success....drum roll please (I have used the magic word). I have been able to get a screen shot from a TDS2022 scope. I have attached the vi to this E-mail, it is written in Labview 8.2. If you have questions, please reply to this forum.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2008 13:41:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760084#M348247</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-11T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760281#M348336</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; I got so excited about fixing the screenshot with the TDS2022 that I forgot to save the vi to disk before I appended it to the website. So here it is again, this time it is the vi that works. Sorry for the confusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards, Kaspar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2008 16:47:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760281#M348336</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-11T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760474#M348446</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;So the program works now?&amp;nbsp; Excellent, and good job.</description>
      <pubDate>Mon, 11 Aug 2008 21:13:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760474#M348446</guid>
      <dc:creator>Mythilt</dc:creator>
      <dc:date>2008-08-11T21:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760760#M348564</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The vi I supplied above works at least for me in my program. Hopefully someone else will use it in their program to get a screenshot of the scope.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kaspar&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2008 12:06:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/760760#M348564</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-08-12T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: problems creating a BMP file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/771393#M353225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Attached to the reply is a vi that creates a BMP file from the E4411B spectrum analyzer, this is why I was asking all of the questions in the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kaspar&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2008 16:37:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/problems-creating-a-BMP-file/m-p/771393#M353225</guid>
      <dc:creator>Kaspar</dc:creator>
      <dc:date>2008-09-03T16:37:27Z</dc:date>
    </item>
  </channel>
</rss>

