LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems creating a BMP file

Hello,

 

  I have used the "String to byte Array" vi to convert from 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?

Regards,

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 11 of 20
(1,881 Views)
Soitanly.
 
v8.2 version attached.
Jon D
Certified LabVIEW Developer.
Message 12 of 20
(1,880 Views)

I have used the "String to byte Array" vi to convert from 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?



Message Edited by smercurio_fc on 08-06-2008 10:44 AM
Message 13 of 20
(1,879 Views)


Kaspar wrote:

Hello,

 

  I have used the "String to byte Array" vi to convert from 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?

Regards,

 

Kaspar




If you know the size of the image (width / Height) you use the reshape array function.
Jon D
Certified LabVIEW Developer.
Message 14 of 20
(1,876 Views)

Hello,

 

  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.  Presently the programmers guides just state BMP format, there is no indication of res and/or size.

 

Regards,

 

Kaspar

 

Regards,


Kaspar
0 Kudos
Message 15 of 20
(1,869 Views)

Hello,

  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.

Regards,

 

Kaspar

 

  

Regards,


Kaspar
0 Kudos
Message 16 of 20
(1,821 Views)

Hello,

 

   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.

 

Regards, Kaspar

 

Regards,


Kaspar
Message 17 of 20
(1,808 Views)
So the program works now?  Excellent, and good job.
Jon D
Certified LabVIEW Developer.
Message 18 of 20
(1,793 Views)

Hello,

 

  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.

Regards,

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 19 of 20
(1,781 Views)

Hello,

 

   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.

 

Regards,

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 20 of 20
(1,690 Views)