LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prompt input for initial guesses for Curvefit Express.vi

Hello,

I am new to the boards here and I was wondering if I could maybe solicite some advice, as I haven't found the answer posted anywhere.

I have very minimal programming experience, but for my research I need to write a LabView program that takes a signal and fits the sum of multiple gaussians to it. I have spent a while trying to make this work with individual fitting functions, but I could only get results when using the CurveFit Express vi. My program is functioning properly, but for the sake of streamlining the program I would like to prompt the user for the intial guesses for the parameters instead of having to abort the program and edit the curvefit sub vi through the block diagram. Is this even possible using this express vi?

Attached are the programs in question.

 

Thank you,

Duncan

PS I absolutely love how this board makes you search before even allowing you to write a post, as well as the built in spell check. Good stuff!

Download All
0 Kudos
Message 1 of 2
(2,372 Views)

If I understand what you want to do correctly, the answer should be yes.

 

You can do this by modifying the express VI and adding a connection on the connector pane for your inputs.

To modify an express VI, right click on it, and choose open front panel. From there, you can add a control to the input of the "initial guess coefficent." Connect it up in the front panel, and you should be good to go.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,323 Views)