Problem when analog feedback is set as primary feedback

I have a simple labview program for pressure control. Primary feedback is set to ADC 1 in MAX. ADC 1 is connected to a voltage signal which represents a pressure. When the motor run from program, the motor stopped after certain time because move complete turn to True, but the position reading didn't reach the desired position at this time. If the motor run from MAX, the motor didn't stop untill the position reading reached the desired value.
The configuration file exported from MAX and lv program are attached. I would appreciate you very much if anybody could find problems in my program or configuration.
I am using PCI 7342.
Thanks.
Attachments:
ADC_primary_feedback.xml ‏581 KB
pressure_control_2.vi ‏74 KB

Hello Ya-hoo.
I first just want to clarify what I think your issue is. It sounds like you essentially have a servo motor system with analog feedback. This system is moving to the desired position (pressure) when it is run through 1-D interactive in MAX, but it does not correctly move in your LabVIEW program.
This situation is uncommon but it can happen. Generally speaking, the things to make sure of:
Be sure the settings are saved in MAX and that the board is initialized with those settings before running the LabVIEW program
Make sure you are not calling the stop VI too early. In the while loop you are polling the move complete criteria. What happens if you take that out and simply wait until the user pushes the stop button? If this fixes
the problem, try adjusting some of the Move Complete criteria (Trajectory Settings in MAX) and see if that changes the behavior.
As far as the tuning is concerned, I will refer you to the following tutorial on Understanding Servo Tune. This should go over some tuning concepts.
Hope this helps.
Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog

Similar Messages

  • Video playback problem when outputting to TV set

    I'll try and keep this brief and to the point.
    I have a dual monitor setup: my primary is an LCD monitor; my secondary is a 32" HDTV.
    Playing all videos works perfectly in fullscreen on my HDTV, but when using Quicktime the movie won't display on the TV, but it does display on my monitor.
    I've gone through all possibilities I can think of. QuickTime is up to date, my hardware is more than capable (proven further since it will play HD Windows Media Video perfectly) and there are no hardware issues. It's purely a QuickTime problem.
    Incidently, the same issue occurs when viewing video in iTunes.
    Any advice would be hugely appreciated.

    A DVI > HDMI cable. (Same cable I use from MacBook > HDTV except with the MacBook I add a mini-DVI adapter.)
    I can't use Detect Displays because, when the screen is blue, I can't see the screen in order to click that button.

  • Hi I'm Barb I have another question - thanks to Eric Root was able to install OSX - but had problum when it wanted to set everything up beCause I forget my login info so I put it thru as No Sign In - I got my info and would like to have OS X set itself up

    Hi I'm Barb I have another question - thanks to Eric Root was able to install OSX - but had problem when it wanted to set everything up because I forget my login info so I put it thru as No Sign In - now I have my info and would like to have OS X set itself up can I get back to that setup point? and of course how? Thanks again Eric

    Hi Eric -As to both questions I must tell you how relieved you made me, I've been on mac's since 1990? and this is truthfully the first time I've received a intelligent understandable response without have to go through 3 or 4 people - You are really Great - hope you won't mind my coming back to you if I need to. Thanks Again   -   Oh by the way I did what you said and did it manually easier and safer. Barb

  • Problem using analog feedback on pix7340

    Hi,
    I am trying to use analog force feedback on one of my axis on pxi 7340. The problem is that MAX always uses encoder as feedback even if i configure it to be analog. In MAX i disabled encoder and enabled the appropriate ADC for the axis and set the position to few hundred counts so the controler stops the axis when force is above a small value (around 1V). If i start motion it moves the same as if the feedback was encoder (for few hundred counts). I dont know what is happening. I red the motion manual and if i understood it correctly the axis should move at the configured speed until the force is larger as value i set in position field.
    Thanks
    Solved!
    Go to Solution.

    Hi toni939,
    please have a look at this document to get a full understanding how analog feedback works with NI motion control boards. I have also gathered all discussions with my involvement about analog feedback under the AnalogFeedback tag.
    Kind regards,
    Jochen Klier
    National Instruments
    Message Edited by Jochen on 02-03-2010 04:20 PM

  • Problem when combinning PWM signal and Analog signal TOGETHER!

    Hello everybody,
    first of all i have DAQmx 6212, and i need to run a small water pump (9V-16V) which needs to be driven by a PWM signal; also i have a motor (5V-13V) for a water valve that needs to be driven by a analog signal and it has a built in a force feedback potentiometer, i connected on the extremeties of this potentiometer +5V from the DAQmx and used the output voltage from the third extremety as a diagnose value for knowing the position of the motor.
    my VI shows:
    1. is a normal Counter output to create my PWMout signal.
    2. is an analog input i use it as a PWMin to the LabVIEW to diagnose what is happenning in my water pump through the duty cycle and the frequency.
    3. is an analog input from the third extremety of the potentiometer.
    4. is an analog output which i have used as a power supply for the motor valve and i have used an AC/DC amplifier to aplify the signal from the DAQmx and drive the motor, between (3. and 4.) i have made a feedback with some calculations i had a P-controller to know the actual position of the motor valve.
    My Problem:
    when putting 1. and 2. in the same VI alone, i am getting a clean PWM in/out with no problems mentioned;
    also when putting 3. and 4. in the same VI alone i can control the motor valve without any problems;
    but when i put all these 4 together as found in the attached VI, i have a problem that the motor valve is running continously without stopping even if i change the valve position between 0 and 100 %, i should mention that i am seeing a normal PWM out/in signal on my oscilloscope, one other thing that if i delete one of (1. or 2.)  and run the VI the motor valve is working fine without any problems.
    so this my problem, if you can think of any solution please let me know.
    thanks in advance for your help.
    Regards,
    Alosh
    Solved!
    Go to Solution.
    Attachments:
    pwm.out.in.analog.out.in.vi ‏45 KB

    Dear nathand thanks for your reply,
    i have ran the vi again and i am have error no 50103 from the (AI, number 3. )  but it is not displaying the error message, the VI keeps running without any error notification.
    adding to that,  i have tested the VI again today by placing (1. and 2.for the PWM inout) together in one VI and (3. and 4.for the motor valve) in another VI and ran them one after the other, i had another problem. if i turn the motor valve vi, the motor will run smoothly but in the pwm vi i will have a problem in which the AI did not read any value. also doing this vice versa by running the pwm vi first it will work perfect but the motor vi will have problem in reading the measured voltage in AI during this the motor will keep on running without stopping.
    so i think now the problem is in AI (2. and 3.) readings they are interfering on each other but i am not discovering where is my problem...
    Q: does the AI's seems well build or i can do it in an another way so to get over the interfering?
    Regards,
    Alosh

  • MSN's latest update is crashing Firefox many times per day. When I try to send the crash report to Firefox, it says it has trouble sending the report. Is anyone else having this problem? Is there a setting that can help?

    Firefox is crashing every time I have my MSN email account up. (Since I use it for business, that's many times per day.) It seems to coincide with hotmail's latest update where the email is checked and downloaded to the inbox automatically. Then when it asks me if I want to send the crash report to Firefox, I select yes and it tells me it had trouble sending the report. Is anyone else having this problem? Is there a setting I can change? I can't seem to keep my email account up for more than 10 minutes.
    p.s if you're reading this Microsoft, it's still not bad enough to make me to go back to Internet Explorer!

    Hi,
    /Users/sarahschadek/Desktop/Safari.app/Contents/MacOS/Safari
    Move the Safari app from the Desktop to the Applications folder.
    Restart your Mac.
    That's why you see this:
    When I try to do the updates my computer says it has ready it goes through like it is downloading them then at the end it says some of the files could not be saved to "/" files.
    After your restart your Mac, click the Apple  menu (top left in your screen) then click:  Software Update ...
    Carolyn  

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • On iOS 7 when I try to set a new wallpaper why can't I scale and move my photo? Anybody else having this problem?, On iOS 7 when I try to set a new wallpaper why can't I scale and move my photo? Anybody else having this problem?

    On iOS 7 when I try to set a new wallpaper why can't I scale and move my photo? Why does it chop off the heads? Anybody else having this problem?

    Hi CollBA,
    See More Like This to the right. This issue has been discussed several times on this forum.
    Cheers,
    GB

  • Flash buttons problems when screen text set to medium in Windows 7

    Anyone else have this problem that when
    users have set windows 7 to Medium 125% screen size (not screen resolution), the clickable area on all buttons
    in a flash menu/file are off. It's like the area to click for the button is not resized with the graphics and are no longer located over the button but stays where it is when screen size is set to 100%. With a more complicated menu, it makes it nearly impossible to click buttons at the bottom of the menu as the clickable area is located twoor more buttons up. It also seems to be happening with newer Flash files. On older versions it's not happening and the clickable area is scaled with the graphics in the Flash file. Please help!

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • Problem when setting encoding to ISO-8859-1

    Hi. Is there something I'm missing when it comes to setting
    encoding? Here are the code in the mxml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    </Application>
    In the html-template I'm setting:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    The code for sending data from the app:
    <mx:HTTPService
    id="service"
    url="encoding.jsp"
    method="post"
    showBusyCursor="true"
    result="onResult(event)"
    resultFormat="xml"
    contentType="application/xml"
    fault="onFault(event)"
    useProxy="false" />
    public function send():void {
    var xml:XML = <Data>{data.text}</Data>;
    service.send(xml);
    But still the respons jsp I have made says it receives the
    data in UTF-8 format? What am I doing wrong?
    Servercode:
    don't work: BufferedReader reader = new BufferedReader( new
    InputStreamReader( is ) );
    work: BufferedReader reader = new BufferedReader( new
    InputStreamReader( is, "UTF-8") );

    Are there no-one who have the same problem? I've tried
    everything imaginable, and still the serverside receives the data
    as UTF-8.
    Is it supported at all to set the encoding of the
    request?

  • When I try to set the automatic time zone on my iPad in Settings all I get is the "waiting" wheel constantly turning.    The only way to set the time is in the manual mode.  Does anyone else have this problem?  Thanks!

    When I try to set the automatic time zone on my iPad wi-fi mini in Settings all I get is the "waiting" wheel constantly turning. 
    The only way to set the time is in the manual mode.
    How to solve this problem?
    Thanks!

    You must be connected to a good wifi network for it to reach an outside time server.

  • What is the block diagram of the feedback loop when op mode is set to velocity?

    On 7344s, is the feedback loop changed when the operation mode is set to velocity? Is it still a “position feedback” loop with just a ramp at the input? Or is there an additionnal derivitive to find the speed and the input command is a speed?

    When making a move where the encoder is not configured for velocity feedback, the control loop uses actual position vs. expected position as a function of time to correct for the velocity output. However, when the encoder is configured for velocity feedback, we actually use the velocity based on encoder feedback in the control loop and this also allows us to use the functionality of the Kv term to smooth velocity response.
    Best Regards,
    Chris D
    NI Applications Engineer

  • Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place. Tks

    Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place? I know there are different possibilities to set.
    I tried but it not helped for me. What I can do? How and where can set this they stay on their place?
    Thanks.
    laci

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • Since ios 6 update hotmail fetches or push on its own. I have hotmail set to manual. Best I can tell its only hotmail and not yahoo. Is this a known problem? How do I make hotmail stop checking for mail when I have it set to manual?

    Since ios 6 update hotmail fetches or push on its own. I have hotmail set to manual. Best I can tell its only hotmail and not yahoo. Is this a known problem? How do I make hotmail stop checking for mail when I have it set to manual?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • HT4623 my iphon 4s got problem when i was updating it and screen become black and there is a usb & itone icon on it it dose not work any more ..any feedback about this guys?

    my iphon 4s got problem when i was updating it and screen become black and there is a usb & itone icon on it it dose not work any more ..any feedback about this guys?

    Connect it to iTunes and restore it.

Maybe you are looking for

  • Issue in installation oracle 12 c

    hi all, i tried to  install oracle 12 c on windows 8 64bit , i know that  both 2 files should  extracted  at the same file  first i extracte  part 1  it give me file  called  database then i  extract the second in  the folder which called database wh

  • IMac waking up..console says hijack!

    Hey... My iMac has been waking up allot during the night for the past few months... Someone when I come to it I find it not sleeping at all. I was told a few weeks ago when I catch it go to the system log.. I did that today and am now really worried

  • IPhone 6 240fps slow-motion import

    Hey everyone, I understand when I import the clip into Final Cut Pro I choose 30fps, and then click on the clip and set it to automatic speed. Then I will get my 240fps slow-motion. 2 issues though. I would like to have the same effect as Quicktime P

  • Document authorization check

    Hello, Is there a BAPI call, that being given a pair 'user name' + 'document number' will say whether the user is authorized for at least read access?

  • Source system creation IDoc error

    Dear Experts, While creating the source system I am getting this error "IDoc type ZSDD029 could not be found", if I ignore this error the system creates source system in BI folder instead of making it in SAP folder. I have created IDoc with this name