How to programmatically change the feedback device??

Hello,
We are using the NI UMI7774, together with a Servo-drive for a linear actuator. In our application, we must first go to a certain position, then maintain a certain force for while, then go back to a certain position....
For the position control we have mapped the actuator's encoder as the feedback device in MAX - and it works well. For the force control part, we want do use the "Force control using analog feedback"-method (see NI-Motion manual, chapter 13). For this, the force sensor needs to be mapped as the feedback device...
(1) The question is, HOW can we make this mapping programmatically in our application source code???...is there a method "setFeedbackDevice()" or something??
(2) Is it likely that we have to have 2 PID-settings (one for the position control part and one for the force control part) and if yes, how can we load the PID parameters programmatically, without opening MAX??
 (3) In the mean time, we have experimented a bit: Using MAX and the encoder as the feedback device, we have positioned the actuator to a certain point. Then we mapped the Force sensor as the feedback device in MAX and pressed Save. However, when we run the force-control-using-analog-feedback example, it didnt work. It still used the encoder as the feedback and hence just moved to a certain position.....We then did another try, where we set the force sensor as the feedback device in MAX, pressed SAVE and pressed INITIALISE.....the actuator subsequently started rattling, without us issueing another move command??.....does anybody know, what this could mean and what we should do????......
THANKS a LOT FOR ANY ANSWER AND YOUR EFFORTS.......
p.s. We know that there is also the option of "Force Control using Monitoring Force", but after some discussion on here, it appears that the Analog Feedback-method seems to give better force control results in our application....

Hi janClose,
You can change the feedback programmatically by using flex_config_axis(). The axis needs to be stopped when you call this function.
The control behavior differs significantly when you change the feedback resource, so yes, you will have to tune your axes for both feedback modes seperately. You can change the PID parameters by using flex_load_pid_parameters(). Please note, that you can define two sets of PID parameters and you can switch between these two sets by calling flex_load_single_pid_parameter().
The last paragraph in the online help for flex_load_pid_parameters() discusses this feature.
Parameter changes in MAX are not applied before you reinitialize the board, so if you just save the changes the board's operation mode is not affected. The reason why the motor starts rattling when you initialize it, is due to the fact that you are still using the position control PID parameters, which are typically not valid after changing to force control.
I hope that helps,
Jochen

Similar Messages

  • How to programmatically change the width of a graph?

    How can I programmatically change the width of a Waveform Graph or Waveform Chart? When I create an implicit property node for a graph or chart, it is read-only. Changing the plot bounds worked in earlier versions of LabVIEW, but not anymore.
    Solved!
    Go to Solution.

    It works for me in LV2013 but I'm using the Plot Area : Size : Width property.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to programmatically change the password of user accounts in PDF Generator

    I am using 4 user accounts for multi-thread converting Word documents to PDF in PDF Generator ES3, and I have to update the password of those user accounts. Does PDF Generator ES3 save the password somewhere on the Windows 2008 server? Can I programmatically change the password of those accounts other than updating them manually from LiveCycle Admin console?
    Thanks,
    Will

    Not in LiveCycle API.
    Changing user account password is related to Operating System.

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

  • How do I change the iPod Device Name?

    I missed the field to change my ipod's "name" - it assumed the computer name as the device name. How can I update the device name?
    Thanks!

    Thanks for the prompt reply! And of course it was something as simple as that...

  • HT1349 How can I change the 5 devices I want to access my purchased music from. And how to retrive previous purchases?

    How can I retrieve previously bought music to new devices, and possibly change ( remove) access from older devices to minimize to 5?

    The five device limit applies only to computers, not iOS devices. You can go into your acount on your computer, through iTunes and deauthorize all five computers (but only if you have five authorized). If you have fewer than five authorized, you need to deauthorize each one individually from the Advanced menu on iTunes on that computer.

  • Can I Programmatically Change the Active Group on a Hypertrend in DSC?

    I would like to know how to programmatically change the active group of a hypertrend in Labview DSC.  I saw a link which said it can be done in Lookout.  But in the DSC module, the active group is read only.
    I know of a hard way to do it.  I could save the hypertrend settings as xmlSettings to a temporary file.  The active group is one of the settings.  I could then change the active group in this text file to point to the new group and then reload the settings.  But this is not a clean way of dong it.
    Anyone know if there is a easy way?
    Solved!
    Go to Solution.

    I found a way to do it but its not very clean.  I dont know why there is not a function to change the current group.
    Here is how I did it.

  • We had one family apple id. I want to keep all devices on the same apple id for itunes but separate ones for everything else.  How do I change the others now.  We have 3 iphones and an ipad.

    We had one family apple id.  I want to keep all devices on the same apple id for itunes but separate for everything else on the cloud. How can I change the other apple ids now? We have 3 iphones and an ipad.

    Hi, thank you for this post.  I hope you might be able to help me too? 
    I am relatively new to apple (have an iPad) and having been a PC user for years I was pleasantly surprised with the apple experience and am now trying to work out the best set up for me, my husband and young son as I am buying them both of them apple products this Christmas.  New Mac laptop/ ipad for hubby and then an ipod touch for my son oh and a new mac laptop for me. We are also thinking of moving from Blackberries to iPhones. Yes we seem to be hooked! but i am unsure about the home family set up and how to replace my PC network that I run off an 8TB server.
    In reading the forums I keep seeing people talk about problems they have with two apple IDs and trying to merge them. I have also heard about a family ID allowing us to share apps legally.  I am really nervous of setting us up wrong and then having problems later and hence i am now looking for some advice on how to share as much as we can legally but also make usage practical and not invading each others privacy. thoughts so far:
    Music - I think we are happy to share the same music and access using one ID (we currently don't buy much music from apple but have lots of CDs we share).
    Photos - It would be nice to share photos - as long as my son or husband cannot accidentally delete photos of mine (which is my biggest concern). I currently load all camera photos onto my 8TB storage box as the network owner and my husband has full access to copy any photo to his laptop but can never delete the original copies by accident.
    Apps - If possible i would like us to share these but they are cheap enough these days to separate if really needed. Would be good to share licence for pages etc though
    cloud, contacts, facetime, email -  this is what is making me consider separate IDs or learning how to have multiple users in one apple ID - I do not want to have to share synced contacts with my husband. I have near 300 contacts now through work etc and he will not want them plus i will not want his or him being able to delete mine by mistake. and then for email and facetime, well I want to give him his privacy so I do not receive his messages etc. especially now that we are considering switching to iPhones
    Then last but not least, i don't know the best solution for my son. he is only 7 years old so even though I don't want to pay for things again I don't want him being able to download "just any" app from the purchased icon in Appstore. Also, is there a child friendly setting to prevent him from viewing inappropriate content on the internet?
    Appreciate I have asked a lot of questions here but I am looking for any genuine advice out there. Thank you or other potential advisers in advance.

  • Somehow I have 2 iCloud accounts...how do I change the account one of my devices is logged into?

    Somehow I have 2 iCloud accounts...How do I change the account one of my devices is logged into?

    If you are using your main account for iTunes, you should continue to do so, otherwise you will lose access to many of your purchased items made that account.
    You can delete the AOL account for iCloud only on your iPhone and first iPad, by going to settings > iCloud, scrolling down and hitting delete account button. You will then enter your me account details into the iCloud settings.
    When you delete your AOL account from the iCloud settings, the phone should give you the option of keeping your data on the phone, you need to make sure that you choose this option, and also choose the option to merge when you add your new account back.

  • HT3965 I got what appears to be a reconditioned (pre-owned) iPod Touch 4 for Christmas.  How can I change the Apple ID on tis device so I can use it with my iTunes Acct and Wi-Fi network?  Thanks.

    I received what appears to be a reconditioned iPod Touch 4th for Christmas.  How do I change the Apple ID on the device to my ID so I can use my iTunes account?  Thanks for any help/

    It would probably be best to attach the iPod to a computer and restore it. This way you'll know it's wiped clean. Then, when you start up the iPod it will ask you for your Apple ID.

  • How do I change the email associated with my IMac cloud to match all my other devices

    When I set cloud up on my IMAC I was prompted to use an address from apple and two other Ipads and two other I phones use my normal email address all wouk fine.
    How do I change the email address for my I mac/web to the same email I use for all other apple producte I have that use ICloud?

    Welcome to the Apple Community.
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)

  • I no longer want to merge my work laptop with my icloud account on other devices.  How can I change the setting for the laptop?

    I accidentally agreed to set up my work laptop icloud account to merge with my other devices and want to keep the work information separate.  How can I change the setting for the PC at work?

    Sign out of iCloud.

  • How do I change the order, in an IOS device, of iPhote Events?

    How do I change the order, in an IOS device, of iPhote Events.
    It seems sometimes they are in order by "Event Title" and sometimes they are in order by "Event Date". 
    I can change the order, as I please, in iPhoto on my Mac.
    But what controls the order in IOS devices is a mystery to me.
    Thoughts?

    That's not quite true. 
    There is a connection between the last sort order of the event in iPhoto.
    IPhoto allows events to be sorted in a number of ways.  The sort order in the IOS device is driven by this but I'm not sure how it works exactly.
    Yesterday, the events in the IOS device were in Date order as you suggested but today they are in Title order.
    Does anyone know the exact rules?

  • How do I change the authorization e-mail for a device?

    We're trying to download library books to my wife's new Color Nook.  We've downloaded the books to our computer via Adobe Digital Editions (ADE).  But, whenever we connect the Nook to our computer with a USB cable, ADE shows a prompt asking us to authorize the device using an old e-mail address, not the one my wife is using for her Nook.  Also, when I try to use the Library > Authorize Computer command, ADE says that we've authorized a device using the old e-mail address, not the one my wife is using.  How can I change the authorization e-mail address so that it recognizes her device???

    1.  I'm sure you must have tried signing in to Adobe and changing email address in your profile.  Don't know if they retrofit.
    2.   I can't account for what just happened.  Last night I took screen shots of all the various manifestations of my problem, including messages that the book both could and could NOT be copied.  For the umpteenth time I reopened the original booksale into ADE and tried to drag to Nook--got the usual red X's.   This morning the icon miraculously allowed itself to be dragged into the nook. Green all the way--nothing had been changed.  Elves in the night?  Then I opened Nook--no book! But there it was in Documents.  No, it wasn't there all this time.  I knew to look there because of other threads.  I also remember someone else had a problem that sorted itself out after leaving the Nook attached to computer for a long time. 
    So thanks for all the suggestions.  What I take away from all this is that the Nook works well with B&N but using ADE for EPUB books is clumsy and tedious. Or possibly it is just slow.   If I had wanted only books in English I could have gotten the Kindle, but with Nook I expected to gain access to Dutch books.  It had worked before, but this time, perhaps with this seller, I spent hours spread over 3 days to sort it out and I still don't know how to avoid this the next time. 

  • How do you change the channel of the device?

    How do you change the channel of the device?

    Isn't there a way to see what channel it is on so one can choose a different channel?
    Hold down the option key on your Mac while you click on the fan shaped AirPort icon at the top of the screen.
    If you want to manually set the channel on an Apple router, you would use AirtPort Utility for this.

Maybe you are looking for

  • Is it possible to install Tiger using an external DVD drive?

    I have one the of the first iMacs and at the time I thought I didn't need a DVD Player. However, now I was thinking of buying an external DVD player/burner. Is it possible to upgrade to Tiger using the external DVD drive since I don't have an interna

  • Oracle 10g OLAP to 11g OLAP upgrade ?

    We currently are planning on a upgrade from 10g OLAP => 11g OLAP. We currently have 12 AWM's in 10g OLAP which we need to move over with associated DML programs and additional SQL reporting views. Questions: 1. Is there any documentation available on

  • Right side of my power button isn't working again (ip5)

    This happened six months after i bought the iphone (i originally got it on launch date), and i got another phone at the store, (after testing to confirm). its been about six months after, but I'm out of my warranty by just a week or so, and this prob

  • Illustrator CC says it can't update because my system is out of date - but's it's not

    I'm trying to download Illustrator CC from Adobe Cloud and I get the message that "You are running an operating system that Illustrator no longer supports. Refer to the system requirements below for a full list of supported platforms." But I'm not -

  • I need a class!

    So after reading many posts, I've come to the realization that I need a class in Imovie, Final Cut and exporting to DVD's! There are so many options, so many settings, so many "technical" terms being thrown around, how is a person supposed to know wh