Multiple XY graph

Hi, in a control and simulation loop,  I am making an xy graph that combines data from two wires for the x values and data from two wires for the y values.  I have attached a picture of part of the code.  When I run using some variable it works ok (picture 1) but when I change the variable to a lower value it looks like the signal stopped and the rest of the curve is not drawn (picture 2, green line which should go until about 42 in the x axis).  Am I inserting the right functions for making this sort of graphs or am I missing something like a build array function or something similar?
Thanks
Attachments:
XY graph.JPG ‏26 KB
Picture 1.JPG ‏41 KB
Picture 2.JPG ‏41 KB

For the untrained eye it is impossible to tell what you really want and what the significant difference between the two images is. On both graphs that you show, the green curve does not go to 42 on the x-axis. (one goes to x=~12 and the other to x=~15)
Maybe you should have a look at the real data. Could it be some values are NaN? I don't have this particular toolkit (simulation?) installed, but if you attach your program, somebody else might be able to troubleshoot further.
I am not a big fan of dynamic data and expres VIs, because they hide too much information when looking at a diagram picture. What is in the arrays and scalars that build the dynamic data? Is the express VI set to retain data between calls?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Creating multiple Line Graph having common values..

    Hi...
    I've created one application process for creating Multiple Line Graph.
    And i've integreted two tables in this graph, where values may be common for both the tables. In this case, for common values, instead of getting overlapped I'm getting scattered graph(its totally abnormal). Please help me if you 've any idea about this issue.....?
    Please go through the App Process and the output of the SQL query.
    In output of the query, in the NAME column "Feb-2010" is common.
    This is the SQL query OUTPUT:_
    TABLE 1
    NAME VALUE
    Sept-2009 100
    Oct-2009 95
    Nov-2009 98
    Feb-2010 97
    TABLE 2
    NAME VALUE
    Jan-2010 93
    Feb-2010 100
    Mar-2010 98
    Application Process :_
    DECLARE
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    OWA_UTIL.http_header_close;
    HTP.p ('<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>');
    HTP.p ('<anychart>');
    HTP.p ('<settings>');
    HTP.p ('<animation enabled="True"/>');
    HTP.p ('</settings>');
    HTP.p ('<charts>');
    HTP.p ('<chart plot_type="CategorizedVertical">');
    HTP.p ('<data_plot_settings default_series_type="Line">');
    HTP.p ('<line_series>');
    HTP.p ('<marker_settings>');
    HTP.p ('<marker type="None" />');
    HTP.p ('<states>');
    HTP.p ('<hover>');
    HTP.p ('<marker type="Diamond" />');
    HTP.p ('</hover>');
    HTP.p ('</states>');
    HTP.p ('</marker_settings>');
    HTP.p ('<tooltip_settings enabled="True">');
    HTP.p ('<format>Year {%Name}{enabled:false} {%SeriesName} - {%Value}{numDecimals:0}%</format>');
    HTP.p ('</tooltip_settings>');
    HTP.p ('<effects enabled="True">');
    HTP.p ('<drop_shadow enabled="False" />');
    HTP.p ('<bevel enabled="true" distance="1" blur_x="2" blur_y="2" />');
    HTP.p ('</effects>');
    HTP.p ('<line_style>');
    HTP.p ('<line thickness="3" /> ');
    HTP.p ('</line_style>');
    HTP.p ('</line_series>');
    HTP.p ('</data_plot_settings>');
    HTP.p ('<chart_settings>');
    HTP.p ('<title enabled="true">');
    HTP.p ('<text>Avg. %App. Uptime per month </text>');
    HTP.p ('</title>');
    HTP.p ('<axes>');
    HTP.p ('<y_axis>');
    HTP.p ('<title>');
    HTP.p ('<text>Value</text> ');
    HTP.p ('</title>');
    HTP.p ('<scale minimum="90" maximum="101" major_interval="1" />');
    HTP.p ('<labels>');
    HTP.p ('<format>${%Value}{numDecimals:0}</format>');
    HTP.p ('</labels>');
    HTP.p ('<axis_markers>');
    HTP.p ('</axis_markers>');
    HTP.p ('</y_axis>');
    HTP.p ('<x_axis tickmarks_placement="Center">');
    HTP.p ('<title enabled="False" /> ');
    HTP.p ('</x_axis>');
    HTP.p (' </axes>');
    HTP.p ('</chart_settings>');
    HTP.p ('<data>');
    FOR ObjRecord IN (select DISTINCT(K_OBJECT.OBJECT_ID) as OBJECT_ID,name from K_OBJECT, K_OBJ_TYPE_ASP_REL where K_OBJECT.OBJECT_ID=K_OBJ_TYPE_ASP_REL.OBJECT_ID and K_OBJ_TYPE_ASP_REL.OBJECT_TYPE_ID=1)
    LOOP
    HTP.p ('<series name="'|| ObjRecord.name ||'">');
    FOR MonthlyValueRecord IN (select NAME,VALUE
    from K_REPORT_RUN,K_ASPECT_VALUES,K_ASP_TIM_RPT_REL
    where K_REPORT_RUN.RUN_ID=K_ASP_TIM_RPT_REL.RUN_ID
    and
    K_ASPECT_VALUES.ASPECT_VALUE_ID=K_ASP_TIM_RPT_REL.ASPECT_VALUE_ID
    and
    K_ASP_TIM_RPT_REL.ASPECT_ID=1
    and
    K_ASP_TIM_RPT_REL.OBJECT_ID=ObjRecord.OBJECT_ID
    order by K_REPORT_RUN.STARTTIME)
    LOOP
    HTP.p ('<point name="'|| MonthlyValueRecord.name ||'" y="'|| MonthlyValueRecord.value ||'" />');
    END LOOP;
    HTP.p ('</series>');
    END LOOP;
    HTP.p ('</data>');
    HTP.p ('</chart>');
    HTP.p ('</charts>');
    HTP.p ('</anychart>');
    htmldb_application.g_unrecoverable_error := true;
    END;
    Edited by: user12873839 on Apr 9, 2010 3:58 AM
    Edited by: user12873839 on Apr 9, 2010 4:02 AM
    Edited by: user12873839 on Apr 9, 2010 8:00 AM

    >
    Help Needed Urgent.....
    >
    That is one surefire way to not get any help and certainly not urgently. I suggest that you amend the title of your post to something that reflects the actual issue. This will also help anyone with similar issues to find the thread.
    When posting code please put {noformat}{noformat} (with the curly brackets and the word code in lower case) above and below it to preserve formatting like this...
    {noformat}{noformat}
    SELECT *
    FROM emp
    {noformat}{noformat}
    This will be displayed on the forum like this...SELECT *
    FROM emp
    Cheers
    Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Read from spreadshee​t and plot multiple XY graph

    I'm trying to read a text file using the "Read from Spreadsheet" function. Next I want to plot the data in it on a single XY Graph.
    The text file contains 4 coloums and the first coloumn is X axis and rest are for Y axis. I'm not able to get the multiple plots. 
    However, I could get it to plot when only a single graph is to be plotted(only 2 coloumn in file). I've attached my VI and a picture here.
    I need help in plotting multiple XY graph from the text file with the 4 coloumns.
    Solved!
    Go to Solution.
    Attachments:
    Test_1.vi ‏13 KB

    Here's a more scalable solution, useful if you have one x and many y columns.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MultiXY.png ‏5 KB
    MultiXY.vi ‏10 KB

  • Display multiple Waveform-Graphs on a separate Frontpanel

    Hi there,
    I'm looking for a solution to display multiple waveform-graphs on a separate frontpanel.
    In my application I measure a number of channels (number is a user-input). The signals I want to display each in a separate waveform-graph, because they have different scales. They shall be arranged that way, that the user can switch them on and off or arranges them on the screen, while the application is running (measuring). He shall also be able to maximize all graphs or a graph window to have a closer look at the signals.
    I already tried several things.
    1. I placed the maximum number of graphs in a separate vi, which I start in my application and then switch the frontpanel on and off via a property-node. The values I also write via the references of the waveform-array, which I place in an array. This way I can also change the propertys of each plot (scale, xmin xmax, etc), but I always have all graphs on the screen (also the unused).
    2. I then tried to change the visible-property of the unused graphs, but I cannot scale and rearrange the remaining graphs to the full frontpanel-size, because this property is read-only.
    3. I placed just one waveform-graph in the vi and then start as many vis, as I need. This is cool, because I also can program the position and size of each frontpanel, so that they are arranged in a grid on the display, but all the graphs are separate and it is uncomfortable if the user had to arrange them separate. The windows need to be docked ore something like that.
    4. I tried to place the graph-vis in subpanels, but then I cannot change the position and size of the vis programmatically.
    Has anyone an idea, how to solve this?
    I am using LabView2009Sp1 Professional Development System
    Thanks Norman

    Thanks so far,
    I attached some examples of what I tried already.
    1. MaximumNumberOf Graphs - I show 6 graphs although only two are needed. I cannot rescale the used ones to the full screen size, because the property is read-only
    2. RescaledFrontpanel - I switch the unused graphs to invisible, resize the frontpanel to hide the unused graphs, but now the window is not zoomable
    3. GridOfWindows displays the desired grid of graphs in separate windows, but they don't stick together
    I hope this explains the situation better.
    Norman
    Attachments:
    multigraph.llb ‏136 KB

  • Multiple Line Graph

    First off, thanks to kglad for the line graph function I
    started with, it has been a huge help. Now the step I'm trying to
    take is 2 fold.
    First, I'd like to graph more than one line segment on the
    graph. Right now I am graphing functions f1 and f2, but f2
    currently overwrites f1. I want them to coincide so f1 goes from
    x=1 to x=15, f2 goes from x=15 to x=25, f3 goes from x=25 to x=10
    at a different y (these are all curves), and finally f4 goes from
    x=10 to x=1 creating a closed shape. Also, I want the x values and
    the y values to be variable based on the temperature. I'm using
    PV=nRT and n, R, and T are all known. so I have something like
    P=nRT/V where P is y, V is X and the nRT can be calculated for two
    steps of the 4. The other two steps are adiabatic, so Q=0, I don't
    know yet how to fit the lines but i do know that y = a / (x^(5/3))
    is a formula that works, I just need to find the proper a values
    for steps 2 and 4.
    Part two of this issue is that currently the graph is drawing
    as the whole canvas, which is fine for testing until i get the
    multiple line part worked out; however I only want this to be 1/4
    of the viewing area as I have other movie clips and such to put on
    this. A conceptual drawing of what I plan on making can be found
    at:
    http://www.students.bucknell.edu/gbement/Steps.html
    I'm a novice to Actionscript and movie clips, I previously
    did everything with motion tweens and nothing was dynamic. I plan
    on creating the piston and molecule simulation in another movie
    clip, then I can vary the play speed relative to the hot and cold
    temperatures by looping the movieclip and having it play faster for
    a high T and slower for a low T.
    Any help on any of my many issues would be greatly
    appreciated and the user will be recognized for their assistance in
    my research presentation :)

    Hi Arun, thanks again for the help but upon closer inspection
    (along with only a basic knowledge of java and actionscript), I
    think your script would need editing to work for me (editing i'm
    unsure of how to do). What I'm looking for is a graph that will
    create a line based on a function. Much like y=(a*b*c)/x or
    y=(a*b*c)/(x^1.66) The a*b*c would be complicated also, but here's
    what i've thought up on paper that I have to move to script, I hope
    this is useful:
    Step 1: Calculate the a*b*c
    The original function is PV=nRT , nRT being the a*b*c ,
    however the Thot and Tcold terms are input boxes that the user
    types in before hitting the "go" button.
    So I have to do this much:
    tcold = Number(tcold_num.text);
    thot = Number(thot_num.text);
    var n:Number = 1;
    var R:Number = 0.0825;
    var a:Number;
    var b:Number;
    var c:Number;
    var d:Number;
    a = n*R*thot // Step 1 constant
    b = // Step 2 constant (formula to be finished :-/) Looks to
    be a formula using ((b) / (Math.pow(x, 1.666)))
    c = n*R*tcold // Step 3 constant
    d = // Step 4 constant (formula to be finished :-/)
    Then I need to find a way to initialize axis to line the
    graph, I can label the P and V axis using static text boxes later I
    suppose.
    The problem I have with yours that I don't understand is that
    I could add the function into the y part of the addLine() function,
    however it's noted as inity= y1 (requires a number), and the
    function definition has y1:Number.
    Now the issue i'm tackling below is just a newbie's lack of
    understanding (i hope), but the script kglad wrote (snipped below)
    will graph one line, and i can't figure out for the life of me how
    to write this up to graph more than one instance without
    overwritting the previous line. Again, Thanks for the help so far,
    it has helped me find the points where I lacked direction and solid
    ideas before.

  • Multiple waveform graph

    I need help. I need to put multiple plots in a waveform graph. In the vi in attachments, I put a example. In the waveform chart, function good, but in the waveform graph, don't work put two or more plots in the graph. I need to do the same thing that I do in the chart in the graph. Thanks for all.
    Attachments:
    graph-chart.vi ‏15 KB

    Please check the example which comes along with labview about how to plot multiple plots in a waveform-Go to specified folder in your pc
    C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\graphs
    -Open gengraph.llb in that folder for examples.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Multiple xy graph point by point

    Hi,
    I would like to plot multiple trace xy graphs point by point. If I plot one trace, it does show up point by point, but plotting multiple traces, they traces show up one after another and not point and point. Attached is my code. Any help would be appreciated.
    -Tim
    Solved!
    Go to Solution.
    Attachments:
    testmultixyplot.vi ‏26 KB

    That's because you use 'Replace array subset', the element you try to replace does not exist, that means the new element is not placed inside the array.
    Use the following code construct instead:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Multiple XY Graph grid

     I have a XY Graph with multiple Y axis and I want the grid lines from the 3 Y axis to line up.
    But I also want to keep the auto scale function.
    Is this possible?
    Solved!
    Go to Solution.

    Hi TBN,
    nope...
    Either use autocaling and turn off grids (for atleast two of your Y axis) or do the scaling based on your own algorithm that keeps grid lines "lined up"...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Programmatically controlling multiple scale graph

    Is there a way to programmatically duplicate the Y scale of an XY Graph and to associate it to one of the multiple plots.

    > Is there a way to programmatically duplicate the Y scale of an XY
    > Graph and to associate it to one of the multiple plots.
    You can show and hide a scale, you while a VI is running, LV cannot
    create a new scale.
    Make your graph in advance to have the number of scales you need, then
    programmatically hide the ones you don't need and show the ones you are
    using. You can also set the Plot Active Y Scale to select which Y scale
    is used for the plot.
    Greg McKaskle

  • How to draw multiple line graph using bi graph in  JHeastart?

    hello,
    i have a problem when displaying a multiple graph in JHeadstart.i had created a graph that represent the report of medical testing.my x-axis is "report date",my y-axis is "observation value" then my series attributes is depend on "item description" .
    One patient has many "item description",each "item description" has one "observation value" and each "item description" has many "report date".
    when the graph was displayed,it only show me in 1 line,then it is depend on the id patient but not like what i set in the graph wizard.actually,it should be display fews line accroding to the "item description".
    then,the "observation value" and "item description" are get from defferent entity object.
    i dun know what was happen.any hits are welcome.
    thanks

    yes,finally i found how to draw it.Actually the series attributes is depend on VO's primary key .
    thanks to who was view my problem.

  • Help needed in creating a multiple surface graph.

    Dear all,
    Thank you for taking the time to read my question.
    I have an equation with 3 variables.
    I have managed to plot 2 variable(and the result of the equation) on a 3d surface plot and now I am trying to plot the third one as multiple surfaces.
    More in detail, I am trying to plot the induced current in a coil of turns R, at a distance x from a High Voltage(High Current) conductor.
    You will see from my attached file that I have plotted 'Induced current', 'Radius from point x' and 'HV conductor Current'.
    I now wish to plot turns N (say 50, 100, 150, 200, 250 turns) as 5 multiple plots (one on top of the other).
    How can I do this, as I have checked the example files and have not found something very relevant on that. Also answers to similar questions are not very clear to me.
    I am also not quite sure that the surface plot I have is correct, as the valus of HV conductor Current (I) do not start from 500. The same happens for Radius From Point 'x' (R), as they start from 3,5 instead of 3.
    If I go to to CDgraph3D>>properties, I can see 4 more plots but they are definetely not what I would expect.
    I am trying to plot:
    Radius from point 'x' (R)= 3, 3.5, 4,...,5
    HV Conductor Current I = 500,600,...,1000
    # turns of coil N= 50, 100,...,250 (as 5 surface plots)
    and last Induced Current
    What am I doing wrong in my code?
    Thanks
    Alex
    Attachments:
    Parametric analysis of induction coil.vi ‏35 KB

    Good Morning,
    With some mentoring from the skilled LabVIEW Zealot that resides a few cubicles away, I have found how to access the property nodes on the 3D plot. Please find attached a VI that programmatically sets the scale of interest to 600-700. You can change the code to fit your needs.
    Many, many more details can be found at :
    http://forums.ni.com/ni/board/message?board.id=170&message.id=143663&requireLogin=False
    ( the VI should be in 8.0 this time.   )
    Regards,
    Mello
    Data Science Automation
    CTA, CLA, CPI
    SHAZAM!
    Attachments:
    Parametric%20analysis%20of%20induction%20coil[1][1].vi ‏39 KB

  • How to print very long data series (wrap multiple XY graphs)

    I'm working a data logger project where each file usually contains 5 - 10 minutes of data but sometimes may go up to 3 hours +. The customer needs the ability to print out all of the acquired data in XY charts.
    If the amount of data recorded exceeds 15 minutes, printing all of the data on a single chart is not an option (granularity) so they want to print as many 15 minute chunks as necessary to cover the entire range. Ideally, they want to print out two 15 minute graphs stacked on top of each other on a landscape page. I can split the data into chunks (that's the easy part) but I need a way to create an arbitrary number of XY graphs and format/size them for mult-page print out (2 per page).
    I'm looking for some ideas on how to solve this problem - any ideas are welcome as long as they involve LabVIEW and maybe Excel because it needs to be something i can integrate into the application. I can't use offline post-processing like Diadem in this situation.
    Philip
    CLD

    Philip,
    I would probably create one VI with two graphs formatted for printing. Then loop through the data, write segments to the graphs, print, repeat until all data is printed.  This method allows one very simple VI to present the data for printing and allows the user control over what is printed via the calling VI. For example if they decided that 10-minute graphs were better for certain data sets than 15-minute graphs, all the calling VI needs to do is change the amount of data written to the graphs.
    Write the data to a file to protect the data in the event of power failures or other unplanned events. Read it back to print if there may be too much data to keep in memory.
    Lynn

  • How to plot a multiple XY graph showing the area between the curves as shaded (colored)

    I want to generate multiple XY plots and want to show (e.g. colored) the area between the two selected curves. I am using LabView 8.
    Thanks in advance for your help.

    That was too quick !
    Your example is significantly more complicated, since there are some boolean logic behind.
    I'm not sure this is something that can be done easily with LabVIEW. After some play with the drawing order of the various curves, I have been able to reproduce your example, but that's not very elegant :
    Plots 0 and 1 are duplicates of plots 4 and 5 to improve the drawing (without these additionnal plots, the red and black lines almost disapear, hidden by the inter-curve filling). Line 2 fills to Line 5 (green to red in white). Line 3 fills to Line 4 (black to blue, in grey).
    May be someone will comes with a better solution. Ben ?
    Message Edité par chilly charly le 10-25-2007 01:45 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏10 KB

  • Multiple channels, multiple waveform graph

    Hello, there! I am trying to read four signals from four channels on DAQ device. I need to show the first two signals on one diagram and the other two on another diagram. So I wrote a simple VI as I attached. It gives me an error message like the picture I attached. Does anyone know how to debug this VI? I have come up with some very stupid idea to solve this problem, I can wire all this four AI Voltage VI together then go through Timing VI, then Logging VI, then Read VI, then I can connect the data terminal of this Read VI to an Index Array VI, so that I can do the following as the third Pic I attched. I have not tried this yet, but I want to find out some better method. (Maybe like the VI I wrote, it is very intuitive for people to understand) 
    Attachments:
    4 voltages in one task.vi ‏52 KB
    message.png ‏17 KB
    my last way to solve the problem.png ‏9 KB

    Hi,
    We need more information on detail of the DAQ device in use? I suspect this error could be due to sharing of single onboard clock.
    However, If all the channels could be coupled into a single task (This should be possible since there are not configuration difference between acquisition for different channel)
    Then you could use the Simple Delete from Array Function with Index=2 and length =2 available to seperate the waveform array and display them on two seperate graph Indicator. (attached modified vi)
    Attachments:
    4 voltages in one task.vi ‏46 KB

  • Save multiple waveform graphs and data in one Excel File

    Hi there,
    I managed to save data from waveform graph into excel file and saving the plot into excel but individually. I'm aiming to save both the data and the plot in an excel file. May I know how do I do it? I've tried using the Write to Measurement File vi and also the invoke node of the waveform chart but it's still not giving me what I've wanted. 
    The above was only for one analog input channel and I have 2 analog inputs each with their respective sets of data and plot. Is there a way to execute the data and plot of one input in one worksheet and another set of data and plot in another worksheet, all in one excel file?

    Hi there;
    I would recommend using the Report Generation Toolkit; it is the easiest way.
    You can use either the Report Express VI or the Appi to save all your data in both formats
    Greetings

  • Graphing Multiple 3D Graph Types with Spherical Data Points

    I have data points that are in theta, phi and r (magnatude) that I would like to be able to 3D plot and change the text/contour to either wireframe or contoured or points on the fly.  I believe this is possible however, after looking at the NI examples, they are all done with xyz coordinates and have yet to see a 3D graph with spherical (NI, take this as a suggestion ).
    Over a year ago, I was able to create data in spherical by giving it 3 1D arrays, but it only plotted it in the form of point or line.  The examples that have a torus use parametric plots?! although I am not entirely sure I understand how it works nor how to convert to it from spherical.
    Attached is a sample input file/array.  Wanted to see if anyone had experience using the built in 3D libraries (CW 3D Graph
    8.0) to achieve something similar.
    Note: the Amplitude column is absolute and could be made positive for ease of use as well.
    Thanks
    Attachments:
    example.txt ‏47 KB

    I'm just trying the following in the main loop to get something to graph, and nothing is showing up but this error - 80020009
    static int panelHandle;
    static CAObjHandle gGraph;
    //==============================================================================
    // Static functions
    //==============================================================================
    // Global variables
    //==============================================================================
    // Global functions
    /// HIFN The main entry-point function.
    int main (int argc, char *argv[])
    int error = 0;
    VARIANT xVt, yVt, zVt;
    HRESULT hr;
    int i,j;
    char errCode[100];
    double xData[50], yData[50], zData[50][50];
    /* initialize and load resources */
    nullChk (InitCVIRTE (0, argv, 0));
    errChk (panelHandle = LoadPanel (0, "3D Analysis.uir", PANEL));
    /* display the panel and run the user interface */
    errChk (DisplayPanel (panelHandle));
    CA_VariantSetEmpty(&xVt);
    CA_VariantSetEmpty(&yVt);
    CA_VariantSetEmpty(&zVt);
    for (i = 0; i < 50; i++) {
    xData[i] = yData[i] = i;
    for (j = 0; j < 50; j++) {
    zData[i][j] = i*j;
    GetObjHandleFromActiveXCtrl(panelHandle, PANEL_CWGRAPH3D, &gGraph);
    errChk (CA_VariantSet1DArray(&xVt,CAVT_DOUBLE, 50, xData));
    errChk (CA_VariantSet1DArray(&yVt,CAVT_DOUBLE, 50, yData));
    errChk (CA_VariantSet2DArray(&xVt,CAVT_DOUBLE, 50,50,zData));
    errChk (CW3DGraphLib__DCWGraph3DPlot3DSurface(gGraph, NULL,xVt,yVt,zVt, CA_DEFAULT_VAL));
    //errChk (CW3DGraphLib_CWPlot3DPlot3DSurface (gGraph, NULL, xVt, yVt, zVt, CA_DEFAULT_VAL));
    errChk (RunUserInterface ());
    Error:
    /* clean up */
    sprintf(errCode,"%X",error);
    MessagePopup("",errCode);
    CA_VariantSetEmpty(&xVt);
    CA_VariantSetEmpty(&yVt);
    CA_VariantSetEmpty(&zVt);
    CA_DiscardObjHandle(gGraph);
    DiscardPanel (panelHandle);
    return 0;
    At this point, I am just trying to figure out which function to call and what to set the input Variants.  Seems somethings they are 1D and sometimes they are 2D.  Unfortunately the documentation is very slim and doesn't explain what the actual functions or variants represent.

Maybe you are looking for