Adding intensity to 3d parametric graph

I am trying to find a way to add intensity to a 3d parametric graph. I want to use the newest 3d parametrc graph in labview 8.6. So basically, i have my X, Y, and Z data, but i want to be able to change the color depending on values from a 4th input.  The Plot Parametric sub vi has an input labled color matrix, but i cant find any information on what this does. Anyone know?  I also though i could use the surface color map property node option, but not sure what format it is expecting and if this will work.  Anyone have any suggestions?
much appreciated, thanks!!!

sufu wrote:
Can you post an example or more details.  Basically, I have an antenna pattern plotted as a 3D surface and I want to create an "intensity" view where the magnitude is mapped to different colors.
- Sufu
"There is nothing new under the sun." Eclesiastes
See this thread starting at post # 7 I offered a series of posts that serve as a worse case tutorial.
All of the code is included.
Here are some previews.
Again these are just previews. See that thread for the example code and to read how it was done.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Colourmap (indicator) in 3d parametric graph.

    Hello,
    How can I turn on colourmap (legend which describes values in terms of colour intensity) in 3d parametric graph? Is there any simply way to do this or I have to write additional vi?
    I was looking everywhere and I coudn't find proper option to make the colourmap visible (indicator not control) in plot area.
    Many thanks,
    Peter.

    Hello Peter,
    I do not believe there is any way to enable a color map indicator on this graph. There are ways to display intensity in a seperate graph, however. Another customer has addressed a very similar issue at this link: http://forums.ni.com/ni/board/message?board.id=170&message.id=34884&requireLogin=False , and has provided a pretty good example. One of the bigger things to watch for is the conversion between the ActiveX color scheme and the LabVIEW color screen.
    I hope this has been of help,
    Travis M
    Applications Engineer
    National Instruments
    Travis M
    LabVIEW R&D
    National Instruments

  • Error -23027 in parametric graph

    First off, I'm not even sure if what I have been attempting is feasible, so please tell me if it by chance is not possible to finish this. Nonetheless, here goes my attempt at solving my problem:
    I am trying to display a parametric graph (form x(t)=... and y(t)=...). My front panel contains an XY Graph. My back panel is pictured below (and attached as a VI Snippet PNG file):
    However, my functions are extremely complex (3 printed pages) parametric plot, (involving the Heaviside step, sign function, and lots of trig). When I first received the error ("-23027, more than one variable"), I thought I may have mistyped an element in the equation, but after extensive searching, I could not find a single letter out of place. This begs my question:
    How can there be more than one variable if the only times I use letters in the strings that contain the formula are in "sqrt", "sin", "sign", "cos", and "step" (all functions, to my knowledge) and of course, the sole variable "t"?
    Here is the basic idea of what I'm trying to pull off. 
    http://blog.wolframalpha.com/2013/05/17/making-formulas-for-everything-from-pi-to-the-pink-panther-t...
    (my "picture" isn't as complex as most of the examples on wolfram alpha)
    If any clarification is needed, I'm happy to post it. I just don't want to unnecessarily clutter this question with my 3 page parametric formula.
    Thanks a million,
    T16626
    "Whether you think you can or can't, you're right."
    ~Henry Ford
    Solved!
    Go to Solution.
    Attachments:
    block-diagram.png ‏76 KB

    Being somewhat new to LabView, I had no idea that "probing" existed. However, it is a great tool for debugging, (so far as I can tell), and although it didn't help me find the problem directly, it did help me eliminate some possibilities.
    Here is what I did wrong in the VI snippet attached to the original question (which is still incorrect):
    I left spaces instead of multiplying using the '*' (asterisk).
    I wrote the sign function "sgn(..." instead of "sign(..."
    Thanks for your help GerdW.
    Also, I have attached my working VI Snippet to this post, while leaving the original up for people to use as an example of what NOT to do.
    Cheers,
    T16626
    EDIT: I recommend changing the "number of points" value on the "Eval X-Y(t) Optimal Step" sub-VI to something much higher than the default 10, which produces a grapht that is a bit... inaccurate... if I may say so.
    "Whether you think you can or can't, you're right."
    ~Henry Ford
    Attachments:
    block-diagram-working.png ‏75 KB

  • Adding data labels to column graph

    I work in the financial industry and I have to add data labels to all bars that appear in my ten year performance graphs (see http://fundinvestor.calamos.com/ClosedEndFunds/CEFund.aspx?name=CHI under the "Performance" tab as an example). Is there a script that can do this? I saw there's this technique that Adobe offers for column totals: http://livedocs.adobe.com/en_US/Illustrator/13.0/help.html?content=WS714a382cdf7d304e7e07d 0100196cbc5f-619e.html but that's not working. What am I doing wrong? Adding data labels to bars is ridiculously simple in Excel, why can't I find the way to do it easily in Illustrator?

    http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-619ea.htm l
    That should do the trick.
    Mylenium

  • Error when adding a Title to a Graph in Excel

    I am trying to automate adding a graph to Excel.  The Easy Graph.vi is too simple for what I would like to do.
    I recorded a macro of what I wanted to do, and then I copied it in LabVIEW basically.
    My program is erroring out every time I try to modify anything on the chart (title, series values, series names, etc).
    I cannot figure out why it will allow me to add a sheet, add the chart, rename the sheet, and then error out when I continue to use the Excel._Chart properties and methods.
    I attached a sample file and my code.
    Thanks
    Kenny
    Attachments:
    My Source Distribution.zip ‏128 KB
    test.xls ‏16 KB

    Kenny K wrote:
    Ok, I figured out my issue.
    It seems that you have to graph the data, before you can change any graph attributes, even though I have done that before.
    Once I put the axis, title, etc after the graphing, then it worked.  Well, I also had specified my range wrong, so that errored out too.
    Thank you for the help.
    Also, how to you get a reference to the Chart Wizard through the excel activex?
    I posted a snippet. You can take it from there. I do not remember how I got it before. I have not had to change it in six to seven years. I remember going through the MSDN and found the function. I think I made it from scratch to match the MSDN..
    Tim
    Johnson Controls
    Holland Michigan

  • Intensity or some other graph?

    Hello all,
    I'm trying to create a graph where XY axes are Freq and Amp and the intersection point is a color representing the failure mode of test I'm running.
    I've tried using an XY graph having different plots represent the different failure modes and colors, however, the spacing between points is off-putting and makes the final graph hard to see.I've tried resizing the points to where they fill up the area, but the test ouptut will be dynamic and the scales of each axes will vary from test to test and I'd like to keep a static graph size. Also, with larger scans the density of points (with the larger setting) makes individual points hard to see.
    I've also tried using an intensity graph and using the Z value as the color code, unfortunately, the color is not at the intersection of X and Y axes, it fills in the area between the intersection.
    Is there any other graph type I can use or is there a setting I'm missing in either the XY or intensity graphs that can help me with my problem?
    It's been successfully created in Matlab using the Image function, but I'd rather not have to interface with Matlab, if at all possible.
    Thank you

    Wayne,
    Attached it the ctl you asked for. I had to try to solve it in a different way, but first, I guess it would be helpful to explain what I tried that didn't work.
    1. A regular multi-plot XY graph did not work because of the amount of space in between points and the size of the points became an issue when they were too close together
    2. I tried plotting using the multiplot XY picture graph function, but had the same issue with larger white spaces in between, plus, I was unable to control the point size and the fact that the points were not filled.
    3. I tried manually drawing the graph and trying to use the multiplot xy picture graph as an overlay, but since I don't control the pixel size of the graph, it didn't work out when I changed the number of squares (points) in the graph.
    Finally, since I had already created a function that drew squares as my points, I used the draw lines picture functions and manually drew the grid plot and ticks and labels and legend. It was a bit tedious, but a good learning experience on using these functions that I had never used before.
    Attachments:
    post processing data structure.ctl ‏8 KB

  • Adding standard deviation bars to graphs

    I have composed a bar graph on numbers, and have already calculated the standard deviation of my data. How do I add the standard deviation lines to each bar on my graph? Thank you.

    Details available in *_Numbers User Guide_*, page #148 in the English version.
    Yvan KOENIG (VALLAURIS, France) lundi 6 décembre 2010 16:44:20

  • In running application can control can be added are not(i,.e graphs)

    hi , may I know whether any control(i.e, waveform graphs )on running application in front panel , my device is pxi system with 4461 and 4462 device with labview7.1 version in xp backround.
    i am using this in datawirting and data reading.
    looking for answer.
    with regards

    Are you wanting to know if there are any control types other than waveform controls?
    Kudos are (always) welcome for the good post. :-)

  • Adding zoom facility in bar graph

    Hello,
    I want to add zoom in my bar graph so that i can "zoom in" and "zoom out" my graph. This zoom facility is provided in "Jfreecharts". I want to use it in Oracle graphs. I have seen attributes of "zoomFactor" and "zoomDirection" in Graph.dtd but i don't able to use them in graph.xml.
    can anybody help me in this matter.
    Thanks in advance
    Waseem

    Use the insert a Shape tool.
    Yvan KOENIG (from FRANCE lundi 8 juin 2009 12:19:55)

  • Adding trendline and equation to lv graph in 6.0

    Is it possible to add trendline and equation to a lv graph in 6.0? It is normally done in excel.

    Hi,
    LabVIEW 6.0 does not have any built-in trendline option. However you can use the interpolation functions to achieve the same results. As for adding the equation to the graph, you can do it simply by selecting the "Edit Text" tool from the Tools palette and write the equation in the grid of the graph.
    Hope this helps.
    Ankita

  • 10g Graphs - How to customize the default color of a Bar Graph

    Hi,
    I've posted this thread in Reports section, have received no reply yet. Maybe no one has ever tried this before!!
    I am porting a couple of 6i OGD's to 10g graphics.
    Basically I am invoking reports from a form. The reports contains embedded Graph.
    Here comes the tricky part.
    I have a couple of Graphs in 6i that display each bar of a bar graph in different color.
    Example:
    Value       Bar Color
    Critical     Red
    Major       Orange
    Minor       Yellow
    None       GrayQ) I want to know how to set the color of each bar of a bar graph based on the value it takes. i,e If it's critical the bar should be displayed in red. If it's major, the bar should be displayed in orange.
    I added conditional formatting in 10g Graph, and this is the trigger that was created.
    function CT_1FormatTrigger return boolean is
    begin
      -- Automatically Generated from Reports Builder.
      if (:f19 > -1)
      then
        srw.set_foreground_border_color('yellow');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('yellow');
        srw.set_fill_pattern('solid');
      end if;
      -- Automatically Generated from Reports Builder.
      if (:f20 > -1)
      then
        srw.set_foreground_border_color('red');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('red');
        srw.set_fill_pattern('solid');
      end if;
      return (TRUE);
    end;When I try to invoke the above report from the form, I get the error: FRM-41214: Unable to run report.
    If I remove conditional formatting, I am able to invoke the report from the form with the default color in the embedded graph.
    Hopefully someone has ideas on this!
    Thanks

    Why don't you use the build-in charting capability of reports 10g instead? There is FormsGraph.jar implementation for forms but that might not have the flexibility of what 6i graphs has/had and not "officially" supported - not like the reports 10g charting capability (which is built in and can be customized by editing the related xml files (if necessary). Note: FormsGraph.jar has it's own limitations

  • Syncronized scroll bar on graphs

    Hi together,
    I have a program with several graphs. Is it possible to syncronize the graphs so that all graphs scroll if I scroll on the scroll bar of on graph? I remeber that this is at least possible in LabView...
    Cheers

    As an alternative to Wolfgang solution, you can add your own scrollbar to the graphs using the scrollbar instrument driver, located in \toolslib\custctrl folder in your CVI installation. Look at the sample program in samples\userint\custctrl\scrollbar folder.
    Adding a scrollbar to each graph and handling scrolling events from the controls you can syncronize your graphs. This of course once the graph has been zoomed so that only part of the plots are visible.
    This is what CVI can offer for graphs. If you are usnig stripcharts, instead, then you can have a scrollbar shown when they are paused. In this moment, the chart callback should receive EVENT_HSCROLL events when the user operates on the scrollbar. In this moment you can probably get the X-axis scale and apply the same to the other charts. It is to be tested, though: I have nevere tried such a mechanism.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Obtaining equations with 3D graph

    This is what I'm trying to do but I'm not too certain whether it's doable in Labivew or not.
    Basically I have a program which collects bunch data points and insert them into arrays.
    The 3 sets of arrays I have are:
    Water Weight
    Water Ratio
    Reflectivities
    Basically there are 1 WW and 1 WR array for each reflectivity. (ie. for 10% reflectivity there's a 1D WW array and a 1D WR array). So really the reflectivity array is just some constant numbers used for the sake of implementing the 3D graph.
    I want to plot these arrays in a 3D graph. Right now I'm using 3D parametric graph instead of 3D surface graph b/c surface graph doesn't seem to work with the restriction of 2x 1D array and 1x 2D matrix. (Unless someone has a suggestion?)
    I managed to plot the data points on the parametric graph. Basically if you plot the WW and WR in 2D you get a polynomial curve. So in 3D you get a surface of bunch polynomial curves.
    Now what I want to do is able to select a specific reflectivity value on this 3D surface and get an equation for this particular polynomial curve at this reflectivity. Is this doable in Labivew at all? Helps would be much much appreciated. Thanx.

    Wow thanx for the fast responses. I really appreciate it.
    Ok let me explain the program a little bit. Basically "Read Grid" moves a computerized linear stage system so the program can collect data at different parts of the sample. The sample is placed on a plate which holds 8 different reflectivity backings (2%-99%) and an empty slot. The sample is wetted and dries up as time goes by. The program collects the sample weight and the measurement data, does some calculation to spit out WW and WR. Since there are 9 different reflectivities I have each WW and WR saved in arrays (so 18 arrays in total).
    When the program is done one can analyze the data by clicking "Fit Data." Basically this sub-vi plots the 9 sets of data, does polynomial fits to each and finds the polynomial constants for each reflectivity.
    Now it's necessary to be able to predict polynomial constants within the 2%-99% range (for example, say we want 13%). This is why I need to be able to plot a 3D surface/parametric graph, select the reflectivity value I want, and find out the polynomial constants for that specific reflectivity value. Basically you would have a surface that looks something like this:
    http://www.leeds.ac.uk/iss/documentation/beg/beg28/beg2802.gif
    So yeah the VI I attached previously doesn't have the right surface look.
    Here's the screenshot for Read Grid.vi while it's running. Note, the data are kinda nonesense right now:
    http://photobucket.com/albums/y218/Tawcan/?action=view&current=screenshot.jpg
    Here's the screenshot for plotting 2D graph and finding polynomial constants:
    http://photobucket.com/albums/y218/Tawcan/?action=view&current=screenshot1.jpg
    I've attached a sample data text file so you would have an idea.
    Attachments:
    Avg Data.txt ‏3 KB

  • Newbie, Would like to use analog input and graph

    I was using the "Real Time Chart.vi" example in Labview 2011 and got it all set up using the random input it comes with. I have a USB-6008 that is set up and I can see the signal in MAX. The big question is how the heck do I get the vi to work with the analog input? If someone could modify the vi and add the AI0 as the input I would really appricate it!!
    Thanks
    Attachments:
    Soil Moisture.vi ‏15 KB

    trimixdiver1 wrote:
    Aside from me adding the gage and bar graph, its the same as the example. Ive added the AI (purple) channel but I guess I need to add some Daqmx stuff to allow it to connect to the strip chart.
    Wheres the analog in channel?  Is this something you haven't posted yet?  Make your changes, then post when you are ready.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Error joining two tables in graph pane

    While trying to join two tables by draging one column onto a column of another table in a graph pane, an error dialog with the following message appears:
    "Drag and drop failed. Please drag a column from one table in the graph onto a column of another table in the graph pane. If you are trying to create a self join, please create another instance of the table and adding same table to the graph pane."
    How do join two tables in the query editor graphically?

    I also have the same problem. I use MySQL. I do not have any foreign keys in my tables. If I try to create table joins graphically myself I get the following error:
    "Drag and drop failed. Please drag a column from one table in the graph onto a column of another table in the graph pane. If you are trying to create a self join, please create another instance of the table and adding same table to the graph pane."
    When I type SQL query(similar to the following) in the in the query editor it dosent work: (As a result same row is appearing more than one time when I test the application)
    WHERE login.USERNAME=me.NAME
    In the above Mayagiri suggested a turorial using Pointbase and tables with foreign keys which is not directly connected with problem.(Beacuse it seems no problems in Pointbase tables with foreign keys)
    Any further is very much appreciated. Thanks in advance.

Maybe you are looking for