Problem to adjust the data using the algorithm of lev - mar...

Hello

I'm a casual user of LV, and I need signal level using a non-linear custom model. The signal is basically a decay of exp (order 1) with a continuous component, so it's pretty simple.

When I apply the routine of Lev - Mar's non-linear editing, I've always had the famous "an exception has occurred in externally called by a function of the call library node. This could have corrupted memory of LabView. Save any work., etc.. VIwas stopped to node "" a call to "NI_AALPro.lvlib: Real - Decomposition.vi of SWINE vesicular disease.

The thing is I've already adapted successfully some basic (linear model) data using this form of Lev - Mar non-linear... but it won't work this time... and I don't see why.

Could you watch my VI and model definition and tell me what I need to improve, and what might cause the problem? The main VI (TPV_Fit_ExpDec1_v1.0.vi) open a text file that contains my data (3 columns: time, a pulse (not useful for editing), the signal to fit). At the beginning, I isolate the part of the signal that matches t > = 0, because it is where begins the exponential decay. So I want just to get the part. I join the main VI, a txt file containing typical data, and made the VI that define the model to the lev-mark function.

I would appreciate your help and suggestions!

Thank you very much in advance.

MY VERSION of LABVIEW is the 8.2

JB

   
   
   

Here's a quick rewrite. You should ALWAYS figure the curve for the initial parameter estimates see if they are in the ballpark. Rather than modify the data, you could just put the weight to zero for negatvie x. see if it works better.

Tags: NI Software

Similar Questions

  • The color of love Palette selector. Is it possible to adjust the algorithm? What is the btw algorithm (he's looking for more distant pixels? some kind of quantification?)

    For example, most of my photos is grouping in areas and avoiding the small but powerful color splash. In full disclosure, do us a puzzle to color and try to choose 4 colors a picture car but finding different solutions a bit of a rabbit hole. Love everything about Adobe Capture App.

    Hi hued3751123!

    In "Colors", you should be able to manually select which areas of the image to draw. If the swatches are moving too quickly, tap the screen and who must freeze the image. From there, drag the color charts of the area that you want to remove the color of. You are, perhaps, by using the tool "Looks"? If so, return to the main menu and select "Colors" in the toolbar.

    Regarding the algorithm, I'm not sure that I can share this information

    Let me know if it helps!

    -Kathleen

  • How to upgrade data using load data page?

    Hi all

    im doing a migration page where my user will provide the csv file, so I could load into my table. problem is that loading data using apex collection so I know columns are limited, but I forgot how. (probably 40 something).

    So I decided to split the csv file with the two files with a common column, which is a key. If im guessing two files can be linked using this key. However when I upload the second file, he will still do an insert instead of update action. How updated? is this what I need to set or activate?

    just to check that I tried to download the csv... and then changed some content inside and re upload... even if I that.it always inserts instead of update. Can anyone share how can I update? It's really important because I have a lot of columns to download. so in my situation, the best way is to separate files.

    Help, please...

    In components, under the loading of data shared. On the model of your table, you specify the unique columns (up to 3). I believe that if there is no match, it will insert. If it finds a matching record, it will update. So if you have a single column that is in each worksheet, you must specify here

  • Problem of Nonlinear Curve fit: Lev - Mar

    Hello, I am trying to use lev - mar to fit my data. I think that lev - mar is suitable for my non-linear data of the diode I - V curve. How to connect the input of the VI of lev - mar? What should I put in the data / initial settings / covariance? I've seen examples in the labview, but still can't find the solution.

    Suggest you start here: Introduction to the adjustment of the curve http://www.ni.com/white-paper/7669/en/

  • Smart way to save large amounts of data using the circular buffer

    Hello everyone,

    I am currently enter LabView that I develop a measurement of five-channel system. Each "channel" will provide up to two digital inputs, up to three analog inputs of CSR (sampling frequency will be around 4 k to 10 k each channel) and up to five analog inputs for thermocouple (sampling frequency will be lower than 100 s/s). According to the determined user events (such as sudden speed fall) the system should save a file of PDM that contains one row for each data channel, store values n seconds before the impact that happened and with a specified user (for example 10 seconds before the fall of rotation speed, then with a length of 10 minutes).

    My question is how to manage these rather huge amounts of data in an intelligent way and how to get the case of error on the hard disk without loss of samples and dumping of huge amounts of data on the disc when recording the signals when there is no impact. I thought about the following:

    -use a single producer to only acquire the constant and high speed data and write data in the queues

    -use consumers loop to process packets of signals when they become available and to identify impacts and save data on impact is triggered

    -use the third loop with the structure of the event to give the possibility to control the VI without having to interrogate the front panel controls each time

    -use some kind of memory circular buffer in the loop of consumer to store a certain number of data that can be written to the hard disk.

    I hope this is the right way to do it so far.

    Now, I thought about three ways to design the circular data buffer:

    -l' use of RAM as a buffer (files or waiting tables with a limited number of registrations), what is written on disk in one step when you are finished while the rest of the program and DAQ should always be active

    -broadcast directly to hard disk using the advanced features of PDM, and re-setting the Position to write of PDM markers go back to the first entry when a specific amount of data entry was written.

    -disseminate all data on hard drive using PDM streaming, file sharing at a certain time and deleting files TDMS containing no abnormalities later when running directly.

    Regarding the first possibility, I fear that there will be problems with a Crescent quickly the tables/queues, and especially when it comes to backup data from RAM to disk, my program would be stuck for once writes data only on the disk and thus losing the samples in the DAQ loop which I want to continue without interruption.

    Regarding the latter, I meet lot with PDM, data gets easily damaged and I certainly don't know if the PDM Set write next Position is adapted to my needs (I need to adjust the positions for (3analog + 2ctr + 5thermo) * 5channels = line of 50 data more timestamp in the worst case!). I'm afraid also the hard drive won't be able to write fast enough to stream all the data at the same time in the worst case... ?

    Regarding the third option, I fear that classify PDM and open a new TDMS file to continue recording will be fast enough to not lose data packets.

    What are your thoughts here? Is there anyone who has already dealt with similar tasks? Does anyone know some raw criteria on the amount of data may be tempted to spread at an average speed of disk at the same time?

    Thank you very much

    OK, I'm reaching back four years when I've implemented this system, so patient with me.

    We will look at has a trigger and wanting to capture samples before the trigger N and M samples after the outbreak.  The scheme is somewhat complicated, because the goal is not to "Miss" samples.  We came up with this several years ago and it seems to work - there may be an easier way to do it, but never mind.

    We have created two queues - one samples of "Pre-event" line of fixed length N and a queue for event of unlimited size.  We use a design of producer/consumer, with State Machines running each loop.  Without worrying about naming the States, let me describe how each of the works.

    The producer begins in its state of "Pre Trigger", using Lossy Enqueue to place data in the prior event queue.  If the trigger does not occur during this State, we're staying for the following example.  There are a few details I am forget how do ensure us that the prior event queue is full, but skip that for now.  At some point, relaxation tilt us the State. p - event.  Here we queue in the queue for event, count the number of items we enqueue.  When we get to M, we switch of States in the State of pre-event.

    On the consumer side we start in one State 'pending', where we just ignore the two queues.  At some point, the trigger occurs, and we pass the consumer as a pre-event.  It is responsible for the queue (and dealing with) N elements in the queue of pre-event, then manipulate the M the following in the event queue for.  [Hmm - I don't remember how we knew what had finished the event queue for - we count m, or did you we wait until the queue was empty and the producer was again in the State of pre-event?].

    There are a few 'holes' in this simple explanation, that which some, I think we filled.  For example, what happens when the triggers are too close together?  A way to handle this is to not allow a relaxation to be processed as long as the prior event queue is full.

    Bob Schor

  • Help! Can not adjust the calendar using the timeline

    I have captivate 2... everything is a little 'offbeat' when I click on things to do something to captivate. But in addition to that, if I place a bitmap on the blade I used to be able to adjust the timing of the bitmap just by extending on the timeling. I can't do now what I am doing wrong?

    Thanks in advance!

    Thanks for the comments. I ended up calling the technical support due to the problem of 'delay' I had. This issue has proved to be a .dat file that is corrupted. Then we addressed the issue of the chronology of resizing and it works very well on a new file, but not the one I work in. Thus, we concluded that this problem is actually a piece of corrupted data.

  • I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not remove or add the program.

    I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not use, remove or add the program. How should I proceed?

    TIA,
    BWSwede

    Try to create a new profile.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

    What problems do you have that you want to reset Firefox?

    Firefox creates a new folder of old data of Firefox on the desktop?

    If reset you Firefox and a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved on the desktop (old data of Firefox).

  • Failed to retrieve the DIAdem DataFinder research data, using data-finder toolkit LabVIEW 2009

    I am facing problem to retrieve the DIAdem Datafinder data.

    At first, I developed this project in LabVIEW 2010. But because of a problem that I met in LabVIEW 2010, I thougth to work on the project in LabVIEW 2009.

    Then, I reused the project that I created using LV 2010 using option economy for the previous version.

    When I tried to retrieve the data from the tiara using data finder toolkit. I got a 305505 warning. Please see the attached message of Warninig.

    But I have not seen this warning while I was working in LabVIEW 2010 and also, I was able to get the data from the tiara.

    Please suggest me a way to solve this problem.

    Hi Nanda,
    There is a bug when using the SDK use in combination with DataFinder Toolkit 2009.
    This bug is already fixed in LabVIEW 2010 and use SDK 2010. But as you said there is another question in LabVIEW 2010, forcing you to LV 2009.
    I suggest you use LabVIEW 2009 with use SDK 2009 and DataFinder Toolkit 2009 and instead to use the "Waveform.vi results" to read the search results, I would recommend to use the screw storage. I spread your example VI and it attached to this message. You will still see the dialog box to search for "lvStorage.dll" but it will automatically disappear and the VI works anyway because in this case LabVIEW will find the dll itself.
    My extended VI uses the '_openWithRoot.vi' to open a file with a different use than CT or PDM. This VI is also described in the following knowledge base article: http://zone.ni.com/devzone/cda/epd/p/id/4181
    With LabVIEW 2010 use support has been enhanced and fully integrated in the standard palette of storage screws. So in LabVIEW 2010, you can replace the "_openWithRoot.vi" with the 'Open Data Storage.vi' standard but with LabVIEW 2010, you can also use "Waveforms.vi results" to read the search results.

    I hope this helps.

    Kind regards
    Eva

  • Adjust the data in the database with the variables

    Hello

    For my internship, I have an assignment to read and set a database with the variables. This SQL server 2005 database contains variables of a controller. These are read and write variables. The assignment is to display the read variables and the user can adjust the variables of Scripture. The first part was "easy" because the forum contained a lot of examples of this. The second part is more difficult because the forum contains absolutely no example of this. Can I use LabVIEW 2010 and 2011, and also I downloaded the 30 day trial of the database connection tool. If it's useful, I can recommend my company to buy this package. Playback vi makes use of a UDL (Microsoft data link) connection.

    So you guys my question is: is it possible to adjust the specific variables in a database using LabVIEW? And maybe you can give me a little advice on this topic...

    Thanks in advance!

    Roy

    In SQL, the specific data are always selected with the keyword WHERE. In VI to update there is a link for options, you can for example add a constant 'WHERE id = 1457 and measure > 0.54 ".

    You can ofc. also build this chain through controls, settings and other means.

    If you prefer, you can use the Execute Query (under Advanced tab I think) to which you can send the complete query example "TestTable Update set name ="Zeus"where id > 14 and id.<>

    /Y

  • I get an error message at the beginning: "Problem starting C:\Program Data\IntelBackup Online.dll"

    Original title: I get an error message at the beginning upward:

    "Problem starting C:\Program Data\IntelBackup Online.dll" under this line, it is said: 'the Spicific mode is not found' how can I fix?

    Hello

    ·         What operating system do you use?

    ·         Were there recent changes made on the computer before the show?

    Follow these steps and check if that helps.

    Step 1:

    Check if you have the similar problem with safe mode, otherwise you can try to put your computer to a State of clean boot in normal mode and check if that helps:

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

     

     

    Step 2:

    Follow the article to perform the clean boot on the computer:

    How to troubleshoot a problem by performing a clean boot in Windows Vista and Windows 7

    http://support.Microsoft.com/kb/929135

     

    Warning: After using the boot is a way to solve your problem step 7 follow-up to reset the computer to start as usual.

  • I use windows XP and every time I adjust the time to have 5 Midnights before, it re-adapt to previous settings

    I use windows XP and every time I adjust the time to have 5 Midnights before, it re-adapt to previous settings

    Try the following steps.

    The Notification area of your taskbar Windows, right click...

    In the menu... Choose... Adjust the Date and time...

    On the time tab Internet... Uncheck the...
    Automatically synchronize with an internet time server / apply / OK...

  • Receiving data using the device RFCOMM Protocol activate bluetooth

    Hi all

    I want to apply that receive the data of bluetooth device using the RFCOMM Protocol.

    I'm pasting some of my code

    Server StreamConnectionNotifier = null, Server1 = null, server2 = null;

    Hi all

    Can some body having any idea or sample code to receive data using the for Bluetooth RFCOMM Protocol. I am able to find a device to activate bluetooth and also connect with it.

    And ther eis a problem plus I only magnified device does not form some sort of link (link Url SPP, OPP Url link, etc.) for bluetooth.

    But I can verify that this device is correct because I am able to receive data from this device to my computer by checking the connection port and to open this port.

  • Problem: Error 633: the modem (or other connecting device) is already in use or is not configured correctly.

    While I am connected to internet using Reliance Netconnect Huawei 1260, the connection disconnects after 10 to 15 minutes. Shows as connected Netconnect but does not work. I try to disconnect the connection, but it gives an error.

    Reconnect to always remove the modem and then re - login again.

    Please provede me a permanent solution to this. I use Windows 7 Enterprise

    Hello

    1. If it works well before?

    2. what version of Modem drivers do you use? Do you have any other device connected to the computer?

    First of all, I suggest you to check if the modem is compatible with Windows 7.

    Check out the link:

    Windows 7 Compatibility Center:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    I would also recommend to connect the modem to a different computer and check if it detects there. If it does not work on another computer also, then the problem is with the modem and I would ask you to contact the manufacturer of the modem for any further assistance.

    Error 633 indicates that the port is already in use or is not configured for remote access dial out. You may need to check if the VPN and the connection connection try to use the same port that is causing the problem. You may need to check the settings of the modem and change the port for your needs.

    To work around this problem, use one of the following methods:

    Method 1:

    Reserves explicitly the TCP port that is used for the VPN connection. To do this, follow these steps:

    a. click Start, click run, type regedit.exe in the Open box and then click OK.

    b. in the registry editor, find and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

    (c) in the Edit menu, point tonewand then click multi-string value.

    d. rename the multi-string value as 'ReservedPorts' and then double-clickReservedPorts.

    e. in the value data box, type1723-1723, and then click OK.

    f. exit the registry editor.

    Registry warning: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756/

    .

    Method 2:

    Use the netstat command to find the program that is using port 1723. Then, end the process for this program. To do this, follow these steps:

    a. click Start, click run, type cmd.exe in the Open box and then click OK.

    b. at the command prompt, type the following command and press ENTER:

    NETSTAT - aon

    c. in the result which appears, identify the process ID for the program, if any, who is using the TCP port 1723.

    d. at the command prompt, type the following command and press ENTER:taskkill/pid PID/f

    Note: The taskkill command terminates the process that corresponds to the ID of the process. The/F option is used forcefully to complete the process.

    e. at the command prompt, typeexitand press ENTER to quit the command prompt.

    Restart your computer. This may cause the program that uses the TCP 1723 port to use a different port.

    I hope that helps!

  • Passport problems of blackBerry with date and time on the passport of Blackberry

    Hello!
    I have problems with my passport for Blackberry.
    For the couple in a day time, it changes itself. So my hub doesn't work, I get no new messages, I can't send messages! The last time I did correct settings did not help. If everything is correct or hub or messages do not work. I tried to make different adjustments, tried to restart the hub, tried to restart the phone. but it does not work. I really need your help because I can't use my phone and nobody can connect with me.
    I didn't drop the phone. I know that these problems are related to the date and time because since the first problem with hub and messages has occurred, I saw that the date and time were bad, changed to correct and everything went well. I don't understand why he doesn't now. Can you tell me what to do?
    OS 10.3.2.2836
    1 January, I received this phone and it worked allright until some of the OS updates, can't tell which exactly because I have auto update.

    For those who have the same problem: I deleted the contact of my mother on the phone. I deleted the messages displayed as January 27, then I added my mother to local contacts and new messages started coming

  • Problem connecting to the server by using the url with the logical name!

    Hi all!

    I looked for information on this subject, but have not seem to found a solution.

    I'm developing a Smartphone application that needs to connect to a server to retrieve data. Then I use a direct connection with the correct settings (I hope):

    URL = "url of the server" + "deviceside:true" + "AFN:...» »

    The problem is that the connection should be done without Hardcoding the "apn". These are the tests I've done so far (assuming I'm always add the ' deviceside: true ' parameter):

    URL (logical name) + AFN OK!
    FAILURE of the URL (logical name)
    URL (static IP) OK!

    * by logical name, I mean a url as www.google.com

    What I need is to use the logical name, without the parameter apn!  Maybe I'm missing another parameter that I don't know?

    Some additional info that might be useful! :

    -The server is a server of Vodafone, which, as has been explained to me, should be on the list of white of the RIM (not sure what that means, but I guess it has to do with the fact that BB connection through the RIM at one point servers, and be in this list gives a sort of 'privilege' when you browse servers of RIM) , and I don't know it is publicly accessible as (see following)

    -An android version of the application works fine without Hardcoding the AFN and using the logical name (I guess it has to do with the RIM servers!)

    Any help or ideas towards the solution that it is greatly appreciated!  If I'm missing some info that you think I should add! Please tell me!

    Thanks for your help!

    Juan

    Thanks Peter!

    I could solve it by looking at the code of the alternative of the Api network in the link sent you me!

    The solution was the addition of the ConnectionUID parameter to the url String!  as to why this solves the problem I still don't understand it! (If you can enlighten me with the reason, I would be very grateful)

    This value is found in the service books!, I have the zip code just in case it helps someone!

    Hogshead string = null;

    Full book sb = ServiceBook.getSB ();

    Reviews [] ServiceRecord = sb.getRecords ();

    for (int i = 0; i)< records.length;="">

    {

    String cid = records [i] .getCid () .toLowerCase ();

    String uid = records [i] .getUid () .toLowerCase ();

    If ((cid.indexOf ("wptcp")! = - 1) & (uid.indexOf ("wifi") ==-1) & (uid.indexOf ("mms") ==-1))

    {

    Hogshead = records [i] .getUid ();

    }

    }

    then add the parameter: ConnectionUID = Hogshead

    Once again, thank you!

Maybe you are looking for