02-04-2009 10:50 AM
02-04-2009 11:26 AM - edited 02-04-2009 11:26 AM
You should first copy all relevant VIs out of the Vi.lib folder hierarchy and into your own area before you start editing. (Copy using windows explorer).
Depending on your LabVIEW version, there are some misguided hurdles in place if you edit a stock NI VI in its original place. For example you can easily save the modifed VI and overwite (and possibly mutilate) the regular tools, breaking all other code that uses fitting (requiring a reinstall! :(), but it won't allow you to save the modified VI under a new name.
Good luck. Personally, I would probably use the regular tools (see below). What is your LabVIEW version?
deserio@florida wrote:
I know I could probably get around the problem I am having by using the standard nonlinear fitting routines and making my y-array twice as long with the first half being the real part and the second half being the imaginary part--and then adjusting my fitting function likewise, but it is so much prettier to simply allow complex y-values in the fitting routines.
Another option would be to simply typecast your complex array to DBL (making it twice as long) and then typecast it back to complex inside the model VI.