How to plot waterfall graph in vb6 from offline data

How to plot waterfall graph in vb6 from offline data?The data load from SQL Server Database.Thanks.

asrol,
If you look at the Plot Styles example in the folder I mentioned in the previous post there is a section of code there that you might want to refer to in order to recreate your data.
'=============================================================================
' Plot Curve Button Handler
'=============================================================================
Private Sub PlotCurve_Click()
    ' Create curve data
    Dim x(40)
    Dim y(40)
    Dim z(40)
    For i = 0 To 40
        x(i) = Sin(i / 3#)
        y(i) = Cos(i / 3#)
        z(i) = i
    Next i
In this example they create 3 arrays to represent the three dimensions of the array. For your case if you were to plug your data into two of the array (axes) that would give you the data for the channels, then you can simply input a constant for the third array it would produce a single line of your data as shown in your example GIF.  You can then repeat this process for each set of data, with a new constant value for that third axis, and it should manually create a graph that will look something like you desire.
John B.
Applications Engineer
National Instruments

Similar Messages

  • How to plot waterfall graph in vb6.Attach​ed sample graph for your reference.

    Thanks John for your answer. Attached file the sample graph what i really want to plot it.Any body can help me.Thanks.
    Attachments:
    waterfall.gif ‏81 KB

    Hello asrol,
    Please try to post replies under the same thread so that it is easier for everyone to keep track of your issue. Thanks!
    Original thread: How to plot waterfall graph in vb6 from offline data
    John B.
    Applications Engineer
    National Instruments

  • How to  plot a graph in JSP

    How to plot a graph in JSP

    Hi!
    You can use jfreechart.
    It is a good tool and if you search on Google you can find more info and more web examples (files, .war, ...)
    Bye.

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH

    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    Thanks

    emekaco wrote:
    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    ThanksSTOP SHOUTING!
    now, while displaying the form generate some random number, or take the current time in millis or whatever. Put that number in a hidden field. Insert that unique number along with the real data into the database, but before you do check if the number already exists. If it does you can be pretty sure this is a resubmit of the same data, so don't allow it. This is one way of many to prevent resubmission of existing data.
    A good way to prevent a refresh from resubmitting altogether is to do a redirect to a result page right after you deal with the POST request. When the user presses refresh then, he/she will refresh the redirect and not the form submit.

  • How to plot XY graph from 2 input of dynamic array ? ...

    I have 2 problem when I plot XY graph with 2 dynamic array :
    - I want to make the graph look like sweep chart. But it's seem not possible to use waveform graph?
    - The graph shoul move from left to right , then right to left, then left to right,.....
    Any one can give me some hints?  Thanks alot.
    Attachments:
    U1.PNG ‏21 KB
    XY radom value input.vi ‏147 KB

    I have to make Y change  from 0-10, then 10-0,.... Any one can help me to make it better?
    - How I shift the graph?
    Attachments:
    working_increse_decrease.vi ‏20 KB

  • How to plot 3D graph

    I try to plot data like this picture attached . is there anyone who know how to plot three axis on same graph  .  And point of Three peak value is marked as point.
    Help me. is it possible in labview? See JPG file
    Attachments:
    SDC11183.JPG ‏2664 KB

    Duplicate
    Just stick to one thread and be patient - someone will be able to help, but the vast majority of people here are unpaid volunteers.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • Plotting graph in LabVIEW from MySQL data table

    Is there any possibility to plot the data from MySQL data table in LabVIEW graph/chart??
    can somebody help me??
    thanks...

    I am new with LabVIEW and I am also with the same problem.
    No problems to write data into MySQL, but when trying to read data neither "fetch element data" or "get properties" answer !
    It is not possible to get a simple recordcount using the "get properties".  The same script give the right answers with MS Access, only changing the DB reference from "connection string" to a "UDL".  Does somebody can post an example retriving data (that runs ok even with a WHERE clause in the recordset) using MySQL ?
    The connection string I am using is:
    Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Database=DBname;User=root​;Password=xxx;Option=785;
    Attachments:
    MySQL_Access_diff.JPG ‏88 KB

  • How to export a Graph or Chart from a BW report to PDF file

    Hi All,
    I am new for BI7.  i have one clarification 
    "How the system shall provide the users the ability to export a Graph or Chart from a BW report to PDF file in WAD"
    Thanks In Advance
    Ravi

    You have to use this command and assign your web items to this command to get graphs and charts
    http://help.sap.com/saphelp_nw70/helpdata/en/44/85de4943af5919e10000000a1553f7/frameset.htm

  • How do I pull just the year from a date?

    I'm trying to pull just the year from a date and cannot figure out how this can be done. I tried the SUBSTR fuction but its not acting how I would expect. What I'm wanting to do is write a condition that says Item Birth Year = Current Year minus 23 I have a calc that figures the age from the difference in the birthdate and current year but I'd really like to just write a condition based just one years. Can this be done?

    Hello
    SUBSTR will only work on a string. To extract portions of a date you need to use the TO_CHAR command.
    To get the year you would use this: TO_CHAR(the_date,'YYYY')
    TO_CHAR takes 2 switches, the date to be manipulated and the portion to be extracted, with the portion in single quotes.
    Once you get used to manipulating dates like this other common pieces are: DD - extracts the day of the month, MON extracts the 3 character code for the month.
    Thus you can use this: TO_CHAR(sysdate,'DD-MON-YYYY') and it will convert the current date, June 7th 2012 to 07-JUN-2012
    Hope this helps
    Best wishes
    Michael

  • How to get name of the month from current date.

    Hi,
       How to get the name of the month from current date.
    Thanks,
    Senthil

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • How do I remove a repeated happening from a date

    I want to remove a repeated happening from a date. If I do that the way I know, I remove everything including the past ones. But I only want to remove the future happenings. Is that possible?

    see my answer in https://support.mozilla.org/en-US/questions/1050555

  • How to reject week 41 to 52 from 2007 data in rules file

    Hi there,
    I have to reject 2007W41 to 2007W52 from the data loading, meaning i just want data till 2007W40.
    Now so far what i have done is i edited the rules files went to select Time column>Records>reject>since i have to reject more than one i have selected "And"
    the field is shown as "Time" at the top
    Type String / Number Condition
    String 2007W41 contain
    Can anyone tell me what i m doing wrong here?
    Thanks in advance...

    I think you are reading it wrong
    Think of the string aaaaa
    Lets do the rejection criterial in engilish. You want to reject if the string contains aaaa or bbbbb
    IF you say reject if the string contains aaaa that is good and meets the criteria
    if you add and the string contains bbbb it is no longer true since it dones not contain bbbb
    If my string were aaaabbbb then the and would work
    If you were using a not contains, then youwould have to use the and instead of the or.
    IF the string does not contian aaaa and does not contain bbbb
    All of this should not be confused with the global and/or logic which works across multiple columns

  • How can I truncate the time zone from a Date object without using String?

    Does anyone know how to truncate the time zone portion of a Date object and maintain the object as Date, NOT String?
    I just need the date, i.e., 05/02/2008 as a Date.
    Thanks.
    JDev1

    Although you haven't said so, I expect you must be having some problem with that?
    My wild guess: the server is creating a Date object and setting its time component to zero (midnight). Of course since Date doesn't have a timezone, that would be midnight in the server's timezone. Then you are interpreting that date as if it were in your timezone, and since you are west of the server, it appears to be 11 PM or 9 PM or something on the day before.
    What we do is to send our timezone to the server and tell the server to use it when creating the Date object. Alternatively, when formatting the Date object you could use a SimpleDateFormat with the server's timezone applied. There are no doubt other solutions that could be provided if we had a description of your problem.

Maybe you are looking for