3D graph - several 3D plots on the same graph

I replied to Adeline62's post since it's the same issue, but it might be overlooked and not get help.
I guess I followed Adeline62's steps, but I still only get the last drawing shown up after I finished drawing all plots. Do I need to add anything alse? The following is my cope.
 CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);
 CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray, yArray, dArray, CA_DEFAULT_VAL);
 CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);
 for (i=0; i<k; i++)
     j=i+2;
     CA_VariantSet2DArray (&dArray, CAVT_DOUBLE, m, n, &cz[i]);
     CA_VariantSet1DArray (&xArray, CAVT_DOUBLE, m, &cx[i]);
     CA_VariantSet1DArray (&yArray, CAVT_DOUBLE, n, &cy[i]);
     CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(j),&plotHandle);
     CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray, yArray, dArray, CA_DEFAULT_VAL);
     CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);
CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

Hello yanchu,
Here is an example that will plot two graphs at once. Let me know if you have any questions.
Best Regards,
Adam G 
National Instruments
Applications Engineer
Attachments:
MultiPlot.zip ‏13 KB

Similar Messages

  • How can I draw two differenct plots at the same graph?

    [I am beginner]
    I have two different set of data which have differenct x-axis values. How can I draw two data at the same plot?
    For example, one data set is
    x y
    1 3.5
    3 2.3
    5 1.3
    8 3.2
    The other
    1 2.3
    2.5 5.4
    4 2.5
    If I use m_graph.plotXvsY two times. But it draw only one graph at the same time.
    Please let me know. Thank you in advance.

    Do you really need the two sets of data on the same plot or is what you really care about is that the two sets of data are in the same graph? If it's the former, then there's not much that you can do since a plot can only contain one set of data. You can append to an existing set of data by calling the corresponding Chart (for example, ChartXvsY) method, but the result is that the plot's data will appear continuous.
    If it's the latter, the way to do this is to add multiple plots to the graph and plot each set of data in a separate plot. For example, go to the Plots tab in the graph's property pages, add another plot, then here's some sample code that demonstrates how to plot the sets of data from your example above:
    double xData1[] = { 1, 3, 5, 8 };
    double yData1[] = { 3.5, 2.3, 1.3, 3.2 };
    CNiReal64Vector xDataSet1(4, xData1), yDataSet1(4, yData1);
    m_graph.Plots.Item(1).PlotXvsY(xDataSet1, yDataSet1);
    double xData2[] = { 1, 2.5, 4 };
    double yData2[] = { 2.3, 5.4, 2.5 };
    CNiReal64Vector xDataSet2(3, xData2), yDataSet2(3, yData2);
    m_graph.Plots.Item(2).PlotXvsY(xDataSet2, yDataSet2);
    Hope this helps.
    - Elton

  • What's the best way to deal with having different units plotted on the same graph?

    They are all using Voltage, so I guess I could have a way to switch between voltage and other units. The main readings will be temperature and strain gage readings, which I've then configured using the Measurement & Automation Explorer as Virtual Channels.
    Any ideas/suggestions from people who've dealt with this before?
    I'm using Labview 6.1.
    Thank you!
    Lauren

    I attached an example jpg plot of an application that I had.
    I did not necessarily divide the data arrays by their maximum, even though it is an option. In this case 100% equals the maximum.
    I divided them by a value that the operator sets(it is defaulted to some value). If that changes, the graphed is replotted, with the new normalized data
    Attachments:
    Example_plot.jpg ‏46 KB

  • How do you plot multiple curves on the same graph when using a while loop?

    I am writing a program that will plot the IV Output chracterisitcs curves for a MOSFET transistor. I have two sweep variables Vg and Vd. For each Vg valve selected, Vd is swept from its start to stop voltage creating a graph for that Vg valve. Both of the sweeps are done using while loops. Ideally I would like to display all of the Vg plots on the same graph while having the ability to do real-time graphing. Can anyone help me figure this problem out? I have attached my program. Thanks!!
    Tammy
    Attachments:
    outputfin2.vi ‏165 KB

    Hi Tammy & Tica T,
    As far as I see it - this thread is a very bad version of already existing bad version......
    http://forums.ni.com/ni/board/message?board.id=170&message.id=127857
    I expected, that an Applications Engineer from NI knows something about  a Transistor and how an Output characteristic looks like !!  Take a look to a typical Transistor Datasheet ( e.g. n-channel MOSFET) - you will see, that there is no relation of ID vs Time like in your example ( values vs time )  but  IDrain vs VDrain at different VGate's ( no relation to Mr. Bill Gates ).
    Find attached a vi, that in general does what you need - drawing of  curves vs x-axis (XY-graph in use)  - in test_sweep.zip.  And that you geet an impression, how it might be done ...... dynamic Output characteristic of a Transistor with Standard Equipment of a Lab ( Scope + Generator + Power Supply ) find in addition a Frontpanel - picture. One of the interesting points here is - the self-heating effect; visible on ch3 of scope - 5µs Pulse is already a very long time...... This measurement was done in order to compare with our own Transistors......... 
    Hope this helps a little bit to understand, what we are talking about.
    Regards
    Werner
    Attachments:
    test_sweep.zip ‏358 KB
    dynamic Transistor char.png ‏65 KB

  • How to plot 2 signal in the same graph but different frequency?

    Hi!!
    I have 2 sensor, motion and EMG.. I want to plot both of the signal (after processing) in the graph (real-time)..
    The frequency of motion sensor is 128 Hz and for EMG sensor 800 Hz..
    When I'm trying to plot (motion and emg) in the same graph, the signal from EMG (red line) not smoothly and very different with motion sensor..
    I'm trying to resample that signla but, it's not working..
    Can you help me?
    thank youu
    Attachments:
    graph.png ‏11 KB

    Akardo14 
    Yes, I trying to use merge signal before...  but signal from emg signal didn't appear in the graph (using merge signal figure)..
    I'm showing motion and emg signal in different graph, it's work..
    But I need to show both of signal in one graph to compare between motion and emg signals (fig1)
    Attachments:
    using merge signal.png ‏19 KB
    fig1.png ‏9 KB

  • Plotting two continuous analog intpus on the same graph.

    Hey,im currently using visual basic 6.0 and Measurement Stdio and want to read in two analog input signals at the same time and plot them on the same graph.Is there any sample code available to look at to carry this out?Or any help on how to go abouts this.
    Cheers

    Hi Dazza,
    The link below takes you to a page which should provide you with what you need. Let me know if you need further help.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E03B56A4E034080020E74861&p_node=DZ52130&p_source=External
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.

  • Several curves with several scales on the same graph

    Hello,
    I am currently working on a project which include a data acquisition VI. I would like to display two curves with two different scales (0 to 1 and 0 to 200) on the same graph.
    I have been trying nearly all the options in the properties menu, I can not find anything that corresponds to what I want.
    Do you know how to do such a thing?
    Thanks in advance,
    Gabriel.
    Solved!
    Go to Solution.

    Right click on the existing scale and click Duplicate Scale.
    EDIT:  I should add that you'll need to set ActYScl through a property node to switch between the difference scales if you want to run operations on them.
    --Using LV8.2, 8.6, 2009, 2012--

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

  • Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same eror message

    Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message.  Says Lightroom will attempt to fix the problem the next time it launches but that is not happening.  How do it fix this?

    Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT

  • Can I print several different pics of the same size on one shee  of papert?

    Hi,
    I should like to print a group of several different pics of the same size & resolution on one sheet of (A4) paper eg 6 family photos. There doesn't seem to be a template for this - just two choices of format (both with one large and a few smaller format) and there is no 'Printer' pop up menu.
    I tried to laboriously copy pics to a two column works word processing document (after resizing in a different one so that they would fit in the columns). This is time consuming and when down sizing the pics lose resolution!
    Maybe I can download templates somewhere on the apple site as suggested by apple care but I couldn't find out where. Maybe there is a possibility of doing some contact prints?
    Any help much appreciated - many thanks - John

    Select the 6 photos you want printed in the iPhoto Library or Album window.
    Choose File->Print.
    In the Print dialog box, Select the paper size in the Paper popup menu.
    In the Style popup menu, select N-Up.
    In the Photos per page popup select 6.
    The preview should show what you'll get. I hope its what you wanted.
    Message was edited by: Thomas Emmerich

  • Mac on Windows SMB Share- IDLK files disappearing allowing several users to access the same file

    Hi,
    We have a volume licensing agreement with Adobe and have around 16 Adobe CS6 licenses all used on Macs. The network is based around Windows servers and shares which the Macs connect to via an SMB connection to the server. The issue we're having is that when an InDesign file is opened, sometimes it will not create an IDLK file (or sometimes it will create one but it will disappear seconds later) and it allows several people to view the same file at the same time. Obviously two or more people working on the same file can, will and has caused issues with overwriting documents without knowledge of doing so.
    Has anyone else encountered this or have any ideas as to what might help us resolve this issue?
    Thanks

    When you open a file from a previous version (you'll see converted in
    the file name) there is no CS6 file in existence, yet. Once the file is
    saved as a CS6 file, the lock file is created. The whole procedure is
    designed so that you must make a fully conscious decision to overwrite
    the old version file with a new one.
    This is no different than creating a new document that hasn't been saved
    yet.

  • How to generate a report with more than one elements in the same graph??

    I need to generate a custom report in OEM GC 10g featuring volume total capacity information and volume free capacity information both in the same graph on (Y-axis) and time on the (X-axis). I could generate only the total volume capacity graph individually, but how can the combined graph and the graph for free capacity be generated...

    Is it your values in parameter NO separated by coma? And is it
    parameter in where clause?
    Do you want something like :
    from table
    where s_no in (NO) ?
    If is answer "yes" you can create lexical parameter in report.
    You can write in report sowething like:
    select a.field1, a.field2,.....
    from table a
    &COND /* this is if is condition only one line after "from".
    if you have more lien after where then you will put this &COND
    in line where you want to have your multivalue.
    Then in your trigger in form you should write:
    sc_no := 'where a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    /* again this is if you have only one line with WHERE ili
    conditions */
    or you will write:
    sc_no := 'and a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    It will substitute line in which is your conditions with
    multivalue.

  • Several JDK:s on the same computer?

    Is it possible to run several JDK�s on the same machine (and JRE�s)?
    I have this problem: I�m doing some J2ME development, but JDK 1.5 does not seem to be supported at least with MIDP 1.03 (or vice versa...). So, in order to be able to do J2ME development with MIDP 1.03 I need to install JDK 1.42, in other words downgrade from JDK 1.5. On the other hand, I need 1.5 for some "normal" programming for the pc. Also I would like to run the newest JRE plugin for the browsers.
    So, can I install both 1.42 and 1.5 JDK�s on the same machine, as well as both JRE�s 1.42 and 1.5? Will this cause problems and conflicts?
    If this is possible, how should I set up the installations so that the browsers would use the newest version of JRE, and so that pc development would use the 1.5 version, and finally the J2ME development would use the 1.42 version?
    Thanks in advance,
    Tomi

    Yes, you can have both.
    First, whichever one you want to be 'default' (the JRE you want the browser to use), you should install second. So, for instance, you want the browser to use the 5.0 JRE, so you would install Java 1.4.2, then Java 5.0. The you would make sure that your OS' PATH variable includes that version's bin directory (both JRE and JDK).
    Now, when you are doing J2ME developement, or other actions that need to use 1.4.2, you will have to specify the bin directory for the 1.4.2 directly. For example, run the program with:
    c:\java\jre1.4.2\bin\java -cp ... ...
    and the same for compiling:
    c:\java\jdk1.4.2\bin\javac -cp ... ...
    I am not particularly sure how to set the compiler to use for J2ME, if you find problems doing this, then try to reverse just the order of the JDK install:
    Install JDK5.0 first, then JDK 1.4.2, set the JDK 1.4.2 as the JAVA_HOME and inside the PATH.
    But keep the JRE5.0 as the default runtime.

  • I used to give my photo's keywords. Most of the time I have several photo's for the same keyword and it was possible to select all those photo's and give them the keyword in one move. Since of few weeks I can't do that anymore and I find it very annoying.

    I used to give my photo's keywords. Most of the time I have several photo's for the same keyword and it was possible to select all those photo's and give them the keyword in one move. Since of few weeks I can't do that anymore and it's very annoying. What can I do to get back to the former situation?

    . Since of few weeks I can't do that anymore and it's very annoying. What can I do to get back to the former situation?
    Check, if you have the "Primary Only" option enabled. Then keywords will only be applied to the "Primary Image":
    See:                  Keywords or ratings are applied only to one of the selected images - why?
    Uncheck the little square button with the "1".

  • Ability to process several raw files with the same content but with different exposure into the single picture

    Can you add to the Lightroom an ability to process several raw files with the same content but with different exposure into the single picture?
    Base raw files can be given with exposure bracketing during shooting, for example.
    The goal - to get maximum details in darks and lights (if we use the "ligths recovery" or "fill lights" we lose the quality because raw file just have no all required information).
    The similar (but not the same, only the idea) thing - is High Dynamic Range Photography in Adobe Photoshop
    Thank you

    The plugin LR/Enfuse does this already. And of course Photomatix have a plugin available for Lightroom. This essentially amounts to pixel editing, which is beyond the range of Lightroom's metadata editing.

Maybe you are looking for

  • GR for vendor consignment 101+K in MIGO

    HI All, For some reason I am not able to post the GR of the vendor consignment PO using transaction MIGO. I am getting an error message that Movement type 101 K is not planned. (Entry is not copied over)     Message no. MIGO057 However I am able to p

  • How do I download Windows 7 into my new MacBook Pro

    How do I install windows 7 to my new MacBook Pro?

  • How do I transfer iTunes Library from external hard drive to another drive?

    I have filled by 160GB drive with my iTunes music library so I am purchasing a 400GB external drive. I want to transfer the entire library to the bigger drive. Can I simply drag via fire wire then entire libarary to the new drive and then "tell" by i

  • Video ichat dsl-to-cable user

    I have DSL - my sister in Los Angeles has Cable. Our video chat works perfect with tester in UK. when we try with each other the quality is so poor we can't use it. Is the a DSL to Cable problem? My DSL speeds are 1-3K Kbps(download) and 3-400 Kbps(u

  • Transports are getting stuck in import

    Hi Experts, I am importing transports, it starts the import and import sign comes. but transport are not getting imported. the import sign remains there even after 12 hours. its happening for all the transports. Import log says "Selection for Import"