LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store decimal point data into array

Solved!
Go to solution
Solution
Accepted by Olataro

Olataro wrote:

@Gogineni: Yup, the idea is to obtain the data from a spreadsheet and sort them into 3 different arrays, and then pass them to the 3D surface VI. However, as Altenbach had suggested to me(from another topic),  i might be making the wrong array so i decided to see if there are alternative ways to do so. I'm currently using the method shown on the youtube video.


Hi Olataro,

 

Now your requirement is clear to me.

I read your previous conversation with Altenbach and developed a vi which reads data from the file "256 data copy txt.txt" from your other post.

please check whether it meets your requirement.

______________________________________________
Kudos are welcome
Download All
Message 11 of 15
(1,023 Views)



Hi Olataro,

 

Now your requirement is clear to me.

I read your previous conversation with Altenbach and developed a vi which reads data from the file "256 data copy txt.txt" from your other post.

please check whether it meets your requirement.


Hey thanks for helping me! I wont have time to test it out yet (have a test coming) but I'll notify you as soon as possible! Also, you wouldnt happened to have experience on using labview to build 3D images, would you (from my previous topic)? I need some serious guidance on that

Really appreciate the help given here. Its really hard for me to do my project as labview's programming techinques are somewhat different from what I am used to. Also, my lecturers are not familiar with Labview, so I am really glad that i can have valuable advice from you guys

0 Kudos
Message 12 of 15
(1,012 Views)

@Olataro wrote:

Hey thanks for helping me! I wont have time to test it out yet (have a test coming) but I'll notify you as soon as possible! Also, you wouldnt happened to have experience on using labview to build 3D images, would you (from my previous topic)? I need some serious guidance on that


Hi Olataro,

 

sorry to say, i have not worked on 3D images but very sure that there will be many others who will be able to help you.

______________________________________________
Kudos are welcome
0 Kudos
Message 13 of 15
(995 Views)

@Olataro wrote:

HI guys. Thanks for your reply.

 

@ravens: Actually no, I've attended 5 day courses on FPGA system of the NI RIO board before. They primarily focus on setting up the board and also conducting timing operations. So unfortunately. i didnt receive much training in initializing arrays using labview (its quite confusing compared to C; especially if you have gotten used to program in c, haha). But, thank you for giving me hte link. I know how to initialize basic array from the youtube video Labview tutorial, but now I'm wondering how to create an array, like that in C programming.

 

@Gogineni: Hmmm, it is kind of like both actually.

 

The coding I'm used to in C programming is something like this:

" arrayA[5]= {1.21, 1.34, 5.56, 5.32,4.64} "

ArrayExample.png

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 14 of 15
(982 Views)

@Gogineni wrote:

Olataro wrote:

@Gogineni: Yup, the idea is to obtain the data from a spreadsheet and sort them into 3 different arrays, and then pass them to the 3D surface VI. However, as Altenbach had suggested to me(from another topic),  i might be making the wrong array so i decided to see if there are alternative ways to do so. I'm currently using the method shown on the youtube video.


Hi Olataro,

 

Now your requirement is clear to me.

I read your previous conversation with Altenbach and developed a vi which reads data from the file "256 data copy txt.txt" from your other post.

please check whether it meets your requirement.


Sorry, i had a series of tests and presentation for the past weeks, so i didnt focus on the project nor check my mail. But wow, just wow. You are amazing! What you did is what  i had been trying to do but failed

Still, if you dont mind i hope you could answer a few questions


1) Could you explain in general what happens?

 

2) How did you manage to get to seperate the arrays into X,Y,Z arrays based on the spreadsheet? From my understanding, the delimiter, "," only tells the VI that the next value should be stored in another index of the array. Does the VI ignores the X y and Z from the text?


3) In the middle of the case loop for the "false" statement. I noticed that you built a 2D array with it, plus the empty 2D array you had earlier, I'm actually not sure what happens here


4) After the case loop, the array runs into the "index array", I notice you only left a "4" for the index, could you explain why? and why are the rest empty?

 

5) and finally, how did the array subset knows how to seperate X,Y and Z array from the main array?

0 Kudos
Message 15 of 15
(949 Views)