From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading pattern from a text file not showing properly

Solved!
Go to solution

Hello,

 

I am trying to read an array from a .txt file ( which is a 650x350 pattern) and then display that.

Attached please find the files. 

The displayed pattern is compressed compared to if you open in it matlab (see "rep.png" for understanding). 

Please help me display a clear pattern through vi named disp.vi?

 

regards

Download All
0 Kudos
Message 1 of 7
(2,188 Views)

First,  Matlab arrays are [Col, Row]  LabVIEW arrays are [Row, Col] so a transpose is needed there.  Next your file contains U8 data of 2 rows and 227500 columns.  which row are you interested in for your 350x650 display?


"Should be" isn't "Is" -Jay
Message 2 of 7
(2,168 Views)

Ok thank you for pointing out that.

 

The data is arranged in rows. So you can pick up any row and reshape it into 650x350 array, and then the problem comes as the displayed pattern is very compressed

0 Kudos
Message 3 of 7
(2,163 Views)
Solution
Accepted by topic author jonty_roads

jonty_roads wrote:

Ok thank you for pointing out that.

 

The data is arranged in rows. So you can pick up any row and reshape it into 650x350 array, and then the problem comes as the displayed pattern is very compressed


Reshape it to 350x650 and use BLUE wires

 

Capture.PNG

 


"Should be" isn't "Is" -Jay
Message 4 of 7
(2,160 Views)

Can you please share your modified version.

 

Kind regards

0 Kudos
Message 5 of 7
(2,146 Views)

attached in 2016


"Should be" isn't "Is" -Jay
Message 6 of 7
(2,138 Views)

Thanks

0 Kudos
Message 7 of 7
(2,081 Views)