Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68888

Extract data from data file, put in 3D array.

$
0
0

I have a data file of a particular format that I would like to put into a 3D array, but I don't know the best way to do this. I'd like to resulting data to have a 3D array with the first dimension = scans, second dimension=voltage, third dimension = current. It seems like a nested for loop would work but I can't get the results the way I'd like.

I am using LabVIEW 2010.

 

Thanks.

 

Here is a sample of the data file format, though the actual file has hundreds of scans and hundreds of voltages.

 

Scan 1
Voltage, Current
1,0.167
1.1,0.637
1.2,0.462
Scan 2
Voltage, Current
1,0.608
1.1,0.631
1.2,0.303
Scan 3
Voltage, Current
1,0.544
1.1,0.838
1.2,0.772

 

 


Viewing all articles
Browse latest Browse all 68888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>