Labview Graph Problem

Hello,
I have a problem with a tool witch takes excel columns and plots graphs.
The problem is that when i create the png of the graph it additionaly appears the poit (0;0) witch should be on graph.
In the preview i can't see this point. I attached an example.
Attachments:
Daimler Star22_unknown_unknown_unknown_ACCX_Offset vs temp.png ‏13 KB

Have you tried putting a probe onto the data going into the graph to check there aren't any extra data points (i.e. at 0,0)?
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • Labview Graph Palette Taking Outputs

    Hi,
    is there any way to take the output of Labview Graph Palette i.e. when I zoom in can i access the minimum and maximum values of the zoomed in scales.
    What I am trying to do is scanning a square and displaying data on an intensity graph. SoI wanted to add a feature which enables me to zoom in on the graph then take the values of the new scales and scan the zoomed in area again in the instrument.
    So, is this possible?
    Thanks,
    Yatin

    In LV8.5 (not sure about 8.2) you get "scale change" events, so with an
    event structure you get new ranges every time they change.
    In <LV8.5 the only option is to poll the range properties of the graph.
    Regards,
    Wiebe.

  • Display LabVIEW graphs in realtime from previously acquired data

    I have some raw LabVIEW data stored in a BIN file. This file contains about 4 channels of labview graph data that was acquired. How can I open the raw LabVIEW data and view the four steams in realtime? I need to be able to view the data as it scrolls across in the same way as when the data was acquired. Is there a program or premade VI to do this?
    I will then use screen capture software to create videos of the labview graphs. If there is a way to directly convert the visual labview graph data into a video that displays the graph in the same way it was collected that would be ideal. For now I would be happy just getting the data displayed in the same way as it was collected.

    I'm sure this has been asked before, but I am having a hard time finding the other messages.
    Basically you need to create a VI that reads in the binary data from the file.  You also need to know the acquistion rate for that data, what is the dt between data points.  Now feed that data into a for loop (auto-indexed) that feeds the data one point at a time to a waveform chart.  The loop would have a wait statement equivalent to your dT of the data.  Thus the loop runs at the same rate as you had acquired the data adding a point at a time to the waveform chart.

  • Can I add a LabVIEW graph in my C# or C++ application?

    I am using LabVIEW Full Development System 8.2 and I have the application builder. I would like to include a regular LabVIEW graph in my C# or C++ application. Is this possible somehow? I know LabVIEW can generate a dll from a VI, but can LabVIEW create, for example, an ActiveX or a .NET component from a VI?

    No, you should have Measurement Studio to do that.
    LabVIEW Portal

  • Excel & ActiveX: Insert arbitrary columns from 2D array and create graph problems

    Hi there,
    I want to insert data from either a 1D or 2D array from LabView into Excel and create graphs.
    I used the information from the following example:
    http://www.ni.com/example/28934/en/
    and was able to create a new Excel file (I'm using Excel 2010), writing data from an 1D array to a column in excel by creating a while loop and using the first element of the array to write it to a specific cell. I use the counter of the loop to write to the next cell when the loop starts over and always delete the first value, which I write to the cell, from the array until it is empty.
    Now I also would like to write a 2D array - so the first column in Excel should be the first column from the array and so. Here I cannot use the loop counter directly as Excel only counts 1,2,... for the rows, but uses A,B,... to count columns. Also I do not know in advance how many columns my 2D array will contain, so creating a lookup table like (A means 1, B means 2,...) is not really an option (except there really is no other way). Is there a possibilty to convert numbers into letters or some way to 'explain' to the program that column 2 in the array means column B in Excel for example, or is there a way to insert new columns?
    I figured out how to add new Worksheets and as I also need to create a certain number of Worksheets and I know that on standard 3 sheets are present when creating the file, I use the 'add' methode to create every new worksheets before worksheet 3 - I could use the same methode to create new columns in Excel, but so far I didn't find a methode to do so. Or is there a way to enter the whole 2D array at once?
    Then I'd like to create a graph (in case of the 1D arrays a bar plot, when using 2D arrays a 3D plot) to view the data. I found this example:
    http://www.ni.com/newsletter/51339/en/
    -> as I do not have the toolkit I'd like to do it using ActiveX directly, so I tried to do things like shown under the headline 'DIY ActiveX/.NET'
    I tried to load the snippet to a new Excel file but got the error message 'microsoft.office.interop.excel.dll not found' and hence the code is not working. That confuses me a little as I would guess when this dll is not present I cannot access Excel from LabView at all, though my understanding of what I'm really doing so far is quiet limited. ;-)
    Also - as far as I understand from the snippet - when creating a new chart object I should be able the create methodes for it, however when I do a right click on the chart object of an ActiveX Worksheet symbol there are none listed.
    To explain my problems better I added a snippet showing my two problems: The inner of the two while loops shows how I import a 1D array. In the outer loop I seperate the columns. I know that currently this is not working as all data end up in column A of the Excel sheet - so I would need to convert the number of the outer counter to A, B,... or find a different solution.
    Moreover on the snippet I placed an ActiveX Worksheet Property with the Chart Object - as I can see the difference to the Chart Object in the example code from the last link above is the color. However I'm not sure what that means and how to change/ solve this.
    And just to make sure - I know this way the VI does not run as the Chart Object is placed completely wrong - I just did it, so it is included in the snippet.
    I'd be thankful for any suggestions,
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    ExcelAreaScan.png ‏60 KB

    Hello everyone and thanks for the answers.
    I only have the LabView Student Edition available here - is the toolkit included in it too. How can I check if it is installed/ available and in case it is installed - where can I find it?
    Today I had time to take a look at the example
    Create via ActiveX Labview a XY Scatter plot graph on an excel sheet
    It almost does what I want in terms of creating a graph. The only problem I could not fix, is that in this example a sheet is created where only the graph is present. i'd like to add the graph to a previously created worksheet. Today I tried get this working but it seems I stilll don't really understand what I'm doing, I'll post a snippet of my code as soon as I can access the PC with LabView on it again.
    I also took a look at the other example for inserting 2D attays - it seems to be what I need, I just had no time so far to test it, I'll post an update when I could test it.
    Thanks for the help so far!

  • How can I include a Labview graph in a TestStand report?

    Hi All,
    I have a new need that I have never done before in TestStand. I have a Labview VI in which I am sending results to a graph.. I would like to include that graph in the TestStand report. I have searched the help and the forums and have come up empty. Any ideas out there as to how to accomplish this? Thanks in advance for any help.
    Troy
    Solved!
    Go to Solution.

    Raj - Thanks for the response and that solution does work. The problem is that the graphs that I am including are more elaborate than what TestStand is doing by default. Some of the graphs will have three traces on them to show spectral masks test with lower and upper limits. These graphs will also be used in reports and I would like them to show up larger, kind of like when you have a graph in Labview and you can use its reference to save it to an HTML report.
    Troy

  • Labview graph from excel data

    Hello,
    I need some help. I have data in excel The first column is a timestamp and the other columns are the data needed.and I am trying to get a graph with multiple plots with these data.
    attached here are the excel file and a labview file. In the labview file, the top part is an example I got from the forum, an interesting graph I am trying to follow.
    The bottow part is my tentative to extract the data from excel into array and try to use it. but I am stuck here. Any help please!
    Thank you,
    Agyna
    Attachments:
    graph.vi ‏13 KB
    Histo.xlsx ‏53 KB

    Hi agyna,
    I've saved xls file into csv and then i'm reading into labview and plotting the graph. Please check it this is what you need.
    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
    Attachments:
    graph.vi ‏18 KB

  • Graphing problem with two plots

    I know how to plot two graphs on top of one another but the problem I have
    is as follows. I have the spectrum of a certain noisy signal which has been
    averaged. I then change some conditions by pressing a button and the
    spectrum changes to something else. of course I can capture both of these
    graphically but really I want them both on the same graph - any ideas?
    The data is not available at the same time - would I have to store it
    somewhere in a buffer and recall it in some way? Picture a spectrum analyser
    where there are two channels - you take the spectrum on channel A and then
    store it. You then take the spectrum on channel B and do a comparison where
    they appear together - this is my problem in essence.
    thanks
    tom

    If both writes to the graph occur in the same loop ( just at different iterations), use shift registers. (See attached simple LabVIEW 7.0 example).
    If the writes occur in different parts of the diagram, Just write the first channel to a local variable of the graph, then later combine the two channels for the final graph.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    2Channel.vi ‏46 KB

  • Graph problem

    I have a silly problem with my program. I want to show four array-datasets on a graph in microsoft word. 
    With one array-dataset this program works ( picture 1) and when i want to show four array-datasets in the word graph, something goes wrong ( picture 2).
    Is there something wrong with my program (picture 3) ??
    Could somebody help me please???
    Best regards,
    PETER
    PICTURE 1: http://img275.imageshack.us/img275/1715/unbenannt4dl.jpg
    PICTURE 2: http://img275.imageshack.us/img275/6199/zeichnung10eb.jpg
    PICTURE 3: http://img275.imageshack.us/img275/2089/prog1hn.jpg
    Message Edited by PETER_AUT on 08-04-2005 02:36 PM
    Message Edited by PETER_AUT on 08-04-2005 02:37 PM
    Labview 7.1 on Windows 2000

    PETER_AUT wrote:
    I have a silly problem with my program. I want to show four array-datasets on a graph in microsoft word.  With
    one array-dataset this program works ( picture 1) and when i want to
    show four array-datasets in the word graph, something goes wrong (
    picture 2). Is there something wrong with my program (picture 3) ??   Could somebody help me please???   Best regards,   PETER     PICTURE 1: http://img275.imageshack.us/img275/1715/unbenannt4dl.jpg
    PICTURE 2: http://img275.imageshack.us/img275/6199/zeichnung10eb.jpg
    PICTURE 3: http://img275.imageshack.us/img275/2089/prog1hn.jpg
    Message Edited by PETER_AUT on 08-04-2005 02:36 PM
    Message Edited by PETER_AUT on 08-04-2005 02:37 PM
    I don't have the word report toolkit, so I'm guessing here:
    You send a 2D array to a subVI of the toolkit. In picture 1 the 2D
    array has 2 rows, X data in the first row and y data in the second.
    In picture 2 you have 8 rows, X data in row 1,3,5,7 and Y data in rows
    2,4,6,8 and obviously you want to plot 4 curves, row2 vs. row1, row4
    vs.row3 and so on. But the toolkit VI interprets the 2D array as 1 row
    of Xdata and 7 rows of Y.data and plots this correctly as shown in
    picture 2.

  • Labview graph

    Hello guys,
    Someone can explain the better way do plot a graph like the bottom one? The ploblem is the vertical "lines". Can Someone give me an idea?
    Thanks

    paulohp wrote:
    Someone can explain the better way do plot a graph like the bottom one? The ploblem is the vertical "lines". 
    "Better" implies a comparison. Better than what? How are you doing it currently?
    Does the image show what you want or what you currently get? What is the problem with the vertical lines, they look fine.
    Please explain!
    LabVIEW Champion . Do more with less code and in less time .

  • Irritating graph problem

    I have an X-Y graph that holds several datasets and has a cursor, locked to
    datapoints, that the user can drag around to get information on different
    datapoints and different datasets. The user can opt to hide a dataset to
    make the display clearer. In this case, if the datapoint the cursor is
    pointing to disappears from the plot, the cursor goes to (0,0) and has to be
    manually brought back by the menu option "Bring cursor to centre", which is
    a builtin function of the X-Y plot.
    I want to remove this manual step and automatically bring the cursor back to
    the centre. This should have been trivial- I assumed the "Bring cursor to
    centre" would be a method of the X-Y graph object. Not so. So I then read
    the new X and Y axis ranges aft
    er removing the data and I set the cursor X
    and Y to the midpoint of these. This doesn't work unless a datapoint exists
    at the centre of the plot. So first, I unlock the cursor and move it to the
    centre- this is fine. If I manually change the cursor lock mode to "Lock to
    point" it automatically jumps to the closest datapoint- good. However if I
    do it programmatically, it jumps to (0,0). Not good.
    This is obviously an irritating problem. I'm on 6.0- I've not had the time
    to backup and install the latest update, though I've not heard of this in
    the discussed fixes.
    I don't particularly want to have to locate the closest visible datapoint to
    the centre and programmatically move the cursor there- it's bound to be much
    slower than the builtin function if only I can get at it!
    Anyone done this?

    Hmm. Updating my installation to 6.0.2 doesn't solve the crash. Bug report
    submitted. I've attached here a simple VI demonstrating the problem that,
    when run, results in a failure at line 2361 in "graphcrs.cpp". Be
    interesting to see if it's a widespread thing or just my machine.
    If anyone's interested and didn't see the preceding messages, this is in
    discussion of KnowledgeBase article #1FNFHJE7
    Craig Graham wrote in message
    news:[email protected]..
    > Ouch.
    >
    > This certainly seems the case, however on 6.0 those properties are uints,
    > and wiring a -1 int to them in the hope the cast will do something
    > meaningful causes Labview to crash (in "graphcrs.cpp") when that part of
    the
    > code is executed. Nas
    ty.
    [Attachment GraphCrashDemo.vi, see below]
    Attachments:
    GraphCrashDemo.vi ‏26 KB

  • Play waveform graph problem

    hello,
    what i have is a waveform graph and i would like to play the waveform using the play waveform express vi.  my problem is the data type i am wiring into the express vi is not compatiable.  i understand the error, i just am not sure how to make it compatiable.
    you may ask why i don't just use the correct waveform graph.  the answer is that this waveform graph i have now is the result of filtering, fft, and ifft calculations and would like to get this graph to work and not change my previous work.
    thank you
    Attachments:
    playWave.vi ‏289 KB

    Hi,
    I think what you need to do is use the Build Waveform VI on the waveform palette. This 'bundles' the dt and Y array of values into the waveform data type which the graph and Express VI(s) will accept.
    I've done this for your data and attached the VI (this one is in LabVIEW 8.0 - let me know if you need it in an earlier version). I can hear the waveform playing on my machine (what IS it??   )
    For future reference, there are also 'From DDT' and 'To DDT' VIs on the Express->Signal Manipulation palette which can convert the Dynamic Data Type (the dark blue wire that goes into and comes out of the Express VIs) into waveforms, single numerics etc.... These may be useful if you want to work with Express VIs for analysis in future.
    Hope this is what you were after.
    Best wishes,
    Mark Lee
    Certified LabVIEW Architect
    Attachments:
    playWave.vi ‏292 KB

  • How to make my waveform from excel file perodic in labview graph

    Hi guys,
    Previously I've made a vi which integrates the excel file, to plot the graph values in labview using the values in the excel file to give the me a better flexibility to decide what waveform i want it to be. Can i know how to actually make the graph periodic, as in the waveform repeats,  because currently it can just plot out the waveform accordingly to the values i inserted in the excel. I've attached my vi and aso my csv file together. Thanks guy.
    Attachments:
    12.csv ‏1 KB
    graph.vi ‏18 KB

    So do you want to read the same values over again?
    If that is what you wish to achieve then use waveform chart as opposed to waveform graph. I editted your code slightly so that you can see the different.
    I hope this helps!
    Mehak D.
    Attachments:
    graph.vi ‏18 KB

  • One-to-many graph problem

    Hi,
    I am haviing a crystal report problem. The problem relates to a one-to-many relationship involving two tables.
    I have a similar setup to the following:
    I have 2 database tables: table1 & table2
    table1 consists of 3 fields:
    {id#}, {yes/no},{up/down}
    table2 consists of 2 fields:
    {id#},
    the field can contain any of the following values: 'open', 'closed', 'final', 'complete'.
    The problem is that there exist many states to one id#.
    I have a bar graph in my report that displays a bar for the count of the{yes/no} field and a bar for the count of the {up/down} field. I want also a bar for the count of when the field = 'final'.
    What happens when I write a formula for the field in the second table and place it in the 'show values' section of the chart expert, is the count displayed in each bar on the graph increases significantly. I am assuming this is because there are multiple records in table 2 for each record in table 1.
    What I want to happen is that the graph displays bar 1 and bar 2 correctly and then when I put in the formula for the third bar, it simply displays that bar with the count for when the field = 'final'. I dont want it to affect the whole garph.
    Has anyone got any suggestions on how I can do this?
    I have tried messing around with the distinct records setting in crystal and also by writing an sql query specifying DISTINCT keyword instead of using the select expert, but to no avail.
    Please please can someone help me with this issue.
    Thank you.
    J

    You can add a 1-1 query key through the code API in a descriptor amendment method. You could also define a selection criteria on the 1-m mapping to filter the type=2.
    Example: (see Foundation Library manual 8-17)
    OneToOneQueryKey queryKey = new OneToOneQueryKey();
    queryKey.setName("organization");
    queryKey.setReferenceClass(Organization.class);
    ExpressionBuilder builder = new ExpressionBuilder();
    queryKey.setJoinCriteria(builder.getField("ORGANIZATION.ORG_ID").equal(builder.getParameter("RELATIONSHIP.PARENT_ID").and(builder.getParamater("RELATIONSHIP.RELATIONSHIP_TYPE").equal(2)));
    relationDescriptor.addQueryKey(queryKey);
    Example: (of 1-m mapping with selection criteria)
    OneToManyMapping mapping = new OneToManyMapping();
    mapping.setReferenceClass(Relation.class);
    mapping.setTargetForeignKey("RELATION.PARENT_ID");
    ExpressionBuilder builder = new ExpressionBuilder();
    mapping.setSelectionCriteria(builder.getField("RELATIONSHIP.PARENT_ID").equal(builder.getParameter("ORGANIZATION.ORG_ID").and(builder.getField("RELATIONSHIP.RELATIONSHIP_TYPE").equal(2)));
    orgDescriptor.addMapping(mapping);

  • Creating trendline in labview graph

    Hi,
    does anyone know whether is it possible to create a trendline in labview's graph?
    kinda like in excel u can create a trendline but i want to do it in labview, is it possible?

    You can use the curve fitting functions to find a curve to fit the graph and then add it as a plot to the graph. Examples ship with LabVIEW on using the fit functions and on creating multiple plots for graphs.

Maybe you are looking for