09-27-2019 06:48 AM
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
Solved! Go to Solution.
09-27-2019 07:16 AM
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?
09-27-2019 07:19 AM
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
09-27-2019 07:21 AM - edited 09-27-2019 07:27 AM
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
09-27-2019 07:35 AM
Can you please share your modified version.
Kind regards
09-27-2019 07:51 AM
attached in 2016
09-30-2019 03:01 AM - edited 09-30-2019 03:27 AM
Thanks