LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

integral

Solved!
Go to solution

Hi LabVIEW engineers,

 

I have problems to perform integral function between two electrical fields E1(x,y) and E2(x,y) in a closed circle with radius 50mm. The electrical fields values (E1 and E2) are saved in different csv file in X,Y and E columns. Can anyone help me on how to solve the problem or give any links which could solve the problem?

 

Thank you

Ledang

0 Kudos
Message 1 of 16
(3,668 Views)

Which part of your task are you having a problem with?  Using the Read From SpreadSheet File.vi under the File I/O palette you can read a file into an array using the delimeter of comma or tab depending on the file format.  Then it is a matter of using the right math functions, or using the formula node to get the desired output from your inputs.

0 Kudos
Message 2 of 16
(3,659 Views)

Hi,

 

Thaks for the reply. Since the format in CSV I don't have problem to read it in LabVIEW. I'm having problem to find the right functions to perform the integral of E1*E2. Can you suggest the math function to solve it?

 

Thank you

Fazlul 

0 Kudos
Message 3 of 16
(3,652 Views)

Did you search for integral on the palette?  There are several functions, but I think you want Integral x(t).vi.

0 Kudos
Message 4 of 16
(3,648 Views)

FYI - searching in the function palette is an excellent way of finding things until you are familiar with the palette.  It's also an excellent way to find a VI by description.  Most VIs are given names that are very descriptive.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 16
(3,638 Views)

Hi,

 

Thanks for the suggestion. Smiley Happy

 

regards

Fazlul

0 Kudos
Message 6 of 16
(3,618 Views)

Hi all,

 

I'm a bit confusing now on how to perform integral function according to equation in attachment (sensitivity.jpg). Currently I'm trying to obtain a sensitivity map inside a circle (center at (0,0) ) with radius 50mm. The electric field excitation labelled as Ei and the measurement electric field as Ej. The saved files(*.csv) are both the data of Ei(x,y)/Ii and Ej(x,y)/Ij . Each excitation and measurement files are contained with 3 column (X,Y and E) with 413 755 and 207 950 rows respectively. After a while trying I still could not understand how to connect these data into the integral function in LabVIEW to obtain results proposed by the equation in the attachment. Can anyone guide me on how to solve the problem? or is there any examples which is similar to what I am trying to accomplish here.

 

Regards

Fazlul

Download All
0 Kudos
Message 7 of 16
(3,606 Views)

Dear Ledang,

 

excitation.jpg ‏and measurement.jpg ‏shows the same data. Is this on purpose?

 

Please, explain the column in your screenshots. Is [A, B, C] = [x, y, E_i(x,y)/I_i]?

 

Cheers,

0 Kudos
Message 8 of 16
(3,580 Views)

@Hooovahh wrote:

Did you search for integral on the palette?  There are several functions, but I think you want Integral x(t).vi.


Dear Ledang, I think you have to use two (1D) integrals in a row. The innner integrates over x and the outter over y.

 

Or you build your own procedure using elementary sums. If [x, y, E_i] is the structure (see previous post), then the step size is small enough and the changes in E_i are "slow". So, your integral would seem sth like:

 

sum_y sum_x E(x,y)*E(x,y) dx dy

 

Additionally, at both suggestions above, you have to check for [x,y] in P(50,50) for each row -- by cutting out the relevant portions of the row according the geometrical distance from [0, 0].

 

Send some data files, somebody might want to try it hands-on.

0 Kudos
Message 9 of 16
(3,571 Views)

Hi,

 

Yes the data in the previous screenshot was

column A: x coordinate, B:y coordinate, C: Ei(x,y)/Ii @ Ej(x,y)/Ij

 

After a while the number of rows which reaches to hundreds thousand is time consuming. I however managed to reduce the data to 64x64 pixels (using bilinear interpolation) which is more reasonable for computational purpose. Now the new dataset is in 2d (64x64). The problem is I still have no idea how to integrate the 2d files (excitation and measurement). Please guide me on this. As requested, I also attached the new dataset (64x64).

 

Regards

Fazlul

Download All
0 Kudos
Message 10 of 16
(3,563 Views)