Plotting XY graphs - with negative numbers

hi!
i have two arrays..
the array A and B
i connected the 2 arrays with XY graph, because i want to plot the data contains to the two arrays
the problem is that the XY graph don't plot the negative elements...
why??
thanks a lot!!
andrikos

These arrays were just indicators. You need to change the data itself. Easiest would be to insert "ToI32" after "boolean array to number".
Message Edited by altenbach on 04-06-2008 05:03 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ToI32.png ‏3 KB

Similar Messages

  • Plot 4 Graphs with only 2 legends

    Hi!
    I have a graph in which I want to put 4 plots of defined color and line width, but in the Legend I want to show only 2 of them.
    I tried to define the plots and scaled the Legend with the mouse to the wanted first 2 plots. Unfortunately this setting isn't saved, when I close and reopen the vi.
    Next try was to define the plots at the start with property nodes. But when I set "Legend: Plots Shown" to 2, it's not possible to setup the third plot.
    Anybody an idea for a solution?
    Thank you in Advance.
       Hendrik alias XS-er
    PS: I'm using LabView 8.0
    Message Edited by XS-er on 05-17-2006 02:39 AM

    Graphs only save settings for the plots they have default data for at the time of saving.  So, if the default data for the graph has four traces, it will save info for four traces.  If it only has one trace, it will save info for one trace.  If you need to save data for plots, a more robust solution is to set the values using property nodes on the graph in the initialization section of your code.  That way you won't lose them.  Note that you cannot set properties on a trace which does not exist.  You will need to preload your graph with the number of traces you are using (I think you can use zero length traces).  If you stop using one of the traces, you can lose the information at run time.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Flex 2 Stacked Bars with Negative Numbers?

    Hi guys, the strangest thing: I have a client requesting
    sacked bars for bar charts/column charts however, I can't seem to
    get the negative numbers to go below a positive x-axis.
    Do these bug logs suggest I need Flex 3?
    https://bugs.adobe.com/jira/browse/FLEXDMV-921
    https://bugs.adobe.com/jira/browse/FLEXDMV-1181
    and if that's the case, how will upgrading effect my current
    project?
    Thank you.

    Great, as in another thread defined and discused, i am
    a scripter, not a programmer, but i like oaying with math.
    Daves method is easy, but what about Random( -300,1200).
    that must be a huge array to initialize.
    my function has a restriction:
    it works only, if there is a zero in the range or you'll
    never get the highest number of the range. Also it can only have a
    linear range.
    Dave can input a list like this gRandomChoises = [
    1,3,5,7,11,13,17] , what can be very usefull in some cases.
    Cheers,
    Wolfgang

  • Apex 3.2 SVG Chart - How to plot Stacked Bar With Negative Values ?

    Currently Apex 3.2 Flash Chart (AnyChart 3.x) does not support Stacked bars with negative values.
    I try with SVG Stacked bars with positive values only, chart ploting works fine. When I add a new series with negative values (i.e -1) and I get a blank Chart region with no error.
    Based on this statement from Apex's documentation:
    *"AxisLine Indicates zero on charts that have negative values."*
    I appreciate your help on how to translate this statement into action ?
    (i.e how to override .Axisline class in CSS section ?)
    Thank you very much for your time.

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

  • Rounded corners BUT with negative numbers

    In illustrator it's very easy to round the corners of a rectangle. But what
    if you wanted to get the effect of a rectangle whose corners round inward
    instead of out. I've tried assigning a negative value to the rounded corner
    dialog box, but illustrator won't allow that. Would anyone know how to do
    this? It would be a great addition to illustrator to allow you to assign a negative value.

    Hi again,
    I tried with the FPGA_PID_LPFIR.vi and it works fine.
    There's no problem with negative setpoint.
    Attached file :
    This is a bit more complicated code since there's quadrature counter and SELECT in the pid loop.
    **I must point out the fact that there's a SELECT  between an int16 analog feedback and an u32 quadrature counter.
       I don't know if it can interfer with the int16 setpoint labeled in french "CONSIGNE_ENTREE"
       I can't do futher testing at this time because the FPGA is actually in production mode.
       But I'm setting up an other computer with the same model of FGPA (PCI-7833R) in order to investigate this problem.
    NICOLAS HUPPÉ,M.Sc.A, ing. jr.
    Groupe de Recherche PERSEUS
    Université de Sherbrooke
    Attachments:
    BIOMETISS_PID_LPFIR_FPGA.vi ‏2883 KB

  • Xy graph with negative values in another quadrant

    How do i represent negative values in another quadrant in a xy graph?

    Hello,
    another solution would be to use separate XY- Graphs and make them partially transparent as suggested in the attached VI. But then you have to ensure that the plot areas don't resize. I don't know whether this is much easier than using picture indicators.
    Greets, dave
    Message Edited by daveTW on 03-05-2007 01:41 PM
    Greets, Dave
    Attachments:
    quadrants.png ‏15 KB
    quadrants.vi ‏37 KB

  • Plotting of graph with more than 4000 data points in Excel

    Hi All,
    I am fairly new to labview world. I am trying to plot out line graphs of the results from my program into Excel worksheet. I have huge set of data points(10000) stored in each of 10 different worksheets in MS Excel workbook. I am trying to compile results into last sheet as graphical representation of all the various dataset into 10 different graphs.
    My problem is that I am getting error because MS Graph does not allow me to plot more than 4000 rows or datapoints. Is there better and cleaner way of programming this? Or if some one can provide an example of how to handle such case. I'll appreciate any help.
    My goal is to able to plot one set of data 1st then I will be able to run through various worksheets to compile into standalone results.
     ERROR MESSAGE: "Report Generation Toolkit: Graphs you create or edit in Microsoft Graph cannot contain more than 4,000 rows or columns, including row and column headers. "
    Also for example if we run Line Graph example and change the # of data points from 100 to 4000, we get same message.
    Error -41114 occurred at NI_ReportGenerationToolkit.lvlib:Excel_Insert_Chart.vi -> NI_Excel.lvclass:Excel Insert Graph.vi -> Line Graph (Excel).vi
    Thanks,
    Saurabh

    Hi Dennis,
    I am collecting waveform data from oscilloscope using labview in both data & graph format. So my program collects data for a particular operating condition & then saves the data on a worksheet. After it loads new operating condition & goes over same cycle. I have to save all the data points in excel for different use cases, which I am saving in different worksheet for each specific operating condition.
    Since I already have data saved in excel at the end of test, I am trying plot each use case in the same report for study & presentaion after tests are finished. I have not been able to do so. I read the post which you have mentioned, seems like newer excel or labview version have same issue. I am using LV 9.0
    I will try using decimation but if you have any better way of handling this problem, I'll appreciate if you can share that.
    Thanks for your help.

  • Modulus with negative numbers

    Slight problem using modulus. When I try to take the modulus of a negative number I get the original number back. An example is (-92%26) returns -92 rather than 12. Does anyone know a workaround??
    Thnx~

    In Java you can get two types of mod or remainder in the class BigInteger.
    BigInteger b_92 = new BigInteger("-92");
    BigInteger b26 = new BigInteger("26");
    System.out.println(b_92.remainder(b26).toString());
    System.out.println(b_92.mod(b26).toString());
    System.out.println(String.valueOf(-92 % 26));

  • Problem With Plotting a graph

    Hi,
    I need help plotting a graph.
    The situation is .... I have data of speed against time. Data is like this : a truck runs at some speed until 10 o clock. Now the driver changes time of the speed vs. time tracking device back to 9 o clock. Now if I plot this data it becomes a invalid graph as between 9 - 10 I will be having two values for the speed.
    I thought of a solution that when ever a time change occurs I will drop the speed to 0 and again start plotting the graph with next point on the scale of x axis with the new set time ...... Is this possible ? 
    Please help.
    Thanks and regards
    Anirudh

    Hi,
    Here is a photo of what I want to do with the graph.
    Here as the values that i am mappinng on x axis are repeated the graph is not one to one. Now to make it look like a one to one i want to drop it zero at the first 6. the restart the scale after 6 as 5 and continue mapping. Is this possible ?? ?? 
    Thanks and Regards,
    Anirudh.
    Attachments:
    tr1.JPG ‏113 KB

  • Plot excel data onto X-Y graph with time stamp

    Dear all, I have the same set of data but it is saved in excel format instead of text file now. However i think the column data are separated by tab, i have tried to write some codes but it dont seem to plot out the graph properly. I have no problem ploting out data in text file but not this excel file. Can anyone help out to plot this graph with timestamp?
    Attachments:
    test4.txt ‏1 KB

    I still don't understand your comment 'I have no problem ploting out data in text file'. The Read From Spreadsheet by default uses a tab separator so you should have no problem reading the file. Post the code you have already written so someone can see where your problem is.

  • Negative Numbers importing wrong

    I have a Stored Procedure on my SQL Server 6.5 DB that returns a list of decimal values (sql datatype is decimal(5,2)), of which most are Negative numbers. When the procedure is run in a SQL tool (MS Query or ISQL) the values are returned correctly. When the stored procedure is called in Java, all values (negative or positive) are showing up as zero.
    I have tried all of the following ...
    double d = rs.getDouble(1);
    Float f = rs.getFloat(1);
    Double d2 = new Double(rs.getDouble(1));
    BigDecimal b = rs.getBigDecimal(1);
    String s = rs.getString(1);The value returned by the procedure should look something like -14.75 but when using System.out.println(f.toString()); it is shown as ".00". I have even tried exporting the data out of Java into MS Excel to see if it is just something funny with the System.out.println() statement but it shows all zeros in Excel also.
    Is there anything special or a specific data type that must be used for negative numbers to read correctly in Java? I've searched the forum, tutorials and API (1.3) and haven't found anything like this.
    Any help would be greatly appreciated!!!

    So why do you say the error has something to do with negative numbers when (in your own words): "all values (negative or positive) are showing up as zero"? I don't know what your problem is, but negative numbers probably ain't it.

  • How to plot XY graph from 2 input of dynamic array ? ...

    I have 2 problem when I plot XY graph with 2 dynamic array :
    - I want to make the graph look like sweep chart. But it's seem not possible to use waveform graph?
    - The graph shoul move from left to right , then right to left, then left to right,.....
    Any one can give me some hints?  Thanks alot.
    Attachments:
    U1.PNG ‏21 KB
    XY radom value input.vi ‏147 KB

    I have to make Y change  from 0-10, then 10-0,.... Any one can help me to make it better?
    - How I shift the graph?
    Attachments:
    working_increse_decrease.vi ‏20 KB

  • Iam using a table in numbers to plot daily graph lines. If I fill a cell with a text box  at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is tho

    I am using a table in Numbers to plot daily graph lines. Mood swings of how I am on the day, i"m a depressive.
    If I fill a cell with a step box at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is there a work around. so thatbgraph only plots on the day?

    The answer is (sort of) in your subject, but edited out of the problem statement in the body of your message.
    When you use a stepper or a slider, the value in the cell is always numeric, and is always placed on the chart if that cell is included in the range graphed by the chart.
    But if you use a pop-up menu cell, you can specify numeric or text values in the list of choices for in the menu. Numeric values will be shown on the chart. Text values will not.
    For the example, the values list for the pop-up menu was:
    5
    3
    1
    Choose
    -1
    -3
    -5
    The first pop-up was set to display Choose, then the cell was filled down the rest of the column. Any text value (including a single space, if you want the cell to appear blank) may be used instead of Choose.
    For charts with negative Y values, the X axis will not automatically appear at Y=0. If your value set will include negative values, I would suggest setting the Y axis maximum and minimum to the maximum and minimum values on your menu list, rather than letting Numbers decide what range to include on the chart. Place a line shape across the chart at the zero level, and choose to NOT show the X axis.
    Regards,
    Barry

  • How to make a compass graph with Numbers?

    Hi, I did a search for compass graphs and there are a few excel examples, do you know if there are any Numbers, versions, and user friendly ones at that. As I am not a mathematician. Basically I am plotting the frequency of doorway directions to compass points, e.g. N, NNW,NW,W, on a bar chart, but the paper I am comparing it to, has used a compass graph, with the freqency as longer lines eminating from the compass point depending on the number of doorways.
    The directions could be input as degrees if required. Any help appreciated

    Hi Nanouk,
    A compass graph would certainly be appropriate for this data, but that chart type is not available in Numbers.
    You can fake it with a little work, though.
    Arrange the data in pairs as shown. Note that the values in column C are expressed as negatives.
    Create four Stacked Bar charts, one from each data pair. You will need to click the three bar icon that appears at the upper left of the selection to change it from horizontal to vertical. That makes Numbers consider the pair as parts of the same series, and stack the two bars.
    Open the Chart Inspector and for each chart, remove everything except the actual bar, and for now, the Label on the X axis (if this helps identify which graph shows each pair). Set the Y Max to the maximum expected value, Steps to 1 and Y Min to the negative of the Max value. Use the Pen and Fill controls in the Toolbar to set the Fill colour to None and the Line to None.
    Switch to the Metrics Inspector (ruler icon) and set the size of each chart to the same values (I used 0.5 wide and 4.88 high (with Max Y set to 10).
    Drag (or use the arrow keys, with or without the shift key) the four charts into place.
    Add as many circles (from the Shape button—be sure to set Fill to None) as you want and drage them into position.
    I left the bars in the default colours to assist in lining them up correctly. Those colours can be changed by clicking on the individual bar, then using the Fill well.
    Too fiddley? You could just dump the data into NeoOffice and use that to create a Compass chart.
    Here's one produced from the same data set.
    Graph from NeoOffice (same data, in single column, all positive values).
    Regards,
    Barry

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

Maybe you are looking for