NaN input to a sub-vi

Hi,
I have got a sub vi for finding out the derivative which has got a double input.
The sub-vi is inside a while loop and input going is double value only. but inside the sub-vi it is showing "NaN" input and the sub vi is giving an " NaN" output.
Thanks in advance
@nk
Solved!
Go to Solution.
Attachments:
Threshold.vi ‏124 KB

Ya actually I too felt because the input is going as a double and then inside sub Vi it is showing NaN .
That is why i got confused.
I have attached an extraction vi ,whose output is E1 and E2 from these two values am finding out the dx/dt( derivative). I have used Ni usb 5133 for the input of that extraction Vi
@nk
Attachments:
Extraction.vi ‏127 KB
Threshold.vi ‏127 KB

Similar Messages

  • Input processing in Sub-Controllers ?

    Hi All,
    I am working on a BSP using MVC, the app has main_CTRL which calls a main_view ->
    which is a htm page with three frames F1, F2, F3.
    F1 and F2 have header details and menu items.
    When user clicks on the menu item on F2, it opens the corresponding view on F3.
    The view for F3 is opened using SUB_CTRL3
    F3 takes input from the user and on clicking a button,  should post the data into SAP.
    The issue is that the dispatch_input ( ), calls do_handle_data and do_handle_event
    only for the main_CTRL and not for sub controllers?
    Is there a way in which you can invoke do_handle_data and do_handle_event at
    sub controller level - SUB_CTRL3?

    Hello Chen,
                     You need to make the changes in your code logic to activate the Sub-controller active . I think In your current application you are making only the main controller as a active controller.
    Hope this helps.
    Thnaks,
    Greetson

  • What is the best way of converting a Top Level VI into a 'sub vi' - or function ( without duplicating programming)

    Hi,
    General question here about design architecture, which i keep running into, but haven't found a really good solution.  If i write a 'Top Level VI' to do something, what is the best way of converting it into a subVI - which is call-able from other VIs, while still allowing the top level VI to have synchronised feedback/indicator updates.
    I guess the point is that when something is a top level VI you write gui logic about what happens when someone clicks buttons or whatever - which you don't want in the 'sub vi' version.
    I did at one point try having a hidden boolean button that was an input to the subVI which would let the VI know if it was supposed to be doing the front panel stuff - or simply running as a subVI.  This isn't really ideal though - since it would be better to be able to hive off the grizzly useful stuff from the fluffy - front panel updating stuff - having them together makes the VIs rather untidy.  More annoyingly though, if you have the front panel version of it running - say waiting for you to hit 'go', it breaks all the other VIs that use it as a sub vi - since they can't compile when a sub vi is already running.
    Another possibility that i tried was to basically duplicate the vi so that there was a backend part, and a front end part - and when i click 'go' the backend part is called as a sub vi.  The problem with this is that it really limits the interface that the user gets - since none of the controls on the front panel update with the results untill the sub vi is over.  I guess again i could solve this by passing references to some of the controls to update them in the subvi - but this doesn't really seem like the ideal situation if the subvi is called by something else without the same types of controls etc.
    One final idea i had was to essentially paste all the controls in the VI into a global variable file, and make the sub vi update them, and the front panel VI read from them.  This seems to 'work' - although clearly it is a work around rather than a proper solution - since i spend loads of time worrying about how i update cluster variables in the global - reading and writing.
    Does anyone have any guidance on what they do to solve this problem?
    JP

    You could run a subvis in a Subpanel on your top level.  Lets you see the current data while the subvi is running.
    --Using LV8.2, 8.6, 2009, 2012--

  • I am trying to group instruments together and send that to a sub mix.  I can group them and attach a bus and it says that they are at sub mix 1 but the volume slider for the sub mix does not affect the recorded tracks.

    I am trying to create a sub mix of several vocal tracks.  I have highlighted the tracks and have assigned them to bus 1 (sub mix 1) but the sub mix slider does alter the loudness or softness of the track.  I can move it up and down but nothing happens.

    Make sure that the input for the Sub Mix track says Bus 1.

  • Send path control or reference to path control to sub vi

    Hello! I have a question of how to build correct labview structure. I have a path control in my main vi and want to check if it is correct in a sub vi. If not correct, ask the user for a correct one in the sub vi. I see two different options of how to do it and I think no one is realy good.
    1. Draw a wire from the path control to the input of the subvi. The answer from the sub vi is connected to a local of the path control. This uses locals that I should not use.
    2. Draw a reference from the path control to the input of the sub vi. In the sub vi change the value of the reference if path is not correct. No output is needed. Using reference you do not see where variables changes.
    How should I solve a problem like
    this?
    Please help me!
    TJ

    Thomas Json wrote in message news:<[email protected]>...
    > Hello! I have a question of how to build correct labview structure. I
    > have a path control in my main vi and want to check if it is correct
    > in a sub vi. If not correct, ask the user for a correct one in the sub
    > vi. I see two different options of how to do it and I think no one is
    > realy good.
    > 1. Draw a wire from the path control to the input of the subvi. The
    > answer from the sub vi is connected to a local of the path control.
    > This uses locals that I should not use.
    Local variables are fine. Don't worry about using them.
    Paul Cardinale

  • Sub Contracting of Asset

    Dear Friends,
    Client requirement is as follows:
    They will send raw material as input matyerial to sub contractor in turn they want to receive back the material as Asset from Subcontractor after process.
    Pl let me know how to configure it in the system.
    Regards,
    ASK

    Hi,
    Subcontrcting Process of Asset will be same as of Materials.
    Only in this case, you have to use Account Assignment Categgory as "A" i.e. Aset.
    In OMG0 - Maintain combination of Account Assignment Categgory "A" and Item Category "L".

  • Testing Programs that use command line input

    Hi,
    I've written a program that takes values the user enters from the Standard Input (i.e. Dos/UNIX prompt) using the usual buffered reader. I now want to automate testing of this program using a second Java class.
    What is the best way to pass values from the test harness into the program, when it is expecting them from the Standard Input?
    hope someone can help!
    Cheers

    You can also create a new java process with the class you want to test.
    String commandToTest[] = {
    "java", "your.class", ...
    Process process = Runtime.getRuntime().exec( commandToTest );
    InputStream input = process.getInputStream();
    OutputStream output = process.getOutputStream();
    // and then send some input to your sub-process
    //          read the outputIn the same spirit, you can also work with two threads:
    - the first thread reassigns System.in, out and err
    spawns a new Thread that will call your.class.main(...)
    - the first thread sends some input to the new "System.in"
    reads the output from the new "System.out"

  • Avoid conditionally suprressed sub report to fetch data from DB.

    Do we have any option in crystal designer to avoid a suppressed subreport to fetch data from DB?
    I have two sub reports in Report Footers say 'a' and 'b'.Report footer sections have a suppression formula based on parameter input.
    Hence based on the parameter input only one sub report will get printeded.However I noticed that only one sub report is getting printed but both sub reports are fetching the data from DB.
    I have also tried putting the suppression formula in suppress formula field of Sub report using format sub report option but it did not help.
    Any idea how can we avoid a subreport that is suppressed to fetch data from DB.
    Regards

    Hi,
    Suppress can only suppress the data, it cannot stop the query attached being running from the database, One thing you can do  only if your input parameter is a DB level parameter is you can have a case statement in the where clause of your query to avoid reading the records there by increasing the performance of the query.
    Say, your parameter value 1 specifies that you want to suppress the report and in other words, you dont want to read the records from the DB.
    Select feild1, field2,....from Table1
    where 1 = case when @param = 1 then 0 else 1 end
    Hope this helps,
    Thanks
    -Azhar

  • Inconsistent Floating Point Math and NaNs on Windows Laptops?

    All -
    I am seeing some very strange inconsistent floating point calculations on Windows Laptops, and I am wondering if anyone has any ideas. Read on, as (to me!) it's very interesting....
    I have attached a segment of our code, along with some sample output. Looking at the code and the output, it seems like it's totally impossible.
    With supposedly non-NaN and non-infinite double values, I am seeing unrepeatable and inconsistent math - the below example only illustrates one such case where we're seeing this behavior.
    If you look at the code below, you will see that I do things like:
    double rhoYo = ...  // some math
    double rho = ...  // exact same mathStrangely enough, I might get rhoYo = 1.51231231 etc and rho = NaN.
    If I reverse those lines (vertically), then again, rhoYo comes out good and rho comes out NaN; however, this is unpredictable and inconsistent. If I project a source point, get a destination point with NaNs as a result, and project the source again, the second destination point may be just fine. Matter of fact, i can put a loop in the code such as:
          double rho = Double.NaN;
          for( int i = 0; i < 10; i++ )
            rho = my_earthRad * my_F / Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n);
            if( ! Double.isNaN( rho ) )
              break;
            System.out.println("NaN'ed rho");
          }and rho will eventually become non-NaN (random # of iterations)!!
    How's that possible? Our code might be tromping on memory somewhere, but this sure seems crazy to me, especially considering that
    we're only using local variables. Anyone know of floating point errors on Windows Laptops?
    With the exact same codebase, this behavior ONLY happens on Windows Laptops, including brand new Dells, old Dells, IBM, Intel and AMD chips (I've tried several ;-). It does NOT happen on Mac or Linux, including the Linux side of a Linux/Windows dual-boot (where it does happen with the Windows side). Even more strangely, it does NOT happen with Windows desktops. I have tried several 1.5.x JVMs, webstart vs no webstart, etc, to no avail. Always and only on Windows Laptops.
    Please help.... ;-) and thanks in advance.
    Sample code:
    public class Projection
      protected Point2D.Double _project(Point2D.Double srcPt, Point2D.Double dstPt) {
        final double my_degToRad = Math.PI / 180.0;
        final double my_originLon = -95.0;
        final double my_originLonRad = my_originLon * my_degToRad;
        final double my_originLat = 25.0;
        final double my_originLatRad = my_originLat * my_degToRad;;
        final double my_stdLat1 = 25.0;
        final double my_stdLat1Rad = my_stdLat1 * my_degToRad;
        final double my_earthRad = 6371.2;
        final double my_n = Math.sin( my_stdLat1Rad );
        final double my_F = Math.cos( my_stdLat1Rad ) * Math.pow( Math.tan( Math.PI / 4.0 + my_stdLat1Rad / 2.0 ), my_n ) / my_n;
        final double my_rhoZero = my_earthRad * my_F / Math.pow( Math.tan( Math.PI / 4.0 + my_originLatRad / 2.0 ), my_n );
        if ( Double.isNaN( my_n ) || Double.isNaN( my_F ) || Double.isNaN( my_rhoZero )) {
          return new Point2D.Double(Double.NaN, Double.NaN);
        if( Double.isNaN( srcPt.x ) || Double.isNaN( srcPt.y ) )
            System.out.println("======= _project received a srcPt with NaNs. Returning NaN point.");
            Point2D.Double nanPoint = new Point2D.Double();
            nanPoint.x = nanPoint.y = Double.NaN;
            return nanPoint;
        if( Double.isInfinite( srcPt.x ) || Double.isInfinite( srcPt.y ) )
            System.out.println("======= _project received a srcPt with isInfinite. Returning NaN point.");
            Point2D.Double nanPoint = new Point2D.Double();
            nanPoint.x = nanPoint.y = Double.NaN;
            return nanPoint;
        //  Inputs are lon, lat degrees.
        final double lonRad = srcPt.x * my_degToRad;
        final double latRad = srcPt.y * my_degToRad;
        final double theta = my_n * (lonRad - my_originLonRad);
        // One Std lat -- tangential cone.
        final double rhoYo = my_earthRad * my_F / Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n);
        final double rho   = my_earthRad * my_F / Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n);
        // Computes kilometers in lambert space.
        dstPt.x = rho * Math.sin(theta);
        dstPt.y = my_rhoZero - (rho * Math.cos(theta));
        // WANK - Here's the problem!  These values shouldnt be NaN!
        if( Double.isNaN( dstPt.x ) || Double.isNaN( dstPt.y ) )
            System.out.println("======= A _projected dstPt has NaNs. Dumping...vvvvvvvvvvvvvvvvvvvvvvvvvvvv");
            if( Double.isNaN( dstPt.x ) )
                System.out.println("======= dstPt.x is NaN");
            if( Double.isNaN( dstPt.y ) )
                System.out.println("======= dstPt.y is NaN");
            System.out.println("======= my_stdLat1 = " + my_stdLat1 );
            System.out.println("======= my_n = " + my_n );
            System.out.println("======= my_originLonRad = " + my_originLonRad );
            System.out.println("======= my_F = " + my_F );
            System.out.println("======= my_earthRad = " + my_earthRad );
            System.out.println("======= lonRad = " + lonRad );
            System.out.println("======= latRad = " + latRad );
            System.out.println("======= theta = " + theta );
            System.out.println("======= Math.tan(Math.PI/4.0 + latRad/2.0) = " + Math.tan(Math.PI/4.0 + latRad/2.0) );
            System.out.println("======= Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n) = " + Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n) );
            System.out.println("======= rho = " + rho );
            System.out.println("======= rhoYo = " + rhoYo );
            System.out.println("======= Math.sin(theta) = " + Math.sin(theta) );
            System.out.println("======= dstPt.x = " + dstPt.x );
            System.out.println("======= Math.cos(theta) = " + Math.cos(theta) );
            System.out.println("======= my_rhoZero = " + my_rhoZero );
            System.out.println("======= (rhoYo * Math.cos(theta)) = " + (rho * Math.cos(theta)) );
            System.out.println("======= my_rhoZero - (rhoYo * Math.cos(theta)) = " + (my_rhoZero - (rho * Math.cos(theta)) ));
            System.out.println("======= dstPt.y = " + dstPt.y );
            System.out.println("======= A _projected dstPt had NaNs. Done dumping. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
        return dstPt;
    }And here's the sample output:
    ======= A _projected dstPt has NaNs. Dumping...vvvvvvvvvvvvvvvvvvvvvvvvvvvv
    ======= dstPt.x is NaN
    ======= dstPt.y is NaN
    ======= my_stdLat1 = 25.0
    ======= my_n = 0.42261826174069944
    ======= my_originLonRad = -1.6580627893946132
    ======= my_F = 2.5946660025799146
    ======= my_earthRad = 6371.2
    ======= lonRad = -2.7564670759053924
    ======= latRad = 0.3730758324037379
    ======= theta = -0.4642057102537187
    ======= Math.tan(Math.PI/4.0 + latRad/2.0) = 1.4652768116539785
    ======= Math.pow(Math.tan(Math.PI/4.0 + latRad/2.0), my_n) = 1.175224090766834
    ======= rho = NaN
    ======= rhoYo = 14066.369269924155
    ======= Math.sin(theta) = -0.44771270676160557
    ======= dstPt.x = NaN
    ======= Math.cos(theta) = 0.8941774612481554
    ======= my_rhoZero = 13663.082491950498
    ======= (rhoYo * Math.cos(theta)) = NaN
    ======= my_rhoZero - (rhoYo * Math.cos(theta)) = NaN
    ======= dstPt.y = NaN
    ======= A _projected dstPt had NaNs. Done dumping. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    HI JSchell (and others?) -
    I have created a simple example attached below, that when run repeatedly, does indeed generate spurious NaNs. I have made it as simple as possible. In the code, I use my own lon/lat binary data file, though I am sure any will do. Let me know if anyone wants that file.
    So the deal is that (with my data at least) this program should never generate NaN results. And if one runs it 25432 (eg: random #) times, it wont, but then the 25433th time, it will create NaNs, etc. ie: inconsistent NaN math results.
    As I said before, I have run this on old and new Dell laptops under Windows XP, using java 1.5_02, 1.5_04 and 1.5_08. The latest run was on a brand new Dell with a Intel Core Duo T2600 processor, running XP. If this is a result of the Pentium bug, one would think that would be fixed by now. I have NOT yet tested on AMD, though I will do that this afternoon.
    Remember, this ONLY happens with Windows Laptops.
    Any ideas anyone? Thanks in advance ;-)
    Here's the code that produces spurious NaNs:
    import java.awt.geom.Point2D;
    import java.io.DataInputStream;
    import java.io.EOFException;
    import java.io.File;
    import java.io.FileInputStream;
    public class FloatingPointTest2 implements Runnable
      private static final int NUM_ITERATIONS = 100000;
      private double _degToRad = Math.PI / 180.0;
      private double _originLon = -95.0;
      private double _originLat = 25.0;
      private double _originLonRad = _originLon * _degToRad;
      private double _originLatRad = _originLat * _degToRad;;
      private double _stdLat1 = 25.0;
      private double _stdLat1Rad = _stdLat1 * _degToRad;
      private double _earthRad = 6371.2;
      private double _n = _n = Math.sin( _stdLat1Rad );
      private double _F = Math.cos( _stdLat1Rad ) * Math.pow( Math.tan( Math.PI / 4.0 + _stdLat1Rad / 2.0 ), _n ) / _n;
      private double _rhoZero = _earthRad * _F / Math.pow( Math.tan( Math.PI / 4.0 + _originLatRad / 2.0 ), _n );
      private Point2D.Double _project( Point2D.Double srcPt, Point2D.Double dstPt )
        if( Double.isNaN( srcPt.x ) || Double.isNaN( srcPt.y ) )
          System.out.println( "FloatingPointTest2: received a NaN srcPt.  Skipping." );
          return new Point2D.Double( Double.NaN, Double.NaN );
        //  Inputs are lon, lat degrees.
        final double lonRad = srcPt.x * _degToRad;
        final double latRad = srcPt.y * _degToRad;
        final double theta = _n * ( lonRad - _originLonRad );
        double rho = _earthRad * _F / Math.pow( Math.tan( Math.PI / 4.0 + latRad / 2.0 ), _n );
        dstPt.x = rho * Math.sin( theta );
        dstPt.y = _rhoZero - ( rho * Math.cos( theta ) );
        return dstPt;
      public void doTest()
        DataInputStream instream = null;
        int thisRunNaNCount = 0;
        Point2D.Double tempPt = new Point2D.Double();
        Point2D.Double dstPt = new Point2D.Double();
        try
          instream = new DataInputStream( new FileInputStream( System.getProperty(
            "user.home" ) + File.separatorChar + "lonLatBinaryData.bin" ) );
          try
            while( true )
              double lon = instream.readDouble();
              double lat = instream.readDouble();
              if( Double.isNaN( lon ) || Double.isNaN( lat ) )
                continue;
              tempPt.x = lon;
              tempPt.y = lat;
              dstPt = _project( tempPt, dstPt );
              if( Double.isNaN( dstPt.x ) || Double.isNaN( dstPt.y ) )
                thisRunNaNCount++;
          catch( EOFException e )
    //        System.out.println( "End of file" );
          if( thisRunNaNCount > 0 )
            System.out.println( "thisRunNaNCount = " + thisRunNaNCount );
          instream.close();
        catch( Exception e )
          e.printStackTrace();
          System.exit( 1 );
      public void run()
        doTest();
      public static void main( String args[] )
        System.out.println( "Executing FloatingPointTest2." );
        for( int i = 0; i < NUM_ITERATIONS; i++ )
          FloatingPointTest2 test = new FloatingPointTest2();
          test.doTest();
    }

  • Sub probl

    <SPAN>I know that millions of other people already posted about this topic but nothing helped me. I own an Audigy 2 ZS card with eaoudio 5. speakers in analog connection. When I play games like Doom 3 or watch some movies with 5. support my subwoofer and center speaker works perfectly. When I listen to music or play any other kind of games the sub and center speaker are silent. I found a temp solution but it can't stay like this forever. I enabled bass redirection which made my sub work very very quietly. (This includes some games) Then I went to the graphic equalizer and set the 25 mark to 8.06dBs and the 250 mark to 4.44dBs. This made my sub work fine when listening to music. However, now my music sounds way too deep but I can deal with that. (Yes, I tried the bass and treble settings) My question is how do I force my sub and center speaker to work in games? I basically want it to work like in Doom 3. Oh, and my cmss settings are turned on and set to cmss2. And yes I tried the splitter with no result.

    Soundcards and decoders only output a signal to the centre, surround and sub channels when the source material has these channels encoded into it (like Dolby Digital and DTS movie soundtracks). Other sources such as CD, MP3 and many games don't have these extra channels, only the front left and right. Therefore when playing such sources you will not hear any sound from the sub. Most PC speaker systems have their own crossovers so that a sub input is not required. They just redirect the bass from the other inputs to the sub. Bass redirection is for speaker systems that don't have crossovers. The crossover slider allows you to select the crossover frequency, make sure this is not set too low, for example if it is set to 20 Hz, only frequencies below 20 Hz will be passed to the sub meaning that most of the audible bass is still going to the other speakers. However, I have found that the sub signal on my system is rather low and the sub volume level on my speaker system has to be turned up much higher than when the built in crossovers are used. The other alternati've (although fairly expensi've) is to use an external crossover network. You can get ones that are designed to be used with home cinema multi-channel amps, here is an example: http://www.outlawaudio.com/products/icbm_about.html.
    What sort of speaker system are you using?Message Edited by pjc on 05-09-2005 07:09 AM

  • LSMW Guide Direct Input

    Good day gurus,
    Can someone give me some guides for LSMW Direct Input Method?
    Thanks in advance

    Transaction code :LSMW
    give the inputs  like PROJECT, SUB PROJECT AND OBJECT
    and perform the 14 step process  as shown in link
    http://www.sap123.com/showthread.php?p=159

  • New X-Fi USB problem: Signal for sub and centre speaker seem to come through the same channe

    .. im not very technical so Ill try and explain this as best to my ability!!
    I recently purchased a X-Fi soundcard to use with my 5. surround sound system and I seemed to have a problem as soon as I set it up. When I play any music there is no bass at all, however when I switch the two input cables (centre/sub) over at the back of the sub there is too much bass and it sounds like its just the output for the centre speaker, only coming through the subwoofer and the centre speaker stops working.
    I'm on a Acer laptop if this hel
    ps.
    . im guessing its a problem with drivers as im almost certain the physical setup is ok. Ive tried a couple of other friends 5. setups with my soundcard and exactly the same thing happens.
    Im really stumped so any help or suggestions will be greatly appreciated.
    Cheers,
    Jamie?

    Ive tried looking for an option like this but cant seem to find one. Is it a standard feature with creative sound software?

  • Custom Calculation Script Help

    I am in need of the correct calculation script in order to complete:
    I am making an evaluation form. This form contains several columns that indicate a point system. Column 1 = 1 point, Column 2 = 2 points, etc.
    I need to be able to have a user mark an "X" in each form field and have the value predetermined depending on which column they marked the "X" in. Example: They mark an "X" in one of the form fields in Column 2, that form field should then have a value of 2 and be inputted into the Sub Total form field. Then I will need all of the values totaled and added into each Sub Total field for each column. Can someone please provide the calculation script to enable this to happen?

    Have you tried to use the pre-set calculation for "Field is the Sum of the following fields:"?
    But you cannot use that calculation option if you want to multiply the result by a weighting factor.
    So if you had used check boxes, you could assign the weighting factor for the export value of the check box. Then you could use the "Field is the Sum of the following fields:" and get the desired value. And then one can use the "Field is the Sum of the following fields'" for the total. The pre-defined script ignores non-numeric values for the unchecked fields.
    Not using this approach means one has to check each text field for a value of "X" and then count them and multiply by the weighting value or summing the weighting value for each "X".
    Scripting like programing requires very detailed information about the objects and how to process them.

  • 3D graph issues in 8.6

      I'm trying to program a simple 3D simulation in LabVIEW and am running into numerous issues with the 3D graphs.
    1) An old program I had used the 3D ActiveX graph.  When I load that VI, LV says it could not load the ActiveX control.  I never intentionally uninstalled it.  From the help I've found, it sounds like 8.6 should support the 3D ActiveX graph and the new Native (XControl) graph.  Any ideas how it might have come unstuck on my computer, or how to retrieve it?  It is also gone within LV 8.5 now too.
    2) I can find very little help about the new Native 3D Graph.  I found one example, which was amazingly incomplete.  No instructions on the front panel.  3 graphs were generated on the diagram, but only one was connected to the indicator.  Very odd.
    3) I first placed the graph on a tab control and had very odd display issues.  Someone had mentioned this type of problem recently (though I think they were referring to the ActiveX 3D Graph), so I moved it off the tab.  However, it still has odd display issues.  For example, often when the VI is not running, the graph control displays odd snippets of the Windows desktop - things that had been displayed on those pixels of the screen at some previous time.  When the program is running, the graph flashes between what it should display and these bogus images.
    4) I am using the  create_plot_line VI to try to create two lines on my graph.  As a sort of animation, I calculate  increasing arrays of points and continuosly update the graph with more and more points, so the line (trajectory) grows.  It seems like this is more like a "graph" than a "chart", so I should always create the plot with all the points that should be plotted, not just plot the one new point like you would with an old LabVIEW chart.  And that sort of works.  But if I leave the program running and restart the trajectory after it has already plotted it once, then a line appears from the end of the trajectory back to the beginning, as if it still has all the old points in some sort of memory and is adding new points, hence drawing a line from the last point from the first program iteration to the first point on the second iteration.  So I'm a bit confused about how this type of graph is supposed to be used.  Why are there no examples or instructions?  (Or am I just missing them - e.g. not seeing them, or maybe they got erased from my system like the ActiveX graph did...)
        Under the assumption that this graph is more like a picture control, where you add an element with one VI and pass the ref to another VI that adds another element, etc., I have tried wrapping the graph's main wire around in a shift register and only plotting the one new point.  It doesn't really seem to work...  The trajectory is there, but only when you rotate the 3D view.
    5) I want the two trajectories to be different colors.   Luckily there is a "color vector" input to the sub-vi that will probably do this.  But I can find no documentation on it.  You can't read this color vector with a property node, that I can find, so I can't get an example of the current color vector.  I can see this color vector in the 3D Graph Properties page, but at that point, you can only change the colors of the over and under points, not the main color ramp.  I tried specifying an array of color boxes, but didn't get reasonable results.  I probably don't have the right number of elements.  Interestingly, the Color Vector input is an array of reals!  The context sensitive help for the sub-vi is useless.  Isn't this documented somewhere?
    Thanks for any help,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    Dave Thomson wrote:
    5) I want the two trajectories to be different colors.   Luckily there is a "color vector" input to the sub-vi that will probably do this.  But I can find no documentation on it.  You can't read this color vector with a property node, that I can find, so I can't get an example of the current color vector.  I can see this color vector in the 3D Graph Properties page, but at that point, you can only change the colors of the over and under points, not the main color ramp.  I tried specifying an array of color boxes, but didn't get reasonable results.  I probably don't have the right number of elements.  Interestingly, the Color Vector input is an array of reals!  The context sensitive help for the sub-vi is useless.  Isn't this documented somewhere?
    Thanks for any help,
       DaveT
     CW 3d graph Example here.
    To set the color ramp you need to set the colors and the values and you need the same number of elements in each array. You will also have to set the ramp style you want to custom.
    Also note colrs are "BGR" not "RGB".
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to create a comment form in Flash CS3

    I am trying to create an add comment form in Flash cs3. I
    have the background design and the text input areas and sub mit
    buttons. But how do I get the submit button to add the comment to a
    different area in the same flash file? My inputs and buttons are on
    the left side of the stage and my display comments is on the right
    side of the stage. How do I connect the two?

    The user types something into a text input space and when the
    user then uses the submit button, you want that same, user entered,
    text to display in another, different, text area? If that's the
    case then make that second text area a dynamic textfield and set
    its text property to the text property of the input text
    space.

Maybe you are looking for

  • Error while creating Support message

    Hi, When I tried to create OSS Message from R/3 system I am getting below error. Customizing for feedback functionality missing Can you please help me out from this issue. Thanks Rajesh

  • Outlook 2007 autoarchive via GPO is not working.

    Hello everyone! For the begging about our environment: Exchange 2007, Outlook 2007. We have the problem with setting the autoarchive to work. We`re using GPO to do it. All the settings are configured correctly, but the policy is still not working. On

  • COKA buffer error in billing document

    Hi expert , I am facing an issue in billing document (VF02) while i am changing the billing date from 12.08.2013 to current date in header level and trying to save the document it is showing an error  as below- Internal error: Entry in COKA-Buffer no

  • WBS element creation error

    Hi All, I am trying to create WBS element using BAPI BAPI_BUS2054_CREATE_MULTI. The sequence is as follows: BAPI_PS_INITIALIZATION BAPI_BUS2054_CREATE_MULTI BAPI_PS_PRECOMMIT The error while creating element is : Final check of the project definition

  • Remote oracle dba jobs (work from home)

    looking for url to find remote oracle dba job in USA?