Can I implement advanced control algorithm with floating-point computations in Ni 7831R ?

Hi,
I plan to use a Ni 7831R to control a MIMO nano-positioning stage with servo rate above 20kHz. The control algorithm is based on robust control design and it is much more complex than PID. it also includes floating-point caculations. Can I implement such algorithm with Ni 7831R?
By the way, is there any way to expand the FPGA gates number for Ni 7831R? Suppose I run out of the FPGA gates (1M), can I add more FPGA gates by buying some different hardware?
Thanks
Jingyan
Message Edited by Jingyan on 08-22-2006 01:45 PM

Jingyan,
as long as there is no GPU core implemented on the FPGA these devices only support integer arithmetic. NI's FPGA targets currently don't contain a GPU core so there is no native floating point arithmetic available.
Still there are several options to implement floating point arithmetic on your own or to work around this target specific limitation. Here are some links that might help:
Floating-Point Addition in LabVIEW FPGA
Multiplying, Dividing and Scaling in LabVIEW FPGA
The NI 7831R uses an 1M FPGA. If your application requires more gates the NI 7833R (3M) is a good solution.
I hope that helps,
Jochen Klier
National Instruments Germany

Similar Messages

  • How can I implement recipe control concept in SAPME?

    Dears,
    How can I implement recipe control concept in SAPME?
    For example,
    We can config the standard temperature setting needs to be between 100~120 degree C for Operation OP1 and Material MA1
    So, before user start the SFC of MA1 at OP1, system can display the config values(100~120) for user reference, then, user need to input the real temperature when process the SFC, if it's out of spec, system can warning. System will collect the input data for analysis in future.
    Thank you.

    Thank you for your information.
    Since customer prefer to use a custom UI which can communicate with SAPME by web service.
    So I can not use SAPME default data collection or work instruction user interface.
    I'm considering by using data collection and work instruction config data to develop a web service in MII and poblish to custom UI in which it can display the spec data and reject user's input if out of spec.
    Please feel free to inform me if any other good idea, thanks!

  • Can i activiate my new iphone4s with a different computer that i activated my first iphone with as long as i'm using my itunes account?

    can i activiate my new iphone4s with a different computer that i activated my first iphone with as long as i'm using my itunes account?

    I sync my iPhone with my MacBook Pro.
    I installed the 3.1.2 firmware update today with a PC laptop running Vista that I haven't synced my iPhone with. I made sure the Windows laptop was running the current iTunes version, and before connecting my iPhone, I disabled automatic syncing when any iPod or iPhone is connected which is done via iTunes preferences under the Devices tab.
    I took a risk and didn't create a backup for my iPhone when prompted. The firmware update followed by installing the AT&T carrier update was done without a hitch.
    This is risky without having a backup (which I could have done beforehand) and without having any of my iTunes content available on the PC if there was a problem installing the update.
    Do the same at your own risk. The worst would be not having any iTunes content to transfer back to your iPhone in the event you needed to restore your iPhone with iTunes on a different computer but if you allow iTunes to create a backup for your iPhone in advance, at least you could restore your iPhone from your newly created iPhone backup in the event of a problem.

  • Can I use the airport express with a desktop computer that is not wire less- I want to have wifi in the house for an iphone

    Can i use the airport express with a desktop computer not wifi- I want wifi for my iphone

    I can't seem to find any information anywhere.  It seems like it should work since the AX is showing up on his wifi settings on both his iPhone and iPod.  Not to mention the Apple "Genius" told him that it should work.  However, they also told him that it came with an ethernet, USB and the stereo patch cables...

  • Can you purchase Verizon gift cards with reward points?

    can you purchase Verizon gift cards with reward points?

        patsysue,
    Great question, you sure can buy Verizon Gift cards with your reward points along with other gift cards as well.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • I have an old nano and a new computer.  Can I sync the old nano with the new computer without loosing all the music on the nano?

    I have an old nano and a new computer.  Can I sync the old nano with the new computer without loosing all the music on the nano?

    with the nano connected to the computer, go to itunes and file-transfer purchases.

  • The BIG failure of the floating point computation

     The Big failure of the floating point computation .... Mmmm
    You are writing some code .. writing a simple function ... and using type Double for your computation. 
    You are then expecting to get a result from your function that is at least close to the exact value ... 
    Are you right ??
    Let see this from an example.
    In my example, I will approximate the value of pi. To do so, I will inscribe a circle into a polygon, starting with an hexagon, and compute the half perimeter of the polygon. this will give me an approximation for pi.
    Then I will in a loop doubling the number of sides of that polygon. Therefore, each iteration will give me a better approximation.
    I will perform this twice, using the same algorithm and the same equation ... with the only difference that I will write that equation in two different form 
    Since I don't want to throw at you equations and algorithm without explanation, here the idea:
    (I wrote that with Word to make it easier to read)
    ====================
    Simple enough ... 
    It is important to understand that the two forms of the equation are mathematically always equal for a given value of "t" ... Since it is in fact the exact same equation written in two different way.
    Now let put these two equations in code
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    RichTextBox1.Font = New Font("Consolas", 9)
    RichTextBox2.Font = New Font("Consolas", 9)
    TextBox1.Font = New Font("Consolas", 12)
    TextBox1.TextAlign = HorizontalAlignment.Center
    TextBox1.Text = "3.14159265358979323846264338327..."
    Dim tt As Double
    Dim Pi As Double
    '===============================================================
    'Using First Form of the equation
    '===============================================================
    'start with an hexagon
    tt = 1 / Math.Sqrt(3)
    Pi = 6 * tt
    PrintPi(Pi, 0, RichTextBox1)
    'Now we will double the number of sides of the polygon 25 times
    For n = 1 To 25
    tt = (Math.Sqrt((tt ^ 2) + 1) - 1) / tt
    Pi = 6 * (2 ^ n) * tt
    PrintPi(Pi, n, RichTextBox1)
    Next
    '===============================================================
    'Using Second Form of the equation
    '===============================================================
    'start with an hexagon
    tt = 1 / Math.Sqrt(3)
    Pi = 6 * tt
    PrintPi(Pi, 0, RichTextBox2)
    'Now we will double the number of sides of the polygon 25 times
    For n = 1 To 25
    tt = tt / (Math.Sqrt((tt ^ 2) + 1) + 1)
    Pi = 6 * (2 ^ n) * tt
    PrintPi(Pi, n, RichTextBox2)
    Next
    End Sub
    Private Sub PrintPi(t As Double, n As Integer, RTB As RichTextBox)
    Dim S As String = t.ToString("#.00000000000000")
    RTB.AppendText(S & " " & Format((6 * (2 ^ n)), "#,##0").PadLeft(13) & " sides polygon")
    Dim i As Integer = 0
    While S(i) = TextBox1.Text(i)
    i += 1
    End While
    Dim CS = RTB.GetFirstCharIndexFromLine(RTB.Lines.Count - 1)
    RTB.SelectionStart = CS
    RTB.SelectionLength = i
    RTB.SelectionColor = Color.Red
    RTB.AppendText(vbCrLf)
    End Sub
    End Class
    The results:
      The text box contains the real value of PI.
      The set of results on the left were obtain with the first form of the equation .. on the right with the second form of the equation
      The red digits show the digits that are exact for pi.
    On the right, where we used the second form of the equation, we see that the result converge nicely toward Pi as the number of sides of the polygon increases.
    But on the left, with the first form of the equation, we see the after just a few iterations, the function stop converging and then start diverging from the expected value.
    What is wrong ... did I made an error in the first form of the equation?  
    Well probably not since this first form of the equation is the one you will find in your math book.
    So, what up here ??
    The problem is this: 
         What is happening is that at each iteration when using the first form, I subtract 1 from the radical, This subtraction always gives a result smaller than 1. Since the type double has a fixed number of digits on the left of the decimal
    point, at each iteration I am loosing precision caused by rounding.
      And after only 25 iterations, I have accumulate such a big rounding error that even the digit on the left of the decimal point is wrong.
    When using the second form of the equation, I am adding 1 to the radical, therefore the value grows and I get no lost of precision.
    So, what should we learn from this ?
       Well, ... we should at least remember that when using floating point to compute a formula, even a simple one, as I show here, we should always check the exactitude of the result. There are some functions that a floating point is unable to evaluate.

    I manually (yes, manually) did the computations with calc.exe. It has a higher accuracy. PI after 25 iterations is 3.1415926535897934934541990520762.
    This means tt = 0.000000015604459512183037864437694609544  compared to 0.0000000138636291675699 computed by the code.
    Armin
    Manually ... 
      You did better than Archimedes.   
      He only got to the 96 sides polygon and gave up. Than he said that PI was 3.1427

  • Can I sync my ipod nano with my second computer/ netbook while travelling?

    Looking for some advice on how to connect my IPod nano with my second computer while travelling. That's what happened: I have my iTunes library on my computer at home and can sync my IPod nano (6 th generation, replaced onyl recently) with that library. While I was travelling and wanted to use my IPod I received an error message asking me to connect the IPod with iTunes in order to recover/restore (sorry, the message apeared in German, so I do not know the exact wording in English) . As I only had my second computer - a small netbook - with me, I downloaded iTunes and connected the iPod - only to receive the message that this Ipod would sync with another computer (sure!) and would I want to sync it with this iTunes library instead now? (Of course not, I did not dare because that library was empty!). So there I was with my computer with iTunes library at home and an iPod stuck in recovery mode and not doing a thing during my vacation. Any suggestions? If I have to take my great big workstation with me to get the iPod running again, I might just as well leave the iPod immobile at home. (;-)

    On your home computer connect your Nano, click on the name in iTunes, move right to the Summary tab then tick the box that says Manually Manage Music. You will now have to er, manually drag your music to your iPod, and manually eject it when done, but you will be able to add music from two different computers.

  • JSlider with Floating point values

    I desperatly need to create a JSlider with floating/decimal values. For example between 0 and 1 and ticks within an interval of 0.1.
    The default behaviour of JSlider doesn't allow me to do so, hence is there any other way around ? I know it's possible to programmatically handle the required calculation by divding the values by 10, 100 or anything, but i want to display the actual values (floating/decimal) on the JSlider bar.
    Thanks in advance

    this might do you for the display
    import javax.swing.*;
    import java.awt.*;
    class JSliderLabels extends JFrame
      public JSliderLabels()
        setLocation(400,200);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JSlider slider = new JSlider(0, 100, 1);
        slider.setMajorTickSpacing(25);
        slider.setPaintTicks(true);
        java.util.Hashtable labelTable = new java.util.Hashtable();
        labelTable.put(new Integer(100), new JLabel("1.0"));
        labelTable.put(new Integer(75), new JLabel("0.75"));
        labelTable.put(new Integer(50), new JLabel("0.50"));
        labelTable.put(new Integer(25), new JLabel("0.25"));
        labelTable.put(new Integer(0), new JLabel("0.0"));
        slider.setLabelTable( labelTable );
        slider.setPaintLabels(true);
        JPanel jp = new JPanel();
        jp.add(slider);
        getContentPane().add(jp);
        pack();
      public static void main(String[] args){new JSliderLabels().setVisible(true);}
    }

  • Can an American iPad be synced with a European computer via USB

    I know that I will need an adapter if I want to charge it via the wall socket but I was just wondering is there any special adapter I need to sync the ipad with my home computer (as in will the voltage difference in europe affect the ipad plugged in through a USB)

    That is not a problem...no voltage difference between a European and US laptop through the USB port.
    Once you get past the wall outlet/charger they are the same.

  • Hp6500 can't scan from control panel with mavericks

    I've not found any guidance that says this should not work when the full HP Inkjet software package is installed.  I've located, with some difficulty, the 'full' software distribution at HP-Inkjet-SW-OSX-Mavericks_v12.34.44.dmg.  I can find no general directory or listing for this software, I just found it through blind luck.  Is there such a listing of the latest full package?   I have 10.9.3 on an 8G Ram macbook pro.  I have completely removed the driver for my e709a Ethernet attached printer and reinstalled it, and then installed this full distribution as well.  When I run HP Utility, the 'all settings' button is greyed out, and I can see no way to enable the scan button on the printer's control panel.  Is this supposed to work?  if so, how?  If not, is it going to be fixed one day by HP, or do I just give this printer away and buy a different one?  If so, which HP officejet printers support scanning from the printer control panel?  thank you.  

    Hi,
    The drivers above are intended for the HP Officejet 6500A (E710) and not for your printer, therefore it cannot locate it.
    Scanning from the front panel is not supported for your printer on Mavericks, scanning can only be done via Apple's software as a full feature software is not available for the operating system.
    You may scan using Image Capture or Preview as listed below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03967506&tmp_task=useCategory&cc=us&dlc=en&lc=e...
    Newer models as the HP Officejet 6700, Officejet Pro 8610 as example, as well as any current HP Inkjet printer with a Full Feature Software for Mavericks will allow scannig from the front panel.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I can't open the control centre with a Griffin Survivor Case on my iPhone 5.

    The title says it all really. The plastic of the case ends really close to the screen and there is an inbuilt screen protector. This means I can't register touch on the bottom edge of the screen, which is apparently where you have to swipe to open the control centre. I have no problems opening the notifications, swiping down from the top.
    Does anyone alse have this problem, which the same or different cases? I know there are similar issues with Otterbox cases too.
    I hope Apple will notice the problem and make a fix soon. It should be simple enough - just move the swipe spot up a little like the one at the top of the screen.

    I have the OtterBox Armor case which has a similar design and thus problem.  After much practice I can now open CC with about 3 or 4 attempts.  Much better than when I started and thought it just couldn't be done.  I really have to start at the exact middle of the bottom of where the screen meets the case. 

  • How can I implement  Multi Factor authentication with IAM products?

    Hi I would like to implement multi factor authentication that can be made generic with all IAM produts. Can anyone suggest an MFA factor like that? It shudnt be an add on or plug in. Instead it should be an in built feature. Can anyone suggest any idea?

    Opensso has such feature built-in. You can create an authentication chain in which you can add as many authentication mechanisms as you need.
    Although it is a built-in feature, there's no full support for all sorts of authentication methods. Some of them exist as plugins, like authentication modules for smart cards and biometrics because they are not sold by Sun Microsystems. However, there's a solution for you requrement even tough you might add some auth modules as plugins like biobex, activcard or auth modules from other vendors.
    Regards.

  • Can't propagate Cache-Control headers with Surrogate-Control header

    My application may set the following response header to cause webcache to process the esi:include's:
    Surrogate-Control: content=ORAESI/9.0.4, max-age=3600
    It and also may set the following intended for the browser cache:
    Cache-Control: private
    or say:
    Cache-Control: max-age=3600
    However Webcache removes this and always adds the following whenever surrogate-control has been set:
    Cache-Control: max-age=0
    This means I can't have browser caching and esi page compilation, just one or the other.
    This seems to be designed behaviour can someone explain why this is and if it can be worked around?
    I realise that the Cache-Control header should be ignored by webcache but why cant I propagate it to higher caches?

    Patrik,
    You'll need to convert the meta http-equiv tags into actual HTTP headers before sending for Web Cache to be able to parse it.

  • Can I programmat​ically control USB with LabVIEW?

    I have a requirement to test a USB device. The test includes powering several of the devices off and on, i.e., power cycling for several hours. My plan is to accomplish by using a USB hub, breaking out the power circuit and running it through a relay inside of a DAQ. A neater solution would be to programmatically turn the USB device off and on. I know that the computer communicates with the device under test via USB and not the USB port itself. So I’m wondering if it’s possible with LabVIEW to accomplish this.
    Thank you.

    I'm not exactly sure what Eric was referring to as far as ActiveX. If it's with respect to the operating system, you're not going to find any ActiveX interface with the OS to do this. Unless he was referring to software programmability of the hub? Don't know.
    With respect to power-cycling, a USB port can be disabled using OS calls. Thus, if you want to just turn off the whole hub you can disable the USB port that the hub is connected to. On Windows you can use a command-line utility called devcon to do this (search the forum as this has been mentioned before). The limitation is that devcon is not redistributable. This means that you cannot include it if you're giving this software to a customer. If, on the other hand you need to selective turn off the ports on the hub (i.e., to test individual devices), then you'd have to go back to the manufacturer of the hub and find out if they have a software interface to do this. Otherwise, it's the external power on/off approach via a relay or via a regulator as suggested by SnowMule.
    EDIT: Additional caveat: devcon may not work under Windows 7. You did not indicate what operating system you're using. However, the OS calls that devcon makes are still there.

Maybe you are looking for

  • Will all of my Music be gone off of my Ipod?

    My brother bought a new computer because the old one broke , I think he has some data from the old computer though. I did not purchase anything from Itunes , I just have my music from Winamp. If I press transfer purchases from a New Itunes program ,

  • Very very urgent - foreign curency valuation

    Hi when i am not assigning the cost centre to vendor in FB 60 then the foreign currency valuation is working properly. but when i assigned the cost centre then i am getting following error Posting for general ledger account 15201001 amount           

  • Classcastexception with corba

    Hi we have a little corba project at school with a refferee (the server) and Players. All Players are Actor Objects which the idl created with stub and everything. the implementation of Actor is Speler (actually it extends _ActorImplBase, but in my l

  • Difficulties while painting (Background shown in front of my painting)

    Hi, First of all, I just want to tell you i'm a noob in JAVA (used to do C++). I just learned it in a one week crash auto-didacte course and i'm coding for almost a month now so it is certain that I'm missing something obvious. I read the painting tu

  • New Magic Trackpad: No Multitouch Gestures? System Sees "plain" trackpad?

    I just installed a new Magic Trackpad on my work Mac Pro. I'm current on the OS (10.6.6) but after pairing the trackpad I get only the basic trackpad control panel. I've also installed one at home on a similar system and did get the updated control p