LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data to an array with for loop and case

Solved!
Go to solution

Hi everyone, I'm Félix and new on labview.

 

I'm currently on a project of fitting some data. I have some data (spectra taken at different time) into a .lvm file who requires a gaussian fit and I'd like to have the characteristics of the fit passed to a 2D array so I can plot the amplitude, center and width vs time.

 

My problem is that my final array is a 2d one and the fit gives me 1d.

 

Can you please help me to solve this.

 

Thanks you

Félix

 

 

Download All
0 Kudos
Message 1 of 3
(2,523 Views)
Solution
Accepted by topic author felixd

Hi felixd,


As per my understanding your problem is in building the array. Instead of passing the elements into the build array funcion with a 2D array, you can at first build a 1 D array of the required elements and then build it into a 2D array using another build array function. Check the attached vi.

 

Regards


Nitzz

(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved;))

Message 2 of 3
(2,518 Views)

Thank you for helping me out. I really appreciate, it looks so simple now.

Thanks again

F.

0 Kudos
Message 3 of 3
(2,513 Views)