feedback loop on the impact force

Hello

I use labview 8.5 and a card Ni USB-6221 to control the power output of an actuator and monitor the output signal of a load cell.  The actuator allows strength 50 Hz which is measured by the sensor.

The signal from the load cell is basically a very narrow peak occurring at a 50 Hz.  I want to measure the height of each peak, average figure (maximum strength varies from 2 or 3%) and then use this data to provide a feedback loop to keep the constant force applied.

[img] http://farm4.static.flickr.com/3067/3077344302_4b7bb5f2a3.jpg [line]

I tried to use 'amplitude and levels' vi 'peak', for an average to exit mode.  However, this seems to give a result fluctuate widly which is useless for feedback purposes. I tried to increase the sample of this vi period with no luck.

Anyopne there any suggestions on how to do this? I could do this using the detection of peaks of waveform?

Any help or advice would be greatly appreciated.

Thank you very much.

Hi John,.

Thanks for your post and I hope that your well.

To create a circular buffer in LabVIEW, you can use a shift register. However, for large number of data points with a large displacement to register on the side of the loop are stupid and impractical. This is why you must use a table, in which you update the value of the old with the new value, and you set the size of the table for the number of points you want to have in the buffer.

I have created an example of a buffer in LabVIEW 8.5 - Please see attached VI.

Also, if you do any static anylsis so perhaps consider using the functions of point by point, which no longer require the updated value to calculate the most recent average (for example). This saves because of the calculation table in its entirety every time.

Hope this helps,

Tags: NI Software

Similar Questions

  • Feedback loops for the algorithm of peak power of solar cell

    Hello. I have some experience with Labview but I am struggling with the structures and feedback. I have an instrument that defines a load power voltage and measures. It will be connected to a solar cell that has a peak power (see the trace on the photo). I need a simple program that will make the instrument to oscillate around the point of maximum power. He must set the voltage, power, add a voltage increase, measure power, then add or subtract the voltage according to the question of whether the power has increased or decreased from previous measure. I am attaching a schema. Start V and delta V will be given and fixed. I don't know how to implement with Labview code. Thanks for any help!

    Hello

    Search here for a simulated a simple peak loop

    It allows to store the previous registry data at offset

    e time delay without the processor and also to simulate the transfer of communication with instrument

    concerning

    Tinnitus

  • Anyway to save the data in a loop without using shift register or feedback loop

    Hi all

    I've been thinking, is it possible to save data in a loop to the next iteration without the use of a shift register or a feedback loop?

    I need the possibility to reload the data within a loop from a file of lvm, but I want to use the same data until I have load some new.

    The reason why I don't want use the node registry or feedback shift is due to speed, although I don't know if the registry change

    in fact moves all the data of one register to another, or if it is stopped until a change data occur.

    I want to reuse data medium and large (6 measure of strength, pressure 2, 1 flow channels) of about 10 s data in each file with samplingsrate of 2 kHz...

    In my testing program, I have several CPU demanding computations and 3D graphics, so I want just to minimize the CPU loading as much as I can for each part of the

    software...

    I am enclosing a small VI to explain what I mean.

    I have now, I shouldn't use the express VI and I'll change that as well - it's just a proof of concept!

    Hope you guys can help me better understand this shift register...

    Thank you!

    -Tommy

    If the speed is the name of the game, go with the flow (data) and stick to a shift of registers or feedback node.  No data is moved, their job is to do pretty much exactly what you describe.  Any other solution, control/locals/globals will imply a copy of the data, and then you will have problems with speed.

  • I need the sidewinder force feedback wheel 64-bit driver for Vista THAT have.

    I need the sidewinder force feedback wheel 64-bit driver for Vista THAT have.

    Thank you

    Try Google.

  • How to make a loop stop the other in parallel

    I have therefore two loops running in parallel.  When the loop at the bottom is made and stops, I want to stop the upper loop as well.  However, the loop at the top of the page runs in loops of 2 minutes.  I need to run in loops because there is a temperature feedback control, and I need a break to let the temperature change before reading again.

    Now, is it possible that I can interrupt the "expectation" his expectation and finish the while loop?  I tried to look into the structures of the event, but all tutorials just confused me more.

    Also, since we're on the subject, what is the best way to connect the error 'en', 'error' of parallel loops?  I said to use the queues, but I am at a loss as well.  Thanks in advance

    Never mind.  Found a solution:

    http://forums.NI.com/T5/LabVIEW/stop-a-loop-with-wait-timer/m-p/810781

  • DAQmx feedback loop

    Hello

    I write a VI in which an output voltage signal is sent initial (for example 10 cycles of a wave of fishing) in an electronic device. At the same time, another channel reads the voltage. In the next iteration of a loop, I want the voltage signal recorded to read to write to the output of the initial channel, such as entry becomes output and so on.

    Here's my vi at the present time, it works in the most generous sense, but I got some errors that I can't fix.

    Initially, the first iteration is registered without problem, but then, in the reading part, I get error-200279, then 200462 of error in the passage of Scripture. These are related to overwrite data in the input buffer and an empty output buffer, respectively.

    My .vi is attached. All the words of advice or encouragement?

    Thank you very much!

    OK thanks Kira T and Ye Yongqing for helping me through this, and I think I found a solution that I wanted to put in case it helps other people with their projects.

    Kira, I took your vi and, as suggested, exchanged the data record for a manual recording of data in the .tdms and that solved the 2525 error problem. However, when I have read the data (see data1.jpg), there are 2 immediate problems:

    The beginning of the initial wave of sin was being cut. I attributed this to the fact that the first task of writing Daq starts before reading inside the loop, so the first bits of the wave of fishing through the system until the task of reading can begin. I fixed that by placing the start task for writing vi inside the while loop, in a case statement that would run only on the initial iteration. Now reading and writing tasks have been synchronized.

    The second problem is quite strange - it seems that only a part of the 'i' iteration data is returned in the task of writing for iteration i + 1, and so the signal becomes gradually slowed down or expanded with each iteration since the writing task writes a progressively smaller chunck of the initial wave of fishing. By trial and error, I found that, in re-introducing the calendar than VI on the task of reading, this problem has been resolved.

    In the feedback v1_3. The desired effect is achieved: the signal is sent on itself, the noise level increases regularly with each iteration, and it doesn't seem to be cutting or the shortening of the wave of fishing.

    Thanks again to you both for your help!

    -gim

  • After a power cut my PC is in a loop in the start windows normally, safe mode, last known good configuration screen

    After a power failure when I start my PC, it gets to the screen... "We apologize for the inconvenience, but windows did not start successfully... When I try to reboot in one of the 5 modes to start normally, safe mode, safe mode with command prompt SafeMode with network, last known Noah correct configuration of their work and the loops of the computer to this sreen repeatedly.

    KB307545 is a very bad idea to begin with - especially after a power failure (and it's usually just a very bad idea).  You don't describe symptoms suggestive of a need to run the KB307545, but, I'm not a Microsoft Support engineer so don't hesitate if you are forced to do, and I wish you good luck.

    What you need to do, is start in the XP Recovery Console and run chkdsk/r first.  Is is possible that the blackout damaged your NTFS file system and a chkdsk/r is to clean it.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)?

    Sometimes, when XP has a problem starting or falls down and tries to start again, it will give you a "short" menu of boot options and none of them will appear to be good to get your system going again.  You have tried them all!

    The options are similar to the Advanced Boot Options menu XP, but the only option that you need (disable automatic error system reboot) are not offered, because XP went too far during the boot process and offers a limited number of boot options.

    If this is the case, you must call Options menu advanced boot yourself until you do not see the option:

    Disable the automatic restart in the event of system failure

    When you get the XP Advanced Options correct start menu you want to see, he has options on it like these:

    Safe mode
    Safe mode with networking
    Safe mode with command prompt

    Enable Boot logging
    Enable VGA mode
    Last good Configuration known (your most recent settings that worked)
    Directory Services Restore Mode (Windows domain controllers only)
    Debug mode
    Disable the automatic restart in the event of system failure

    Start Windows normally
    Reset
    Return to OS Choices Menu

    You need to choose in this menu is the option:

    Disable the automatic restart in the event of system failure

    Then if XP does not start normally, you will see an error screen with information and clues about the problem and then you can decide what to do next.

    If you do not see the automatic restart on system failure option turn it off, you must reset your system and start typing the key F8 on the keyboard until you see her disable automatic restart on system failure option.

    If you miss the window of opportunity F8, you must try again and start tapping the F8 key with more urgency (earlier and more frequently) until you see disable automatic restart on system failure, and then select.

    You must keep trying the F8 menu until you see disable automatic restart on system failure option, and select it.

    If your system has a Blue Screen of Death (BSOD), we need to know what the screen says:

    Here's a BSOD example showing information you provide:

    http://TechRepublic.com.com/i/tr/downloads/images/bsod_a.jpg

    Send for the nose and the Red arrows (3 to 4 lines total).

    Send all * line STOP message since there are clues in the 4 parameters.

    If it looks like there is some kind of name listed in the STOP message file, send this line also.

    Ignore the boring text unless it seems important to you.  We know what a BSOD looks like, we need to know what your BSOD looks like.

    Answering queries and results report of the disable automatic restart on system failure screen and you can decide what to do next.

    See what the BSOD said would be interesting, but I would still recommend that you run chkdsk /r from the XP Recovery Console to make sure your file system is not damaged.

    Answer the questions and we can see what to do next.

  • If the vcenter server is what will be the impact?

    Dear team,

    If the vcenter server is what will be the impact? Please provide us with feedback on the same.

    concerning

    Mr. VMware

    Even if the DRS will not work if your CV is failure

  • Try to connect to my yahoo on Safari takes me in a continuous loop to the login page. It works very well with Firefix.

    Try to connect to my Yahoo on Safari brings back me in a continuous loop to the login page. My registration using Firefox works fine.

    IM using ios10 on an iPhone 6 s

  • If I share a garageband project, other users will see that my saved loops on the side that I have preferred

    If I share a garageband e-mail project, the other person will see that my saved loops on the side I have prefer?

    maamefrommississauga wrote:

    If I share a garageband e-mail project, the other person will see that my saved loops on the side I have prefer?

    No, this information is stored locally on your computer only

  • Apple Configurator 2: Installation of the application blocks / loops over the placeholder of transfer

    I tried to set up a cart with Apple Configurator 2. I'm in iOS 9.2, iPad 2 Air and El Capitan. I tried to put in place following the blue print instructions, but that, as a dismal failure as this resulted in 16 of the 20 iPads being brick. So I was their implementation of a group of 20, first install a profile and installing apps. I tried to install my apps, but which have resulted in a loop and the errors that have no definition massively. So now I install apps in small groups of 3-5 applications. The problem that I am running is sporadic looped / hung when I install some applications. There seems to be no rhyme or reason. When I try to install the application on its own, the problem persists. It hangs at step "installation of placeholder. So far, this has happened with: Garage Band, Photo Collage and Socrative Teacher Edition. To solve the problem, I have to 'remove' the partially installed apps and then renounce install the specific application. Even if I try to install the application on its own, the problem persists. Any suggestions on how to fix this? I'm banging my head against the wall here. I'm on hour 25 + (not counting the nights where I hit a button, go home and come back on a random error).

    Thank you!

    I'm having the same exact problems, described to a T, I also try to update / prepare several wagons and Config 2 has recently been the total scourge of my work. I love the interface and think I have a solid understanding of how to use the program, but the process never ends. I thought whole point of the program was to be able to add/remove/update / manage iPads massively, but it seems to be able to get everything that fact I can only work with 2-3 iPads, both. Even so, I also have problems with remains of place holders or partially installed or removed applications. Please let me know if there is anything I can do to allow this program to run more smoothly.

  • Issue of feedback loop

    SEE ATTACHMENT BELOW *.

    I created a program that creates a constantly updated intensity image, but I would like the user to be able to adjust the 'exposure' command when using the camera. Currently, the unit is set and continuously takes pictures on a single exposure setting. I don't know how to integrate the exposure time in the loop, without compromising the structure of the program.

    There are 2 approaches (well, there is more, but I'll describe 2 of them )

    (1) use the 2 loops. The inner loop (the one you have) ends when the user changes the exposure. The outer loop just updates the exhibition and then again the inner loop.

    (2) put the VI exhibition in your acquisition loop, but only called when the user changes it (use a shift register to check if the value has changed. Place the VI so the exhibition is changed so that no data is acquired (for example between data and begins to take a new picture).

    I hope this helps.

  • How to stop the While loop in the Structure of the event with the same button?

    Hello

    I have a problem. I want to use a single control to activate an event in a structure of the event and the same control to end a while loop in this case.

    It is possible to use 2 controls to do this, but I need to be alone.

    Thank you

    You should NEVER place while loops inside the case of the event, and it is never necessary to do. Think about it: all you have to do is spin the code. You can easily use the outside while loop for everything. Simply place the code of the loop internal (without the inner loop) inside the case of delay and manipulate the time-out period between a pending finished and the infinite (-1), depending on the State of the Boolean value.

    A very simple example (LV 8.0)

  • Rate the triggered loop of the timed iterations of TTL

    Hi all

    I have a camera control VI that awaits the shutter of the camera TTL information and use it as a source of synchronization for a timed loop. In this timed loop, the camera is read and analyzed. Program should respond as soon as possible a new image and that's why I put the timed loop to "Throw missing items" so that it does not seek to catch up (events im trying to detect is quite rare and last several frames).

    The problem is this: when I put the camera for a certain numebr of frameworks (e.g. 10,000) sometimes due to discarded frames ever loop iteration number the last number of frame expected and do not remove (it remains to 9.998 for example). I noticed I can stop it by deselecting "maintain phase." However, it is clear to me what happens exactly with these settings in a situation of TTL triggered.

    It is true that the loop passes the new data directly but starts the next loop the correct number of iteration (+ 1)? Or something else happening?

    IM grateful for any help!

    Dear j.win,

    If you deselect the option 'Maintain the Original Phase', in fact you never will reject any iteration, whatever the value "Discard missed items." On the contrary, the loop will try to catch up the iterations of the end.

    Use of a source of external synchronization (for example your TTL) instead of a source of internal synchronization does not change. You can use the 'period' entrance (dt) of the loop timed to specify when the loop is supposed to go (the unit is the "ticks" in the case of an external synchronization source). A value of '1' means that test loop to iterate over all the graduations of external synchronization source. If for any reason any iteration lasts longer than that, you'll have an iteration "end". Also with a value of '1', it is not possible to change the "phase", then the parameter "Initial Phase to maintain" will be defined only weather or not ignore you the iteration. If 'Maintain initial Phase' is set to false, the loop will run immediately after an end iteration to run always, but a little of the latter. If the 'Maintain initial Phase' is true, the loop will run immediately after an iteraion end if the option 'remove point missed' is false otherwise the loop will jump the iteration.

    It's more clear now?

    Kind regards

  • Loop through the sequences selected using set of entry points into LabVIEW OI

    Hi all

    I have an operator Interface where the operator has the option to select specific measures and loop over the sequence selected according to the needs.

    Everything works as expected, but the customer wants to remove the default loop configuration pop-up box.

    Must be defined by programming the parameters of the loop (and not by the user). I figured out how to build arguments interactive but don't know how to spend it.

    Any ideas / suggestions would be greatly appreciated.

    Thanks in advance.

    Kind regards

    SS

    UnspecifiedError wrote:

    I am aware of this method and it works well, but the requirement is to run with the model process for example 'Test DUT' entry point

    Use SequenceViewMgr.ExecutionEntryPoints to get the corresponding entry point object, and then use EntryPoint.LoopOnSelectedSteps ().

    Hope this helps,

    -Doug

Maybe you are looking for