Table 1 d coupling to a double-peak Gaussian function

Hi experts LabVIEW!

I am rewriting a MATLAB code in LabVIEW code. I'm stuck at this next part:

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

(MATLAB code)

x = 1:770

y = current_frame_1D

Options. StartPoint = [amp1, pos1, Lim_mean1 (3), amp2, pos2, Lim_mean1 (3)];

options = fitoptions ('gauss2', 'Down', Lower_Lim1 (Lower_Lim2) and 'Upper', [Upper_Lim1, Upper_Lim2], 'TolFun', 1e-2, 'TolX', 1-1);

G_fit = fit(x.',y','gauss2',options);

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

The parameter gauss2 in MATLAB fit function is intended to adapt the data of the following equation:

Y = a1 * exp (-((x-b1)/c1) ^ 2) + a2 * exp (-((x-b2)/c2) ^ 2)

That is a sum of two Gaussian curves.

Is there a way to do this in LabVIEW? (I see that the fit.vi pic Gaussian, which can detect 1 Ridge only...)

Thank you!

The Palette of implementation has a non-linear curve adjustment function that uses the Levenberg-Marquardt algorithm to fit an arbitrary (in your case, the sum of two Gaussians) function.  Curve not linear are something of a black art - if you have not used before LM, I'd do a little reading on this topic (use the Web).

Another method to make such an adjustment is the Simplex method.  There is a downhill Simplex nD VI on the optimization Palette, but when I tried to figure out how to use that to a problem of optimization/smoothing of mine, I gave up and wrote my own the simplex algorithm in LabVIEW.  I know not if it would work for your data and model - if you can attach a file of data, I could give it a try...

Bob Schor

Tags: NI Software

Similar Questions

  • How to remove the double peak files

    I have too much double peak files and don't know how to find and remove the

    Post proposed by the host to the appropriate forum category (for Windows |) Windows 7 | Music, photos, video & of Windows | Windows 7 | Files, folders, storage &). ***

    Hello

    When you try to delete duplicate images?

    Refer to this:

    Eliminate duplicate files

    http://Windows.Microsoft.com/en-us/Windows-Vista/eliminate-duplicate-files

    (Hold for Windows 7)

    Previous post your answer for you help in this matter.

  • need help on image blob retriving of table... I need to use the function

    I have a single display field and I tried to retrieve a value using the function... The idea of using the BLOB comes from the following example...
    http://dgielis.blogspot.in/2008/07/show-blob-of-other-table-in-apex-form.html

    I created the following function... has only function display.
    "return ' < img src =" "|" APEX_UTIL. GET_BLOB_FILE_SRC('P375_PICTURE',1204,,'inline') | '" />';

    but the output is undesirable character
    The output is the following
    < img src = "" apex_util.get_blob_file? a = 231 & s = 16387884076007 & p = 375 & d = 26249204291254605 & i = 26247831247254566 & p_pk1 = 1204 & p_pk2 = & p_ck = C226897F204BFA329F601AF2ED72ECDA & p_content_disposition = inline "/ >"

    Using apex 4.2 db 11g release 2 xe
    1204 here are a few magazine_id
    Here's my blob table structure
    xxx_picture
    xxx_no number (10),
    BLOB of photo
    picture_filename
    picture_mimetype
    image_last_update
    I am able to recover the data via interactivereport but I will lke to recover their data that show only the BLOB field

    Can someone please guide. . I could hurt
    Thank you

    Published by: zycoz100 on April 28, 2013 01:05

    zycoz100 wrote:
    I have a single display field and I tried to retrieve a value using the function... The idea of using the BLOB comes from the following example...
    http://dgielis.blogspot.in/2008/07/show-blob-of-other-table-in-apex-form.html

    I created the following function... has only function display.
    return '';

    but the output is undesirable character
    The output is the following

    To get a displayed item to render in HTML, in the definition section Security value escape special characters notitem.

    For a column of the report, ensure that the column attribute text to display as report is report Standard column rather than the default display text (escape special characters).

    However in the APEX 4.x, using an element in the Image display and support declarative BLOB is preferable to these manual methods. Images can be formatted using the HTML attributes of the element form of property, or via CSS element.

  • Face double Jetpro 8600-functions

    Windows 7 and XP on computers on the network. Especially interested by how can I can fax, scan and copy documents dubbed from the supply drawer faces.

    Can't find a manual that comes with the printer and it does not address these things. Thank you

    Hello fighterpilota

    What the 8600 model Officejet do you have? The model is printed inside the flap that reveals the ink and transport.

    The Officejet 8600 N911a doesn't have a duplex, ADF (automatic document feeder), while the N911g and N911n models.

  • The double-sided printing functionality does not work on my Officejet 6500 has more.

    Initially, it worked, but now it doesn't.

    Please read this post then provide some details.  What printer model? What operating system? You may need to enable the duplex module, as described in the Duplex printing Vista/Windows 7 Guide.

  • Import Business Area causes in double PL/SQL functions generate

    Hello

    I built a business district using existing folders, complex files, etc. I also have a few items calculated with some useful features of PL/SQL that our company is registered with the EUL.

    I had built my BA test in a UAT environment. As this was to be a new clone I exported my industry. Now that I imported it returns after the clone. I noticed that several PL/SQL functions duplicate were generated during import. Most of them are the functions that were used in the calculated items, I had put in place. All duplicates have a 1 after them.

    Does anyone know what has caused this? The original UAT environment had the functions I tested initially added manually and then manually added to prod. I think that the clone is the cause of the problem, but not sure.

    Thank you

    Lloyd T

    Hello

    An import of the business district will create duplicates of the functions used in the business district unless you select 'do not import the corresponding object' or "Refresh object match" as the option items matching when you import the business district.

    Rod West

  • Convert a table to a cluster of 4 elements array values 2D 2D double precision, or a table 1 d

    Y at - it an easy way to convert a 2D cluster table (4 elements each including a Boolean value and three numbers dbl) to a table 2D or 1 d of double precision values? I need to store my data in a text file to control a robot, I'm trying.

    Thank you.

    There are 1 million different ways to do it. The best thing to do would be to leave the data exactly as it is and simply use Flatten in XML format (search the palette). It accepts virtually any type of data, including a 2D cluster table as you described. He will spit human readable (although not necessarily nice) text that you can write to a text file. Then, read you data from the file and use Unflatten of XML to do the reverse.

    Or you can use a similar model to flatten your data in a 1 d of double table which you can then unflatten.

  • Convert table 1 d of cluster of 2 doubles 2D elements

    Hello world

    I tried to follow the advice in other posts on this issue, but it does not work. People suggested using a cluster "in the table" inside a loop for, however, I get a message that this conversion is not accepted.

    Take a look at the attached screenshot to see how things currently look like. The idea is to extract data from an XY graph automatically, not by doing a right click and economy in a spreadsheet file.

    Thank you in advance for help.

    Your cluster items are 1 d arrays.  You can not turn the tables 1 d in a 2D array using this function.

    What you can do is to Unbundle the cluster, and then build an array of the table 1 d in the 2D tables.

    However you have this in a loop For with autoindexing then would become the table 2D a 3D Board that doesn't sound right.  Do you think all these 1 d arrays to concatenate to each other?  There are ways to do it and according to your version of LabVIEW determines the best way.

  • 32 x 1 double switch configuration PXI-2527 and TB-2627

    Looking for configuration of the PXI-2527 at double 32 x 1 using a TB-2627 terminal block.  Under the OR rocking support for topology multiplexer NI PXI/SMU-2527 1 double wire 32 × 1 -.

    (link - http://zone.ni.com/reference/en-XX/help/375472C-01/switch/2527_dual_1-wire_32x1_mux/) it displays the names of software for different PIN numbers.  I don't care actually on this subject because I use the Terminal Board, but what worries me is that the diagrams represent Ch0-Ch31 connection com0 + and Ch32-Ch64 to com1 + and there is NO mention of com0 - or com1.  However, the NI TB-2627 installation instructions, table 4 shows the mapping Terminal double 32 x 1 1 - Wire topology.  In this map, IT lists a software name and the name of Terminal for com0 - and com1-.

    My question is, if com0 and com1 - are not listed in the manual switch why are the listed in the TB-2627 manul and what is it in this configuration?

    Thanks for your time.

    In the Setup instructions for the double configuration 32 x 1 TB-2627, she mentions Com0 - and Com1 - as a reference to inform the user what pin connects to since this same module can be used with other topologies. It is unnecessary for the topology of 32 x 1 information double since the switch card does not use these channels for this particular topology. Information is available for your reference, but does not neet to be connected to anything.

    Please let me know if any of this is unclear.

    Kyle K.

  • Why this dot on the typedef table indicator strict coercion?

    Why is there a constraint on the second point control?

    I created a table of 3 trivial elements of doubles and created an indicator by right-clicking on it in the block diagram. It is the control of "CreateIndicator".

    Then I did the same thing to create a second indicator on the same wire from the selected Panel and output it he adapted to a strict typedef, saved and applied the changes. It is the control of "CreateIndicatorThenCustomize". There one point of coercion in this regard, if. Why?

    Thanks to anyone who can shed some light on this for me!

    Don't get started me on the "point of constraint = copy of the buffer" falicy (hm, I think you just!)

    It this case LV says you type conversion non-defed in type-def, who all had there.

    Ben

  • How to adapt to several Gaussian peaks?

    Hello

    I have a set of data two columns (x, y) which contain many (several hundredes infact) Gaussian peaks. You can think of it more as a spectrum of wavelength. The number of spectral peaks is not exactly known. There is no problem to detect spikes because they are of the same magnitude. Finally, I'd like a Gaussian funtion meet each of these spectral peak and get the settings such as the amplitude, the center of the line and sigma.  This seems a little tricky in LabVIEW. There is an example (the sum of the 3 Gaussian with lag) which comes with LabVIEW. However, this example VI uses a static refrence to a template function that is the sum of the three Gaussian curves.  This works well for the small number of peaks in the data. If we have the large number of peaks (data from Spectroscopy for example) then the creation of such a function of model for a large number of vertices is impracticable nealy.  Is there a better way to manage these problems of peak-fitting of LabVIEW? Would be very happy if someone could indicate a library of existing code/LV function.

    Kind regards

    RK

    I looked into this problem a few years ago.  The problem I encountered was for each pic on my mark, I was trying basically to adjust the 4 parameters... so 10 pics = 40 individual settings that needed to be approached in the function of fitting the same be close.

    I ended up doing exactly what altenback said: I used the bed at the Eagle made substantive + detect, "guessed" the edges of crete, split the table, and then served a sum of 2 Gaussian for table to divide.

  • Table of cluster of arbitrary type

    Hi all

    Is it possible to generate an overall picture about the next feature?

    1. each group element of the array will be of a different type

    2. According to the code, each element could be a different type of data at different times.  For example, the cluster to array [0] will be a string when the user input is one, and array [0] will be a U16 if user input is two.  The index for a particular type of data is arbitrary.

    Let me know.  I'm writing a Subvi, which will get a picture of the U16 convert the table into a picture on single, double, string, U16, U32, etc..

    Yik

    Yes.  Use an array of variant.

    The variant you can turn your data type to store in the array in a variant.  Variant of data allows you to convert the variant to the original data type, simply specify the type of data.

  • Convert a table 1 d of the Cluster (time + data) in 2D-table time and data. How?

    Hello

    is there a simple way to convert a large table 1 d of the Cluster (containing a timestamp and a given) in a table 2D with time stamp and data?

    I could index the table in a while loop, separate each item and put the timestamps and the data in a new table.

    The format of the new table could be an array of double (then the timestamp must be converted to a double) or an array of strings.

    Could I do this without a loop?

    Johannes

    LabVIEW 7.1 (!)

    Hi Johannes,

    If it is possible to manage your time as dbl-floats stamps, I suggest using a simple loop and the cluster to function array (Cluster_to_Array_Mod1.vi).

    If you want to stay with time stamp data type, even once use a loop for a cluster unbundle and build the function array (cluster_to_array_Mod2.vi).

    Kind regards

    Thomas

  • Double signals

    Hello

    I use LabVIEW 7 to dump the data into a data base MySQL using LabSQL. I generate the SQL script by concatenating input signals (after the first dynamic data table, and then to a fractional string conversion) with text constants to provide the INSERT INTO, commas etc. The script returned it is fine and works well, however, signals are each at least doubled in place (IE 10 lot in 1010, and according to the source I got 5 out as 555555555555555555555555555555555555).

    If I run the VI in climax run mode, with probes attached to the wires away from the block of concatenation, I see the real match takes place in this block. However, as the signal passes through the number of chain block, a "#2" appears above him." I guess that's what indicates the presence of two signals, but I don't see how to remedy this.

    If anyone can shed some light on this point, I would be very grateful.

    Thank you

    Rob

    Hi Rob,

    I found the problem by placing some probes:

    You convert your data (tree simulated transducer output freq graphic) variant of doubles. Can wire you this table to the post of "conversion to string. Each conversion is getting the entire table AND IS to CONVERT the ENTIRE table! Your table contains 2 values (something around 10) If you get 10 and 10 in the chain without the characters between the two (if you get the 1010).

    To avoid this:
    -Use the index table to get the data in the table.
    - And maybe you need to use the function 'String Format' instead of these 5 unique conversion and the 'concat string... "

    And Please clean up your code a bit more. Not everyone uses a screen resolution 1600 x 1200 (or even more). Especially when you need only 640 x 480 :-)

  • Pivot table result without aggregate function

    Hi all

    We have the following two tables:

    SQL > select * from class;

    CLASS_ID COURSES

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

    1          1

    2          1

    3          1

    2          2

    3          2

    5          2

    6 selected lines.

    SQL > select * of course.

    COURSE_ID

    ----------

    1

    2

    The customer needs the output in the following format:

    class class class class

    1                    1               2               3

    2                    2               3               5

    I considered using the operator pivot tables however they require the use of an aggregate function, but there is no aggregation only required in the result here - we demand that the output as would a PivotTable?

    Try this.

    WITH class(CLASS_ID,COURSE) AS)

    1.1 DOUBLE UNION ALL SELECT

    SELECT 2.1 DUAL UNION ALL

    SELECT 3.1 FROM DUAL UNION ALL

    SELECT 2.2 DUAL UNION ALL

    3.2 DUAL UNION ALL SELECT

    SELECT DOUBLE 5.2)

    SELECT * FROM)

    SELECT THE COURSE

    CLASS_ID,

    ROW_NUMBER () OVER(PARTITION BY COURSE ORDER BY COURSE) RN

    CLASS)

    PIVOT (MAX (CLASS_ID) for (RN) IN (1 as CLASS1, 2 AS CLASS2, CLASS3 AS 3));

    OUTPUT:

    CLASS CLASS1 CLASS2 CLASS3

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

    1          1          2          3

    2          2          3          5

Maybe you are looking for

  • iPhone delivery date 7

    Pre-ordered earlier in the day my order confirmation States a delivery date for the September 27-29. However having just looked at the site Web on the same model he says that they are given 20-22 September. So I was wondering if I have to cancel my o

  • Camileo X 100 can be used as a webcam?

    I just got a Toshiba Camileo X 100 for my birthday and I would like to know if I can use this camera as a webcam?This review, he said that Camileo X 100 can be used as a webcam: http://www.pcadvisor.co.uk/reviews/photo-video/3220546/toshiba-camileo-x

  • How to reset the default monitor on Acer 2920, computer laptop think always connected to an external monitor

    Hello, I hope you can help me! I have a laptop Aspire 2920 with Windows Vista Home Edition O.S. It starts and works fine except that after I used it with an external monitor (a tv screen) on the possibility of using the external monitor, it only now

  • Cisco QoS for VoIP 300

    I have a question about best practices for packages of priority voice on the LAN side. We have everything configured on the firewall/edge device for the prioritization of voice, however I'm not sure of the exact to take sideways steps LAN to make sur

  • BlackBerry 8220 smartphone blackberry flip

    My phone is broken where can I go to get it fixed I can't find something at BlackBerry web sight please help