Missing data in 3D surface plot.

Got an easy one for someone to solve.  I've created a 3D plot, but the plot doesn't show all of the data.
I'm reading data from a set of .txt files and trying to visualize the results via the 3D plot.  Each txt file contains a set of 401 data pairs (y location, measurement).  A scalar (x location) is assigned to each file set, then added to an array containing data from previously read files.  The resulting array is parsed, rearranged, etc. before going to the 3D Surface Plot control.  Looks goofy because this .vi was originally used to combine data from multiple .txt files into a single file.
As you can see from the screen shot, the 3D plot only shows data from 400 to 445 (input data goes to 800).  I checked the plot input arrays/matrices to ensure all of the data was read from the .txt files (it's all in there).  What am I missing?
The .vi is attached along with a sample .txt file.
Attachments:
incomplete 3d plot.vi ‏23 KB
OE1_CHANNEL1_20100106_141010_58.txt ‏10 KB

You might want to transpose the z array so the dimension better match the x and y array sizes. Also eliminate the zero at the end of the y array.
Delete the first column from the z-matrix, it seems to duplicate the y array.
Your data and array gymnastics are incomprehensible and way too complicated. Can you tell how you want to read the input file in some simple words?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How acess 2D mesh data from 3D surface plot ?

    I have 3 vectors X, Y and Z, that I can plot using 3Dsurface graph and change the property node to Plot3DMesh. I want to get all the 2D Mesh data that LabVIEW generated to plot the surface. Is it possible ?

    You might try the Property node of the 3D graph. You might have to decimate the array that you get from the Data property.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Scatter plots with missing data

    How can I force the "Connect Points" option to ignore missing data in a scatter plot or line chart?
    If I have:
    Sequence
    Value
    1
    5
    2
    4
    3
    9
    4
    8
    5
    6
    7
    4
    8
    3
    9
    10
    2
    Numbers will only connect the first four cells with a continuous line, but leave the rest as only points.

    LS,
    You presently get this:
    If you use the Filter in the Reorganize panel to show only non-blank rows, you can get this:
    Jerry

  • 3D surface plot export _ missing scale on the projection​s

     Hi all,
    I am using 3D surface plot subvi in LabView 2010 SP1. After plotting the data, I can export the images (.bmp, mata file etc.). While exporting the projections of the images, I am not able to get the axis scales on them, though when I export the isometric view, I do have all the scales in the exported image.
    Any clues.
    Cheers,
    Deepak Arora
    LAB View 2010 SP1

    Hi Daniel,
    I am using surface plot helper to plot a 3D data set. On the front panel indicator of this, there is an option to export the image files in various formats, once you right click on the graph. I have attached two of the exported files. One is an isometric view and another one is the X-Y projection obtained by using the projection palette attached to the 3D surface plot. As you notice, the scale bars are missing from the projection.
    Thanks,
    Deepak
    LAB View 2010 SP1
    Attachments:
    20110830-PS-r1-FFTAmp.jpg ‏66 KB
    20110830-PS-r1-FFTAmp2.jpg ‏50 KB

  • How can I connect dots across missing data points in a line chart?

    Hi all!
    I have a table in Numbers that I update every few days with a new value for the current date (in this case body metrics like weight, etc.), which looks something like this:
    Column 1              Column 2      Column 3
    Aug 16, 2011         87.1             15.4
    Aug 17, 2011         86.6
    Aug 18, 2011         86.1
    Aug 19, 2011              
    Aug 20, 2011         85.7             14.6
    Aug 21, 2011         85.3
    Every once in a while there will be a missing value for a given date (because I didn't take a reading on that day). When I plot each column against the date on a line chart, there is a gap where there are missing data points. The line does not connect "across" missing data points. Is there a way to make the line connect across missing data points?
    Thanks for any help. This thing has been driving me nuts!

    Leave your nuts in peace.
    Don't use line charts but scatter charts.
    These ones are able to do the trick.
    Of course to do that you must study a bit of Numbers User Guide.
    In column D of the Main table, the formula is :
    =IF(ISBLANK($B),99999,ROW())
    In column E of the Main table, the formula is :
    =IF(ISBLANK($C),99999,ROW())
    Now I describe the table charter.
    In column A, the formula is :
    =IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,0)),"")
    In column B,the formula is :
    =IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,1),"")
    In column C, the formula is :
    =IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,0)),"")
    In column D, the formula is :
    =IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,2),"")
    In this table, select the range A1 … D5
    and ask for a Scatter chart.
    You will get what you need.
    I asked that points are joined by curves
    I just edited the parameters of Xaxis and Yaxis to get a cleaner look.
    I repeat one more time that knowing what is written in the User Guides is useful to be able to solve problems with no obvious answer.
    Yvan KOENIG (VALLAURIS, France) samedi 27 août 2011 15:59:20
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Maximum matrix size for surface plot?

    Morning,
    I've streamed data from an experiment to TDMS, and would like to display it in DIAdem. I have M channels of N data points and would like to display them in a surface plot.
    Usually, I'd expect to do the following:
    - Build a X axis (Generate Numeric Channel - N points at dX interval)
    - Build a Y axis (Generate Numeric Channel - M points at dY interval)
    - Build a Z matrix (Convert Matrix from X axis, Y axis and the M channels of N data points)
    I can then plot the X Y Z triplets to a surface plot.
    Alternatively, I can build the X and Y arrays and plot X Y Z in matrix mode. This has the added benefit of not forcing interpolation, which *always* crashes
    Now the kicker. For my dataset, M = 192, N = 290 000 and I'm unable to plot more than the first 20% of the data in X. I suspect that Diadem's limited to displaying 2^16 in surface plots, but no error is returned. Does anyone know if this is the case?
    I can decimate my data to fit the limit, but it's never nice to have to throw away data!
    (For clarification, the data is a raster scan of a sensor over a surface. I could drop the sampling rate and/or increase the speed over the surface, but that's a secondary concern)
    CLD

    Actually, it's the creation of an intensity plot that I'm more interested in, for two reasons. I can split my data into smaller segments and then compare measured data against my CAD model, but it's also handy having the global intensity plot available for human overview. Amusingly, almost any way I try to split the data besides decimating means that the split between datasets will be in some region of interest, which makes it awkward for non programmatic review  Meanwhile, the problem with decimation is that I have four channels of data for each of those slices: channels 1 and 2 are analogue signals and averaged to give one plot, channel three is another analogue voltage that is plotted in another, but channel four is a digital waveform with some pretty short pulse widths. Decimate too much and you'll barely see any meaningful data when plotted on an intensity plot for this.
    My instinct before starting was that DIAdem would handle the large dataset better than LabVIEW, which it did if I only wanted to plot YT data. However, after changing tack and heading back to LabVIEW I found that it was able to churn through things a bit better.
    I'm happy to send an email to describe what I'm doing in a bit more detail, as well as provide some of the resulting plots, as it's a sensitive project. Understandably, even if I could upload the data for someone else to work on, I'm not sure how much use 1.7 Gb of TDMS is to anyone else!
    CLD

  • Legend for a 3D Surface Plot

    How can I create a legend for a 3D surface plot? I'm doing a xy-projection and the view direction is directly towards this plane. The plot style is a surface contour plot. I want to display next to the plot the legend in a separate bar where the different colours with each value are displayed. The value for each contour line shall be displayed in the legend.
    Patrick

    OK,
    I remember that thread now. That was the one were you did not want to use interpolate colors and I did. Well I still  like to interpolate colors but that presents another challenge when trying to produce a proper color ramp. Without resorting to using the picture control
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
    I decided to play with some of the built in objects.
    All of the round objects like knobs and guages include a color ramp. This gave me a ramp but is not quite up to what you get with an intensity graph.
    Since I could not get a ramp on any of the straight indicators like sliders etc, I hid most of an intensity graph and just use the Z-scale. It turns out that the same data structure can be used in the intesity graph as the guage.
    Can anyone think of other ays of producing a proper color scale when intepolation is turned on?
    Ben
    Message Edited by Ben on 12-24-2005 08:03 AM
    Message Edited by Ben on 12-24-2005 08:03 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Scale.vi ‏81 KB
    Scale.JPG ‏111 KB

  • 3d Surface Plot advice

    I'm completely newbie to 3D in Java. I've installed the 3D JDK, and could do with some pointers of where to start - i've seen a lot of different classes used to do similar things, and am unsure where to start.
    I have a double[][] array, and would like to plot this data as a surface map, with the values in the array being the magnitude (X Axis).
    What classes should I use, and is there anything I should be aware of.
    What about deployment - is this a big issue?
    Thanks in advance.

    Ok, this is a method that creates a surface along the x and z axis, amp is in the y axis, using QuadArray. Then simply use the Shape3D.setGeometry(QuadArray) to set it as the geometry of the Shape3D object.
    private QuadArray createThicknessStrip(int zones, int dist, float width, float length){
    Point3f[][] thicknessPoints = new Point3f[zones][dist];
    QuadArray thicknessGeom = new QuadArray(4*zones*dist, GeometryArray.COORDINATES | GeometryArray.NORMALS | GeometryArray.COLOR_3);
    float[][] thicknessValues = new float[zones][dist]; // Initiate with the height at each vertexpoint.
    //Build 3D points from the values.
    for(int i=0;i<zones;i++){
    for(int j=0;j<dist;j++){
    thicknessPoints[i][j] = new Point3f(length/(dist-1)*j, thicknessValues[i][j], width/(zones-1)*i);
    int counter = 0;
    for(int i=0;i<zones-1;i++) {
    for(int j=0;j<dist-1;j++) {
    thicknessGeom.setCoordinate(counter++,thicknessPoints[i][j]);
    thicknessGeom.setCoordinate(counter++,thicknessPoints[i+1][j]);
    thicknessGeom.setCoordinate(counter++,thicknessPoints[i+1][j+1]);
    thicknessGeom.setCoordinate(counter++,thicknessPoints[i][j+1]);     
    return thicknessGeom;     
    Then set the attributes that you would like:
    Shape3D thicknessStrip;
    Appearance thicknessApp = new Appearance();
    TransparencyAttributes thicknessTA = new TransparencyAttributes();
    ColoringAttributes thicknessColor = new ColoringAttributes();
    PolygonAttributes thicknessPoly = new PolygonAttributes();
    thicknessPoly.setPolygonMode(thicknessPoly.POLYGON_FILL); //POLYGON_LINE if you would like a grid;
    thicknessPoly.setCullFace(thicknessPoly.CULL_NONE);
    thicknessApp.setCapability(thicknessApp.ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE);
    thicknessApp.setCapability(thicknessApp.ALLOW_POLYGON_ATTRIBUTES_WRITE);
    thicknessColor.setColor(0.5f, 1.0f, 0.5f);
    thicknessApp.setColoringAttributes(thicknessColor);
    thicknessApp.setPolygonAttributes(thicknessPoly);
    thicknessApp.setTransparencyAttributes(thicknessTA);
    thicknessStrip = createThicknessStrip(bla bla bla bla);
    thicknessStrip.setAppearance(thicknessApp);

  • 3D surface plot

    Hi,
    I have a set of 3 vectors X, Y and Z, and I plotted them in a surface plot. There is a minimum in the surface plot, and i know this minimum, i just take the minimum of the Z-values. I would like to mark this point on the surface plot and also mark the coordinates with lines of this point. Also the lower regions of the plot are in black, because of the color spectrum, i'd like to change that aswell, so smurking up the plot a bit . I attached the vi and the data set. Also, could there be a better way to make a surface plot? If you put the z-range from 0 to 1000, you can see the minimum, but it's not very nice, not continuous.
    Thanks,
    KF_
    Attachments:
    plot.vi ‏329 KB
    test.txt ‏397 KB

    I posted a semi-worse-case 3d example in this thread. This is a preview of the code I used...
    Starting at post #7 in that thread, you will find a tutorial that discusses how to work with the 3d graph.
    Ben
    Message Edited by Ben on 11-16-2009 08:29 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Converting parametric to a surface plot?

    I had previously generated a 3D plot, with the 4D being intensity.
    This was done using a parametric plot.
    How can i convert the parametric plot to a surface plot.
    Attachments:
    4D plot.vi ‏61 KB

    Fred,
        I took a look at the VI you had attached an noticed that your Z matrix only had 1 dimension of data therefore your data will only be points, which it is. Is there any particular reason you are only sending 1D of data to the z matrix?? Second thing I noticed was just the inherent difference between parametric plots and 3D surface plots. The big difference here is that you input relations to surfaces for x,y,and z for the parametric while the 3D surface really only uses z for relative surfaces and the y and x array as skews for the plot. Basically I think you need to figure out the difference in what the plot shows and not try to directly transfer one to the other. The math behind it can be confusing and while looking at a parametric plot it might seem simple to make a surface plot out of it, it is arithmetically hard to do. Look into the issue a little more and let us know what you find, I would be interested to know, given that I am a math nut, but not in 4D space.
    Tyler Heikes
    Applications Engineer
    National Instruments

  • Problem printing 3D graph surface plots

    I have a LabVIEW vi that I have written that uses 3D graph surface plots.  The front panel and 3D plots look great on the monitor.  However, when I use the file > print option to print a snap shot of the front panel the 3D surface plot graphs are missing.  All of the other controls and indicators print correctly, but the surface plots are missing completely.  Any ideas on what may be the cause?

    Hi JM,
    Do you have Report Generation Toolkit? If so, this looks like it may be related: http://digital.ni.com/public.nsf/allkb/981C98819DBB89FE862569610046CFB8?OpenDocument.
    Let me know if this helps.
    Thanks,
    Dan Richards
    Certified LabVIEW Developer

  • Plotting two 3D surface plots error

    I am ploting 2 3d surface plots separately. One plots ok, the 2nd is giving me an error - plot number is out of range. Both plots have the same plot number - (1). Both are plotting similar data. Why is is one failing?

    Greetings, John!
    I would first check the obvious things, like are you running out of memory? 3D charts can use a huge amount of it. Perhaps you can plot a couple of smaller data sets on your charts and see if you get the same error. You might also try a wiregrid format, instead of color, since color uses up a lot more memory.
    Just a couple of hints.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Help needed with missing data problem in CRVS2010

    We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
    I think I have identified two potential issues that document the possibility of data not being included in the report.
    The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
    The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
    Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
    One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
    The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
    Is this related to ADAPT01483793? Will it be fixed in service pack 2?
    If more details are needed, I would be happy to provide a sample report with stored data.

    Hi Don,
    Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
    There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
    Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
    If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
    Don
    Edited by: Don Williams on Oct 26, 2011 7:40 AM

  • Insert old missing data from one table to another(databaase trigger)

    Hello,
    i want to do two things
    1)I want to insert old missing data from one table to another through a database trigger but it can't be executed that way i don't know what should i do in case of replacing old data in table_1 into table_2
    2)what should i use :NEW. OR :OLD. instead.
    3) what should i do if i have records exising between the two dates
    i want to surpress the existing records.
    the following code is what i have but no effect occured.
    CREATE OR REPLACE TRIGGER ATTENDANCEE_FOLLOWS
    AFTER INSERT ON ACCESSLOG
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    V_COUNT       NUMBER(2);
    V_TIME_OUT    DATE;
    V_DATE_IN     DATE;
    V_DATE_OUT    DATE;
    V_TIME_IN     DATE;
    V_ATT_FLAG    VARCHAR2(3);
    V_EMP_ID      NUMBER(11);
    CURSOR EMP_FOLLOWS IS
    SELECT   EMPLOYEEID , LOGDATE , LOGTIME , INOUT
    FROM     ACCESSLOG
    WHERE    LOGDATE
    BETWEEN  TO_DATE('18/12/2008','dd/mm/rrrr') 
    AND      TO_DATE('19/12/2008','dd/mm/rrrr');
    BEGIN
    FOR EMP IN EMP_FOLLOWS LOOP
    SELECT COUNT(*)
    INTO  V_COUNT
    FROM  EMP_ATTENDANCEE
    WHERE EMP_ID    =  EMP.EMPLOYEEID
    AND    DATE_IN   =  EMP.LOGDATE
    AND    ATT_FLAG = 'I';
    IF V_COUNT = 0  THEN
    INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT
                                ,TIME_IN ,TIME_OUT,ATT_FLAG)
         VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
                 TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'),       -- DATE_IN
                 NULL,
                 TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'),      -- TIME_IN
                 NULL ,'I');
    ELSIF   V_COUNT > 0 THEN
    UPDATE  EMP_ATTENDANCEE
        SET DATE_OUT       =  TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
            TIME_OUT       =   TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_OUT
            ATT_FLAG       =   'O'
            WHERE EMP_ID   =   TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
            AND   DATE_IN <=  (SELECT MAX (DATE_IN )
                               FROM EMP_ATTENDANCEE
                               WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
                               AND   DATE_OUT IS NULL
                               AND   TIME_OUT IS NULL )
    AND   DATE_OUT  IS NULL
    AND   TIME_OUT IS NULL  ;
    END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN RAISE;
    END ATTENDANCEE_FOLLOWS ;
                            Regards,
    Abdetu..

    INSERT INTO SALES_MASTER
       ( NO
       , Name
       , PINCODE )
       SELECT SALESMANNO
            , SALESMANNAME
            , PINCODE
         FROM SALESMAN_MASTER;Regards,
    Christian Balz

  • Missing Data from Legacy System

    Hello All,
    My client went live end of January this year. They had a month of transaction data in their legacy system which they did not bring into SAP. Since this is their first year on SAP and recently implemented Extended Withhold Tax one month data is missing; when they run the 1099s at the end of the year they are going to be reported incorrectly.
    How can we bring over that missing data from legacy system over to SAP without having to clear those invoices in SAP?
    Thank You In Advance

    Hi Shashi,
       Have a look : <a href="http://www.box.net/shared/9tda040za6">Transferring Data with DB Connect</a>
    <a href="http://sapbwneelam.blogspot.com">More Docs...</a>
    Hope it Helps
    Srini

Maybe you are looking for

  • Inventory opening and closing stock with value report

    Hi All, Is it possible to get details of both opening and closing stock with value of each items of last financial year (2009-10) in inventory report? Mizan

  • How do I use the same iCloud Photo Library on multiple iPhones?

    I want to be able to use iCloud photo library on all my i-Devices, with the same photo library. I can log in with the same iCloud account on all devices, but, then I can't get FindMyFriends to work, because each IOS device needs it's own iCloud accou

  • Read Only Harddrive problem

    I have a WD Elements Drive and just bought my first mac product! Mac Book Pro Retina. I transfered files from my friends mac onto the drive and now I want to work on it on my laptop but it says I can not write any files onto the disk. I tried to chan

  • Need help with backup folders

    How can I view the backup folders in "text format" does anyone know the software I would have to have to do this?

  • How to INSTALL the SAP?

    Can anyone tell me how to INSTALL the SAP ?