LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CSV Data into LabVIEW

Hello,

My goal is to read this data from an Excel file into an array. However...

Block and Front Diagram.png

^^^This is how the block and front diagram are supposed to look like when I run the file into the program. My block diagram looks like the one above but the front diagram doesn't end up turning out like the one above. Any suggestions? Thank you.

Download All
0 Kudos
Message 1 of 6
(1,320 Views)

Actually your block diagram looks different than the one you showed.  You take the double data and convert it to a string and append it to the header row into a single 2-D string array.

 

So, what do you really want it to look like?

 

One thing I see is that in your double to string conversion, you are using Convert to Decimal String which is used for whole numbers.  It drops the fractional/decimal part.  If you want the data after the decimal point, use Convert to Fractional String.

0 Kudos
Message 2 of 6
(1,309 Views)

Ah, my apologies. I mean that I want to create this front diagram.

Block and Front Diagram.png

I tried your suggestion (changing the "Convert to Decimal String" to "Convert to Fractional String"), but when I run the program, I still don't get the result above.

Download All
0 Kudos
Message 3 of 6
(1,301 Views)

Do you want the fractional portion of those numbers?  Or do you want them truncated to a whole number.

 

When I run your VI, it outputs exactly what you programmed.  You keep telling that the program you have isn't giving what you want, but you aren't telling us what you want or how what you are getting is different.

0 Kudos
Message 4 of 6
(1,284 Views)

Block and Front Diagram1.png

This is what I keep on getting when I run the VI. What I want to create is this...

Block and Front Diagram.png

I know how to display the data as decimals or whole numbers now, thanks to you. But, I can't display my data on the front panel. I keep on getting the picture above, when I want to get results like the picture below.

0 Kudos
Message 5 of 6
(1,279 Views)

Your array indicator is set to show only one row and one column.  Drag the lower right corner down and away to show more elements.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Message 6 of 6
(1,257 Views)