How to draw an arbitrary function with graph


friske charly writes:

If you believe that LabVIEW is slow, try the same thing using Excel

Hehe, no thanks. I will not give up so easy. btw, the example you attached was nice enough, you have a point there.

Tags: NI Software

Similar Questions

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to use the TRUNC function with dates in the expression builder in OBIEE.

    Hello
    How to use the TRUNC function with dates in the expression builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.


    Thanks in advance

    Use it instead:
    TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE)

  • How to draw 2 tables on a graph?

    In fact, I'm trying to draw 2 tables the mathscript node .one depends on the other. I did a cluster for the 2 bays and led to plot in the chart, but the chart doesn't really show the exact values.

    I want to draw pde_sim which depends on the snrdb.

    the figure resulted that I get is:

    Is something wrong with my code?

    See duplicate:

    http://forums.NI.com/T5/LabVIEW-MathScript-RT-module/how-to-plot-2-arrays-on-a-graph-in-LabVIEW-Comm...

  • How can I call a function with parameter out of sql

    Hello world
    I'm calling a Sql statement function and I get this error ORA-06572: XX function has arguments.

    can you offer any solution on this workaround.

    Thank you

    Hello

    Sorry, you cannot call functions with OUT arguments (or arguments, but I'll just say in the future) SQL statements.
    This is one of the reasons why many people avoid having arguments in functions.
    THE arguments are never optional. If the function expected of them, you must pass to them.

    Depending on your needs, you can write a Wrapper function that has no arguments.
    For example, if you want to call this function:

    fun1 ( in_out_str      IN OUT  VARCHAR2
         , in_num          IN      NUMBER
         )
    RETURN  NUMBER ...
    

    you don't need really the value changed to in_out_str, then you can write a function like this:

    fun1_wrapper ( in_str          IN      VARCHAR2
                   , in_num          IN      NUMBER
                   )
    RETURN  NUMBER
    IS
        in_str2     VARCHAR2 (32767)  := in_str;
    BEGIN
        RETURN  fun1 ( in_str2
                       , in_num
               );
    END  fun1_wrapper;
    

    You can use fun1_wrapper in a SQL statement, even if you cannot use fun1 in the same statement.

    Published by: Frank Kulash on February 27, 2013 09:42

  • problems with VI to draw an arbitrary shape with the mouse.

    I have attached the vi which I am really struggling with. Basically, I want to select the n points using mouse clicks and then draw a shape connecting these points using

    a Boolean value LED to move smothely by points in order and back to the first point. I noticed that when the gradient between the two is negative the LED going in the direction opposite unexpectedly.

    I don't really know how to solve this problem.

    Any help will be appreciated.

    Hello gurucode

    I made the changes in VI, once more to the best of my knowledge.

    Problems with the code (if you have a straight line parallel to the y-axis of the movement is super fast)

    I left this one for you to play with all your taste

    PS. If you have some free time, you can watch in design patterns, they are pretty cool and help better manage your code

    Links:

    http://www.NI.com/white-paper/7595/en/

    http://www.NI.com/white-paper/3023/en/

  • How to draw 2 tables on a graph in labview communication design

    In fact, I'm trying to draw 2 tables the mathscript node .one depends on the other. I did a cluster for the 2 bays and led to plot in the chart, but the chart doesn't really show the exact values.

    I want to draw pde_sim which depends on the snrdb.

    the figure resulted that I get is:

    Is something wrong with my code?

    Hello

    You must use the Cluster to build instead of building Cluster Bay.

  • How can I call a function with a parameter?

    Hey guys, I am trying to perform a function within a loop function and I am running into a problem. Whenever I run the program it gives me this error: 1136: Incorrect number of arguments.  1 expected.    However, I can't add the parameter because the function that I'm running is an event. Here is the code:

    package

    {

    import flash.display.Stage;

    import flash.events.Event;

    import flash.events.KeyboardEvent;

    import flash.ui.Keyboard;

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    SerializableAttribute public class extends MovieClip Hero

    {

    public var stageRef:Stage;

    public var health: Number = 6;

    public var speed: number = 3;

    public var leftPressed:Boolean = false;

    public var rightPressed:Boolean = false;

    public var upPressed:Boolean = false;

    public var downPressed:Boolean = false;

    public void Hero()

    {

    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressed);

    stage.addEventListener (Event.ENTER_FRAME, loop, false, 0, true);

    }

    public void loop(E:Event):void

    {

    keyPressed();

    {if (leftPressed)}

    x = speed;

    } else {if (rightPressed)

    Speed x +=;

    }

    {if (upPressed)}

    y = speed;

    } else {if (downPressed)

    y += speed;

    }

    }

    public void keyPressed(event:KeyboardEvent)

    {

    If (event.keyCode is Keyboard.LEFT)

    {

    leftPressed = true;

    } else {}

    leftPressed = false;

    }

    If (event.keyCode is Keyboard.RIGHT)

    {

    upPressed = true;

    } else {}

    upPressed = false;

    }

    If (event.keyCode is Keyboard.UP)

    {

    rightPressed = true;

    } else {}

    rightPressed = false;

    }

    If (event.keyCode is Keyboard.DOWN)

    {

    downPressed = true;

    } else {}

    downPressed = false;

    }

    }

    }

    }

    The function definition using what follows, and it should work with and without passing the argument

    public void loop(E:Event=null):void

  • How to use the Substring function with Case statement.

    Hi all

    I have a requirement where I have to use the substring function on the ground for the report criteria.
    FOR EXAMPLE
    I branch domain name where I have all the information of the branch names, now some of the branch names are too large with an extension after the name.
    now I want substing it, but the length of characters varies for each branch.
    so is it possible where we use a box where we can define if the character of name plug exceed a value then he substing with this length.

    Try something like this:

    LENGTH WHEN CARTER (tablename. Branch_Name) > n THEN SUBSTRING (...) Of ANOTHER tablename. Branch_Name END

    where n is the number of characters that you want to start the break.

  • How to draw a box under a trace of waveform?

    Hi all

    I have a graph of waveform of 3000 point showing a series of peaks.  For one of these peaks, for which I know the beginning and end clues, I would draw a box under the waveform on the graph, to highlight its position programmatically.  I don't know if there is a way to do it.

    I figured out how to draw cursors at the beginning and at the end, but finally I do for multiple peaks, and forest of cursors quickly becomes confused.  A simple shaded box works much better.

    Any ideas?

    Many thanks in advance,

    RipRock99

    A great thank you GerdW!

    The code LV was very close to what I wanted to do and is easy to use to determine how to make my code produces the result I wanted.  Basically, I added another form of wave to my chart, using my known indices x to set the values of Y for the areas I wanted to be gray as + infinity and leaving the rest to =-infinity.  I then plotted this second graph on top of the original waveform and the property node to set the fill indicator for - infinite.

    That does not answer the general question of how to draw a filled rectangle with the coordinates on a graph, but this does not fix what I wanted to achieve.

    Bravo and thanks,

    RipRock99

    PS: I'm including a preview of the result and a snapshot of the code used to define the property node programmatically.  I do not understand my code just as it is complicated, and I would also need to add a large set of data.  I hope that the pictures are enough to help someone else referencing this Council!

  • How to draw graph wrt times

    I m new to labveiw and this forum... anyone can tell how to draw simple

    graphic analog I / p with respect to time...?

    Why don't you do something like that? After the back if you have any questions.

  • How to draw the graph of output?

    Hello

    How to draw the graph of an exit? is there any api for it?

    The short answer is that there is no API, but you can create your own field if you want to, and here are some samples:

    http://supportforums.BlackBerry.com/T5/Java-development/create-graph-fields/Ta-p/444968

    I recommend the search before you ask questions to see if other people have asked similar questions.  If you type chart in the search box you will find other similar topics.

  • How to draw an image with reflection effect?

    Hi!, someone know how to draw an image with reflex effect?. I develop in JDE 4.7 with the simulator of the storm. I want to put a picture below a reflex effect as Apple Inc. and normal. My request is a CLDC and I use a MainScrren class, this is an example of what I want to draw:

    Angel

    Hello

    I found the code on the net, it works very well on j2me that even can be used also in blackberry below.

    public static Image createShadow(Image image) {
    
            int newX = image.getWidth();
            int newY = image.getHeight()/2;
             int out[] = new int[newX*newY];
             int row[] = new int[newX];
    
            for (int iy = 0; iy < newY; iy++)
            {
              image.getRGB(row,0,newX,0,iy+newY,newX,1);
              for (int i = 0; i < row.length; i++) {
                  out[((newY-1)*newX-iy*newX)+i] = row[i] & ( (127*iy/newY)<< 24 | 0xffffff);
              }
            }
    
            return Image.createRGBImage(out,newX,newY,true);
        }
    

    Hope this will solve you problem.

    Please let me know if it solves your problem or not.

  • How to import a vector editable in Illustrator to draw I was working with on my portable version of Illustrator? (I'm trying to leave my laptop at home and use my iPad to show customers the work and edit them in place with them.)

    How to import a vector editable in Illustrator to draw I was working with on my portable version of Illustrator? (I'm trying to leave my laptop at home and use my iPad to show customers the work and edit them in place with them.)

    Hi,

    This workflow is not yet possible to the draw. But it has been a very popular feature request lately and I know that the team is studying how it could be integrated into the app.

    I will definitely pass your comments along to the team.

    Sue.

  • How to draw faster with painting tools in illustrator CS 5

    If I shoot with a brush pen in Illustrator CS 5 performance become slow, how can I solve this problem?

    Draw the path first with the pen, and then apply the brush. Makes for faster work.

Maybe you are looking for