12-12-2019 04:05 PM
I'm trying to fit some spectral data to a blackbody curve. I know there are lots of examples out there, and I've even made some of them work before, but I'm sideways on this one. I get the error "The connector pane connections of the subVI do not match the way it is wired on this diagram. Show the Context Help window to see what the connections to this subVI should be." when I try to run. I think my main point of confusion is the VI Reference and then the "Call By Reference" on the block diagram. I don't really understand what they are doing, so I don't understand how to fix them.
Data should be in the graph control. Cursors just select out the "black body like" portion of the spectrum. Manual fitting indicates ~1700K and a scale factor (power is not calibrated, only shape) of ~100.
12-12-2019 05:02 PM
You are not supposed to run the model VI, you just feed a reference of it into the Lev-Mar fitting function.
12-12-2019 05:29 PM
Also, your model does not match the connector pane of what the model is supposed to look like. Go to the help for "Nonlinear Curve Fit LM" and open the fitting model template.
12-12-2019 05:39 PM - edited 12-12-2019 06:59 PM
As has been mentioned, the model needs to match the strictly typed template exactly. It seems you deleted unused controls and terminals of the model, which is of course not allowed.
12-12-2019 06:20 PM
12-13-2019 07:09 AM - edited 12-13-2019 07:10 AM
Thank you very much for the response and solution. When I got the error message that my connector pane was broken, I went and tried to simplify it and got rid of unused connectors because that's what I thought it meant. I noticed a bunch of other quality changes you made too, I'll try to learn from those as well.