LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Picture from Text File

Solved!
Go to solution

I have an 8(column)x20(row) array of bolean data. I want to display this as a black and white picture. I.e have a grid of 8x20 squares which are black if "1" and white if "0" can anyone help?

 

Thanks

 

0 Kudos
Message 1 of 7
(3,155 Views)

For what part do you need help?

 

I would probably start by trying to convert the text data to numeric and plot it on an intensity graph.

 

Lynn 

Message Edited by johnsold on 04-23-2009 09:47 AM
0 Kudos
Message 2 of 7
(3,144 Views)
Solution
Accepted by topic author scottcolston

You can use the Flatten Pixmap and Draw Flattened Pixmap functions, such as:

 

Message Edited by Thoric on 04-23-2009 02:57 PM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 3 of 7
(3,134 Views)

The example from Thoric works but, this could inspire you. http://forums.ni.com/ni/attachments/ni/170/376003/1/Happy%20VI%20holidays.vi. If you need larger "pixels"

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 7
(3,127 Views)

Very pretty vi t06afre! Smiley Very Happy

But there is a better way to enlarge the pixels:

 

Message Edited by Thoric on 04-23-2009 03:13 PM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 5 of 7
(3,118 Views)
Well, yeah... :smileyindifferent:  Huh, of course i did know that. But thanks anywaySmiley Very Happy


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 6 of 7
(3,104 Views)

FYI:

 

I have used a 2d array of booleans with each boolean beinga square and sized very small to do the same thing.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(3,081 Views)