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

10-25-2016 10:42 PM

Options

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

Hi Christian,

Does the diode equation shown below suffice.?

Regards

Deepu Jacob

-----------------------------------------------------------------------------------------------------------------------------

Waiting For the inner calling 🙂

Waiting For the inner calling 🙂

10-25-2016 11:39 PM

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

@djac91 wrote:

Does the diode equation shown below suffice.?

This has no resemblance to the default pre-8.0 nonlinear model you were using. (there is only one linear model, but an infinite amount of different nonlinear models, but only one is appropriate!)

So yes, once you define what the dependent and indepdendent variable is and what the fitting parameter and constants are, you would implement it as a model for nonlinear fit. Then fit the data to it after providing reasonable estimates for the fitting parameters (correct sign, ~correct order of magnitude, etc). See how far you get.

Solution

Accepted by topic author aidasaufi

10-26-2016 03:13 AM

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

Hi aida,

I got a set for data corresponding to IN4007 diode from a website. Based on that i did some analysis and found that a simple exponential fit is sufficient for the data.

The same method seems to be suitable for the diode you are using.

I have made a vi to demonstrate this as shown below. VI has been attached(unzip the file).

Run the Vi and move the cursors. you can see the dynamic resistance value for the selected point.

Note: As christian earlier suggested, this method might me little overdoing of things, but seems to work.

Christian, what do you think?

Best Regards

Deepu Jacob

-----------------------------------------------------------------------------------------------------------------------------

Waiting For the inner calling 🙂

Waiting For the inner calling 🙂

10-26-2016 03:35 PM

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

djac91 wrote:Christian, what do you think?

- It annoys me if small VIs have the front panel and diagram maximised to the screen, especially when using a big monitor.
- The theoretical model given earlier is an exponential with offset, you fit it to an exponential without offset (look at the default for the "parameter bounds" input). I would recommend the nonliear fit with the correct model.
- The y and dy/dx can easily be calculated from the best fit parameters for any x without any need for all these approximate numerical methods.
- The timeout event can be deleted.
- You don't need to wire the indices of Index array if the desired elements are in sequence starting with index 0.

Solution

Accepted by topic author aidasaufi

10-26-2016 04:21 PM - edited 10-26-2016 04:35 PM

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

Here's what I have in mind using the nonlinear model. See if it works for you. 😄

(quick draft, please check for bugs).

(I am doing a simple numerical derivative with a delta of 1e-6, you can easily program an analytical version, of course)

10-27-2016 03:04 AM

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

10-27-2016 03:08 AM

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

Sorry I accidentally click as solution. But it almost to solution

10-27-2016 03:52 AM

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

Hi Christian,

Thank you,

I understand the flow on how to get the slope from your vi but when I calculated it manually, I select point 749.73mV and draw the tangent line, the value of slope is different thus affect the dynamic resistance value. The calculation is on the image.

10-27-2016 10:06 AM - edited 10-27-2016 11:03 AM

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

@aidasaufi wrote:

I understand the flow on how to get the slope from your vi but when I calculated it manually, I select point 749.73mV and draw the tangent line, the value of slope is different thus affect the dynamic resistance value. The calculation is on the image.

Of course the values will be slightly different, because my solution is much more precise.

Still, 637**m**Ohm is very close to 0.667Ohm (= 667**m**Ohm or within 5%!), so I would say they agree, more or less, but my value is much more accurate, of course. Note that I format with SI units. You can change the formatting of the indicator if you don't like it.

10-28-2016 12:34 PM

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

Hi Christian,

That's a great example. Thank you for sharing.

However, after looking at the diode fitting model vi,i found that a '-1' is missing from the equation. Did you omitted that by mistake or is it purposeful for some reason?

The results are slightly different if '-1' is included.

I assume that the model vi was sketched out of some standard template. If yes, what is the purpose for the 'output control'(unused in this case).

I'm looking forward to using this fitting technique (with a model vi) wherever suitable.

Best Regards

Deepu Jacob

-----------------------------------------------------------------------------------------------------------------------------

Waiting For the inner calling 🙂

Waiting For the inner calling 🙂