Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

mirakDZ

Member

04-16-2014 10:24 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hello,

I am a beginner with Labview and I need your help, I recuper the data of the reflectivity from the spectrometer (3648 points) and I am going to make the fitting to extract information about the thickness and refractive indices n and k (k in the general case it will be zero because the materials used are oxides and I work in the visible range.

I want to use the model of Lev-Mar but I have the problem with the model, i have used the formula node to write the eqaution of the reflectivity, and currently I am block.

Data.txt

column1 = Lambda

column 2 : Reflectivity

the substrate is Pyrex ; n= 1,47

the thin film is Ti-Nb, the index is like that of the titane(Antase) : ñ = 2,561 + i2,488

Thank you very much.

Nb: i know my english is so bad 🙂

Download All

Virus scan in progress. Please wait to download attachments.

johnsold

Knight of NI

04-16-2014 03:22 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

It is difficult to be sure from an image of a block diagram but it looks like your model VI multiplies X by an empty array. The result will be an empty array which then means that the For loop executes zero times and the output f(X,a) will also be an empty array.

Fix: The array constant should have thesame number of elements as X. If all the elements will be 1E-9, just use a scalar constant. The Multiply function will accept an array on one input and a scalar on the other and produce an output array with each element of the input array multiplied by the scalar.

Depending on how many iterations it may take to do the fitting, you may find that replacing the formula node with standard LabVIEW functions is faster.

Lynn

04-18-2014 07:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Thank you very much Lynn,

I did what you told me to do and it works a better,

I would like to know if you can help me, I have the values of the reflectivity R as a function of the wavelength (lambda) but the indices " n " and " k " are also a function of lambda.

R = (n,k,d,lambda ) and the dispersion equation n(lambda) and k(lambda)

With the curvefit Lev-Mar is possible to define these parameter ? if you have ideas that will be cool

johnsold

Knight of NI

04-19-2014 09:05 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

You may need to transform the equations. Please post your VI with some typical data saved as default. Also, please provide the equations.

Lynn