Spline Engine returns zero with all possible inputs

Hello,
The Spline Engine in my FPGA code for my controller appears to not be working under any inputs. I have set both reset position and spline data updated to TRUE and made the spline data output equivalent to the highest possible number. The documentation for the spline engine says that with reset position set to zero then the output is set to coefficient 0. This doesn't occur either. I think it is caused by the fact that output valid is always FALSE even though my inputs should provoke a response. Attached is the related segments of my front panel and block diagram.
Running on a cRIO 9022.
Any help would be appreciated,
rustawilliams
Attachments:
Problem with Spline Engine.png ‏70 KB

If you look at the documentation for the spline engine, http://zone.ni.com/reference/en-XX/help/371093G-01/nismlvhlp/spline_engine/ , reset position TRUE is supposed to set setpoint to coefficient 0 which is not happening. When reset position is FALSE the output valid Boolean indicator is still FALSE and setpoint is still 0.

Similar Messages

  • Fill Array with all possible combinations of 0/1

    Hi,
    i'm looking for a fast way to fill an array, respectively an int[8], with all possible combinations of 0 and 1 (or -1 and 1, shouldn't make a difference).
    I kind of know how to do it using multiple loops but I assume there is a more elegant or at leaster "better" practice.
    Thanks,
    nikolaus
            static int cnt = 0;
         public static void main(String[] args) {
              int[] element = new int[]{1,1,1,1,1,1,1,1};
              Integer[] x = new Integer[2];
              x[0] = 1;
              x[1] = -1;
              for(int i7:x){
                   element[7] = i7;
                   for(int i6:x){
                        element[6] = i6;
                        for(int i5:x){
                             element[5] = i5;
                             for(int i4:x){
                                  element[4] = i4;
                                  for(int i3:x){
                                       element[3] = i3;
                                       for(int i2:x){
                                            element[2] = i2;
                                            for(int i1:x){
                                                 element[1] = i1;
                                                 for(int i0:x){
                                                      element[0] = i0;
                                                      cnt++;
              }Edited by: NikolausO on Oct 30, 2008 4:21 AM
    Edited by: NikolausO on Oct 30, 2008 4:22 AM

    pm_kirkham wrote:
    No I replied to message number 5. as the ' (In reply to #5 )' above my post indicates, which was in reply to (a reply) to Sabre150's post which wasn't using enhanced loops, nor has any obvious place where you could use that approach to fill the array.
    Though you could pass in an array of the values to fill the array with, and loop over those, instead of using 0 or 1, at which point Sabre's approach becomes the same as your OP, but without the manual unrolling:
    import java.util.Arrays;
    public class NaryCombinations {
    public interface CombinationHandler {
    void apply (int[] combination) ;
    public static void main(String[] args) {
    calculateCombinations(new int[]{-1, 0, 1}, 4, new CombinationHandler () {
    public void apply (int[] combination) {
    System.out.println(Arrays.toString(combination));
    public static void calculateCombinations (int[] values, int depth, CombinationHandler handler) {
    recursivelyCalculateCombinations(values, 0, depth, handler, new int[depth]);
    private static void recursivelyCalculateCombinations (int[] values, int index, int depth,
    CombinationHandler handler, int[] combination) {
    if (index == depth) {
    handler.apply(combination);
    } else {
    for (int value : values) {
    combination[index] = value;
    recursivelyCalculateCombinations(values, index + 1, depth, handler, combination);
    Which looks to use the same basic approach to the generalization I created shortly after posting the original.
    public class Scratch1
         * A 'callback' to be invoked with every combination
         * of the result.
        public interface Callback
             * Invoked for each combination.
             * <br>
             * Each call is passed an new instance of the array.
             * @param array the array containing a combination.
            void processArray(int[] array);
        public Scratch1(final int[] array, final Callback callback, final int... values)
            if (callback == null)
                throw new IllegalArgumentException("The 'callback' cannot be 'null'");
            if (array.length < 1)
                throw new IllegalArgumentException("The array length must be >= 1");
            if ((values == null) || (values.length < 1))
                throw new IllegalArgumentException("The 'values' must have be at least of length 2");
            callback_ = callback;
            values_ = values.clone();
            array_ = array;
        public Scratch1(final int order, final Callback callback, final int... values)
            this(new int[order], callback, values);
         * Generates every possible value and invokes the callback for each one.
        public void process()
            process(0);
         * Internal method with no logical external use.
        private void process(int n)
            if (n == array_.length)
                callback_.processArray(array_.clone());
            else
                for (int v : values_)
                    array_[n] = v;
                    process(n + 1);
        private final Callback callback_;
        private final int[] values_;
        private final int[] array_;
        public static void main(String[] args) throws Exception
            final Callback callback = new Callback()
                public void processArray(int[] array)
                    System.out.println(java.util.Arrays.toString(array));
            new Scratch1(6, callback, 2, 1, 0).process();

  • Where can I get complete INSTANCECONFIG file with all possible tags?

    Can any one provide me the complete instanceconfig file with all possible tags?
    Thanks,
    Zubair.

    Zubair- you should distribute points to the fellow OTNers who helped to answer your question (mark their answers as correct or helpful - just a forum etiquette)

  • When setting up an aux send and returning it to another bus, when you solo the aux bus it solos the entire return bus with all other channels mixed in.

    when i set up a aux send for parallel compression from a snare drum input channel to two aux busses—one for a compressor and a second aux bus for the limiter—and send the outputs of the comp/lim aux busses to the drum buss everything works fine. However, when I solo the comp/lim aux busses the entire drum mix is in the solo as well. Is there an alternative routing scenario?

    You still refuse to discuss data versus radio signal.
    So, I guess that is that. You have no proof to back up your contention as neither do I.
    Granted, from the g device to my Express, it is at g speeds. But, I contend, that once that g radio signal is converted back to data only (now at speed of light) inside the Express, the Express sends that data, via the exclusive “Extended network” connection, to the Extreme, at n speed. It has to as the Extreme will only take n speed.
    Sure, it is splitting hairs, if I am right. I am not saying I am. But my idea (before our branch debate on g and n signal versus data upon arrival at the Express) is an interesting way to force old g clients to use only one router. But to force those pesky g clients to use the newer simultaneous dual band Express by setting the Extreme to 5GHz g only was a new solution for me. It worked too. In that case, it is not about minute speed gains or losses but simply letting the g clients have their one party at the Express, which can handle them better when part of an extended network with an older, original Extreme.
    It is also far better to just have one Wi-Fi router as, adding Airport routers in an extended network, slows things down 60% or less and requires more "data management overheard", according to Apple*.
    It is interesting that they said data management overhead and not radio signal management?
    Alternatively, using the “Roaming network” method where the two stations are linked via Ethernet, is an even better option.
    * https://support.apple.com/en-gb/HT202056

  • Multiple Choice Quiz with all possible answers weighted

    I am currently trying to create a multiple choice quiz with 29 questions nin captivate 5.5. Every question will have 4 answers similar to those on a standard survey (Strongly agree, Agree, Disagree, Strongly Diagree.) Dependent on the answer given I would like each answer to have a weighted value between 1-4  to give a final score which will be sectioned into 3 categories. I am able to weight a question but can't figure out how I can weight all answers per question. Any help would be grealy appreciated

    Hello and welcome to the forum
    You created custom question slides, I suppose? How familiar are you with advanced actions and variables? I published some articles and blog a lot about them. Here you'll find a list with articles, think that the first 1 of them could give you an idea how to proceed. Can you read them, and later I will try to help you if you are stuck. Will need some more details in that case about 'how I can weight all answers per question.' Moreover, do you want to report to a LMS or is the conclusion about the final score to provide feedback to the user?
    Lilybiri

  • All possible race outcomes

    Hey,
    This is my problem - I'm making a program that will print all possible outcomes of a race, given that ALL participants can be disqualified, and logically, that there can not be several same places.
    Say that we have 2 competitors. My idea was/is to put all the options into an array razvrstitve = (1st place, 2nd place, disqualification, disqualification), and then print all the possible permutations of it. Problem is that it also considers all disqualifications to be separate, so it, will for example print out that "1st driver : disqualified (taking in razvrstitve[2]), 2nd driver: disqualified (razvrstitve[3])" and "1st driver : disqualified (taking in razvrstitve[3]), 2nd driver: disqualified (razvrstitve[2])", which is practically the same and shouldn't be printed out.
    Output example(odstop means disqualification):
    1. Voznik: 2. mesto 2. Voznik: odstop
    1. Voznik: odstop 2. Voznik: odstop
    1. Voznik: 1. mesto 2. Voznik: odstop
    1. Voznik: odstop 2. Voznik: odstop
    1. Voznik: 2. mesto 2. Voznik: odstop
    1. Voznik: 1. mesto 2. Voznik: odstop
    1. Voznik: odstop 2. Voznik: 1. mesto
    1. Voznik: odstop 2. Voznik: 1. mesto
    1. Voznik: 2. mesto 2. Voznik: 1. mesto
    1. Voznik: odstop 2. Voznik: 2. mesto
    1. Voznik: odstop 2. Voznik: 2. mesto
    1. Voznik: 1. mesto 2. Voznik: 2. mesto
    I've tried with creating new arrays and not "letting in" those elements, which's exact order has already been printed, but It's not working like it should :/
    Anyway, here is my code (the one that prints out all permutations, including duplicates), so if anyone has any ideas or pointers of how I can do what I want it'd be greatly appreciated.
    Regards,
    Sumo
    public class Naloga4 {
         public static void main(String[] args) {
            int mest = 0;     
              int stTekmovalcev = 2;     // number of competitors a.k.a
              //how long permutations should be
            int N = 2*stTekmovalcev; // number of options, inluding disqualification of
            //possibly every participant          
            int[] razvrstitve = new int[N];     
            for (int i = 0; i < N; i++) { // creates an array with all options inside            
                 if (i < stTekmovalcev) {
                      razvrstitve[i] = 0;
                 } else {
                      razvrstitve[i] = mest+1;
                      mest++;
            razvrsti(razvrstitve, razvrstitve.length, stTekmovalcev);     
        private static void razvrsti(int[] razvrstitve, int n, int r) {     // prints out all possible permutations
            if (r == 0) {
                   for (int i = n; i < razvrstitve.length; i++) {
                        String mesto = "";
                        if (razvrstitve[i] != 0) {
                             mesto = String.valueOf((int) razvrstitve) + ". mesto";
                        } else {
                             mesto = "odstop";
    System.out.printf((i-n+1) + ". Voznik: " + mesto + " ");
    System.out.println();
    return;
    for (int i = 0; i < n; i++) {
    zamenjaj(razvrstitve, i, n-1);
    razvrsti(razvrstitve, n-1, r-1);
    zamenjaj(razvrstitve, i, n-1);
    public static void zamenjaj(int[] razvrstitve, int i, int j) {     // swaps positions in the array
         // so all permutations can be made
    int temp = razvrstitve[i];
    razvrstitve[i] = razvrstitve[j];
    razvrstitve[j] = temp;

    Here is the above code translated, if it helps:
    public class ResultsPermutations {
         public static void main(String[] args) {
            int setResult = 0;     
              int nrOfCompetitors = 2;     // number of competitors a.k.a
              //how long permutations should be     
            int N = 2*nrOfCompetitors;      // number of options, including disqualification of
            // possibly every participant     
            int[] possibleresults = new int[N];     
            for (int i = 0; i < N; i++) {           // creates an array with all possible results 
                 if (i < nrOfCompetitors) {
                      possibleresults[i] = 0;
                 } else {
                      possibleresults[i] = setResult+1;
                      setResult++;
            enumerate(possibleresults, possibleresults.length, nrOfCompetitors);     
        private static void enumerate(int[] possibleresults, int n, int r) {     // prints out all possible permutations
            if (r == 0) {
                   for (int i = n; i < possibleresults.length; i++) {
                        String place = "";
                        if (possibleresults[i] != 0) {
                             place = String.valueOf((int) possibleresults) + ". place";
                        } else {
                             place = "Disqualification";
    System.out.printf("Driver " + "#" + (i-n+1) + ": " + place + " ");
    System.out.println();
    return;
    for (int i = 0; i < n; i++) {
    swapArray(possibleresults, i, n-1);
    enumerate(possibleresults, n-1, r-1);
    swapArray(possibleresults, i, n-1);
    public static void swapArray(int[] possibleresults, int i, int j) {          // swaps positions in the array
         // so all permutations can be made
    int temp = possibleresults[i];
    possibleresults[i] = possibleresults[j];
    possibleresults[j] = temp;

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to share my calendar with all my subscription? If so How can i find URL for this?

    Is it possible to share my calendar with all my subscription? If so How can i find URL for this?

    Hi yilmazfromlondon,
    The resource below explains how to share your iCloud calendars publicly.  Is this what you are asking about?
    iCloud: Share a calendar with others
    http://support.apple.com/kb/PH2690
    iCloud: Share a calendar with others
    You can share a calendar both publicly and privately with other people. For specifics about viewing and editing privileges for shared calendars, and how participants can access the calendars, see Calendar sharing overview.
    Share a calendar privately
    Click the Share button to the right of the calendar name in the sidebar, then select Private Calendar.
    Note: You can also share the same calendar publicly. For instructions, see the next task, “Share a calendar publicly.”
    Type the invitee’s email address in the Add Person field and press Return.
    Click the pop-up menu with the invitee’s name and choose access privileges (View & Edit or View Only).
    For each person you want to share the calendar with, repeat steps 2 and 3.
    When you’ve invited everyone and set their privileges, click OK.
    Invitation emails are sent from your iCloud email address to the participants you specified.
    Share a calendar publicly
    Click the Share button to the right of the calendar you want to share, then select Public Calendar.
    Note: You can also share the same calendar privately. For instructions, see the previous task, “Share a calendar privately.”
    To invite people to view the calendar, click Email Link.
    Type one or more email addresses in the To field, then click Send.
    The people you specify automatically receive an invitation email that includes the calendar’s URL. An invitee doesn’t need to be an iCloud user to accept an invitation to view a shared public calendar.
    In the sidebar, a shared calendar has a dark Share button.
    You can also resend invitations to one or more invited participants at any time.
    Last Modified: Feb 5, 2015
    Cheers,
    Judy

  • I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). It should be done in the S domain.The user should be allowed to put poles and zeroes, with frequency

    I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). The user should be allowed to put poles and zeroes, with frequency. DONE IN S DOMAIN.

    I have created a VI (LabVIEW 6.1) that does what you want. Note that the poles and zeros have to be entered correctly that is in Rad/s and typically with negative real part. The VI offers you all options for lin/log frequency axis, magnitude in dB or not, phase in Radians or Degrees etc...
    The VI is written with "academic" in mind, so it is not optimized for performances but (hopefully) for clarity. I hope this will work for you.
    Attachments:
    S-Domain_Transfer_Function_from_Poles-Zeros.vi ‏167 KB

  • Is it possible to show a presentation from the original iPad via wireless on an older projector with no HDMI input?

    is it possible to show a presentation from the original iPad via wireless on an older projector with no HDMI input? If so, what equipment is needed?

    The ipad not support wireless projector yet.
    The workaround is you are using computer that connected wirelessly [needs 2 wireless adapter] / via cable to projector and connected also to the wireless router.
    You are controlling the computer via wireless connected to the router using remote desktop app like splashtop, teamviewer, logmein, vnc, etc. You must set the remote desktop port and app at the computer too as ipad app support.

  • My iPhone is going to be remplaced because of a pixel fix. Do I have to return the box with all accessories or juste the iPhone itselves ?

    My iPhone is going to be remplaced by Apple soon, will I have to return the box and accesories includes with the iPhone or just the iPhone ? Moreover, will I have an all new iPhone in it package with all accesories ?
    Tks !

    That is how it is supposed to work. And how it was done
    when my 3G was exchanged. If they do give you more
    than just an iPhone, are you losing anything? If in doubt,
    ask Apple or the store that is replacing your iPhone.
    Thank you for the feedback.

  • I install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    i install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Just started with NetBeans IDE, need to capture all keyboard input!

    Hello,
    I discovered that I can only capture keyboard events when my GUI application has focus. Ok, but I need a functionality that can capture all keyboard input, even if my application runs in the background or in the system tray.
    How can I achieve that?
    Regards,
    Mirza

    I know...sorry, didn't mean to imply otherwise.Don't worry about it; I wasn't offended. (I didn't think that that was what you were tying to do.) I was trying to (subtly) take this a different direction. (Was going to write something Solaris specific or perhaps something in ASM that would effectively do what the O/P wanted. Seeing as how Key Loggers only serve one practical purpose - as far as I know - I just wanted to give him code that he could do nothing with.)

  • Resolving "IOException: Underlying input stream returned zero bytes" errors

    Hi guys,
    I'm currently working on a simple application that reads GPS receiver data from a serial port using the RXTX library. However, everytime I try to read the resulting InputStream (which I convert to a BufferedReader) using readLine(), after 2 or 3 lines of reading normally, I always get the following exception:
    GPSNotifier::run(): I/O error encountered while reading from COM4
    java.io.IOException: Underlying input stream returned zero bytes
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:268)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at discomm.gps.GPSNotifier.run(GPSNotifier.java:260)
    at java.lang.Thread.run(Thread.java:619)
    I'm not sure how to fix this problem, since it occurs everytime I run the application. The code for opening the stream is as follows:
    // Open up the port: no problems here ...
    CommPortIdentifier comm = CommPortIdentifier.getPortIdentifier(port_name);
    CommPort port = comm.open(APP_NAME, OPEN_TIMEOUT);
    SerialPort serial_port = (SerialPort) port;
    serial_port.setSerialPortParams(PORT_BAUDRATE, PORT_DATABITS, PORT_STOPBITS, PORT_PARITY);
    BufferedReader in = BufferedReader(new InputStreamReader(serial_port.getInputStream()));
    String line = null;
    // Problem is here ...
    while ((line = in.readLine()) != null) {
    }The IOException always occurs when readLine() is called. Any ideas on how to fix this problem?
    Thanks in advance,
    Simon Liu

    I don't use readLine() but read()
    A bit of code:
              BufferedReader inStream = new BufferedReader(new InputStreamReader(inputStream));
              byte ch = 0;
              char myChar;
              int charVal;          
              try{               
                   while((ch = (byte)inStream.read()) != -1){
                        if((ch == 13) || (ch == 10)){ //In ASCII code: 13 = Carriage return, 10 = line feed. When the GPS receiver sends those characters, the while loop must be broken to avoid an IOException                         
                             break;
                        }else{
                             myChar = (char)ch;
                        charVal = myChar;
                        //System.out.print("byte=" + ch +" myChar=" + myChar + " charVal=" + charVal + "\n");
                        System.out.print(myChar);
                   }

  • My PC Harddrive died along with all the CD's that I have saved to the Itunes library.  My IPOD touch has the library still so I would like to send the data from the IPOD to the PC to restore my library.  Is this possible?

    My PC Harddrive died along with all the CD's that I have saved to the Itunes library.  My IPOD touch has the library still so I would like to send the data from the IPOD to the PC to restore my library.  Is this possible?

    Yes, by using a third-party utility such as Phone to PC or Phone to Mac.
    Also see How to dowload purchased music and Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for

  • How do I get Flash player to Play

    I have watched a video on the web using flash in Firefox. I have saved the cache file of the video. I am now off line also the online video is no longer available from it's original source. Now I want to watch the video again using my saved Cache fil

  • How to use Designer connect BW Query?

    HI friend,     My BO Designer connect BW Query, Can't connt my custom cube's query ( my cbue save on  "IA_InfoArea"  InfoArea), I find one standard cube "0SD_C01" Cube's query could connt .     Why custom CUBE of the QUERY can not  display and connec

  • How to avoid the port in portal

    Hi Gurus, Please help me on this we have implementd SSL in our portal EP7.0 my question is i needs to avoid the port No. now and give normal url now the url is https://<host>.<company>:50001/irj/portal now want to change it to https://host.company/ir

  • Regarding printer selection

    Hi, I create sap script form which some document will printed in a printer. now i need to make the printer selection in my selection screen. i have declared a paramter P_print. when i press F4 on this parameter, program should give me the pop to sele

  • Variabls

    Hi all How to active varible??? in master data table it is in D version that's why it is not getting me that variable while creating restricted key figure. Thanx in advance