XY graph manipulation

I am plotting an XY graph (X for time and Y for an amplitude). As i plot this graph the whole set of points are presented.
I wish i could present the graph, reducing the X axis width(10 seconds width) and iterate to plot 10 sec to 10 sec(segments of 10 seconds).
one problem is time values are not spaced uniformaly.
could do give me some hints?
thank you,

Hello Guillaume,
Thank you for contacting National Instruments.
Are you plotting the data as you acquire it in real time? Or is this data that has already been collected and you just want to plot it in 10 second increments?
If you are acquiring and plotting your data at the same time, you can use a waveform chart with the X-Axis set to absolute time format. In waveform chart properties, select the Format and Precision tab >> select X-Axis from the pull down menu >> select Absolute time from the menu below.
Then select the Scales tab >> select X-Axis from the pull down menu >> deselect the Autoscale box >> set Minimum to 0 and Maximum to 10.
The chart will now automatically scroll as points are plotted, but will stay 10 seconds wide.
If you would like to segment a currently existing array into 10 second increments, you will have to use some array functions (such as Threshold 1D Array) to split the array when the time stamp passes a 10 second mark.
If this does not help, I would be glad to take a look at your code.
Sean C.
Applications Engineer
National Instruments

Similar Messages

  • Crash in jvm.dll: Object.clone()

    I'm working on a desktop app that sometimes runs cpu- and memory-intensive graph manipulations. We just saw the following error. I don't like to assume that I've found a JVM bug, but of all the explanations I've thought of so far that seems to be by far the strongest.
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d8fe397, pid=4680, tid=3752
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode windows-x86)
    # Problematic frame:
    # V  [jvm.dll+0xfe397]
    ---------------  T H R E A D  ---------------
    Current thread (0x4b8ec800):  JavaThread "Precomputing action graphs" [_thread_in_vm, id=3752, stack(0x4e4b0000,0x4e8b0000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x80000068
    Registers:
    (cut)
    Top of Stack: (sp=0x4e8af53c)
    (cut)
    Instructions: (pc=0x6d8fe397)
    0x6d8fe387:   eb 0b df 2c c8 df 3c ca 83 e9 01 7d f5 8b 57 04
    0x6d8fe397:   8b 42 68 89 45 0c 8b 4d 0c 89 0f 8b 15 34 06 a3
    Stack: [0x4e4b0000,0x4e8b0000],  sp=0x4e8af53c,  free space=4093k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0xfe397]
    J  java.lang.Object.clone()Ljava/lang/Object;
    J  com.fairisaac.....cloneArrayListofShortArray()
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x4b6eac00 JavaThread "Thread-13" [_thread_blocked, id=4064, stack(0x4ee00000,0x4f200000)]
    =>0x4b8ec800 JavaThread "Precomputing action graphs" [_thread_in_vm, id=3752, stack(0x4e4b0000,0x4e8b0000)]
      0x4b780800 JavaThread "prefuse_ActivityManager" daemon [_thread_blocked, id=4196, stack(0x4c8f0000,0x4ccf0000)]
      0x4b804000 JavaThread "Thread-5" [_thread_blocked, id=1488, stack(0x4f200000,0x4f600000)]
      0x4b855800 JavaThread "Swing-Shell" daemon [_thread_blocked, id=4328, stack(0x4d0e0000,0x4d4e0000)]
      0x002a7000 JavaThread "DestroyJavaVM" [_thread_blocked, id=6124, stack(0x008c0000,0x00cc0000)]
      0x4b6d7800 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=804, stack(0x4c280000,0x4c680000)]
      0x4a56f000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=260, stack(0x4be80000,0x4c280000)]
      0x4a513000 JavaThread "TimerQueue" daemon [_thread_blocked, id=5028, stack(0x4ba80000,0x4be80000)]
      0x4a447400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5108, stack(0x4adf0000,0x4b1f0000)]
      0x4a4bd000 JavaThread "AWT-Shutdown" [_thread_blocked, id=2516, stack(0x4a9f0000,0x4adf0000)]
      0x4a4a6800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6108, stack(0x4a5f0000,0x4a9f0000)]
      0x48e15c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5896, stack(0x49f20000,0x4a320000)]
      0x48e0f800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4496, stack(0x49ed0000,0x49f20000)]
      0x48e0e000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2180, stack(0x49ad0000,0x49ed0000)]
      0x48e0cc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2468, stack(0x496d0000,0x49ad0000)]
      0x48dfc800 JavaThread "Finalizer" daemon [_thread_blocked, id=5300, stack(0x492d0000,0x496d0000)]
      0x48df7c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=4656, stack(0x48ed0000,0x492d0000)]
    Other Threads:
      0x48df2c00 VMThread [stack: 0x48e80000,0x48ed0000] [id=1776]
      0x48e20000 WatcherThread [stack: 0x4a320000,0x4a370000] [id=4820]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 72576K, used 40121K [0x02d40000, 0x07c00000, 0x07c00000)
      eden space 64512K,  50% used [0x02d40000, 0x04d38588, 0x06c40000)
      from space 8064K,  91% used [0x07420000, 0x07b560c0, 0x07c00000)
      to   space 8064K,   0% used [0x06c40000, 0x06c40000, 0x07420000)
    tenured generation   total 967936K, used 420542K [0x07c00000, 0x42d40000, 0x42d40000)
       the space 967936K,  43% used [0x07c00000, 0x216af9f0, 0x216afa00, 0x42d40000)
    compacting perm gen  total 16896K, used 16857K [0x42d40000, 0x43dc0000, 0x46d40000)
       the space 16896K,  99% used [0x42d40000, 0x43db64e8, 0x43db6600, 0x43dc0000)
    No shared spaces configured.
    VM Arguments:
    jvm_args: -Xmx1024m -Xss4096k -Djava.util.logging.config.file=logging.properties
    java_command: com.fairisaac.ruleviz.demo.Application -triad -datadisplay -edit -reorderable -comparable
    Launcher Type: SUN_STANDARD
    ---------------  S Y S T E M  ---------------
    OS: Windows XP Build 2600 Service Pack 2
    Memory: 4k page, physical 2097151k(1247624k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Client VM (11.0-b15) for windows-x86 JRE (1.6.0_10-b33), built on Sep 26 2008 01:00:43 by "java_re" with MS VC++ 7.1

    inferno0069 wrote:
    Thanks, but I'd already found that out from the first search I did.
    We have no JNI code. I am pretty certain that no library we use has any either, though if you have a 100% way to verify or enforce that, it could be helpful.
    Short of parsing class files that isn't possible. A library might use a OS library so you can't just look for a shared library.
    Assuming I'm right in that last paragraph, is it more likely that we found some sort of bug in Sun's native code (maybe already discovered?) or that there was a hardware failure (e.g. bad memory / CPU produces wrong bytes)?Or software on the system that is causing it. Patches in the wrong order, bad patches, corrupted, etc can cause it.
    >
    Is there a different part of hs_err_... that I could post to make answering these questions easier? The full thing didn't fit because of the character limit on this forum.An actual VM bug with a crash is only 'solvable' by creating a bug and attaching the crash file.
    Posting it here is unlikely to produce a solution.
    A solution is unlikely to show up soon via the bug nor the forums. If you have a sales/support contract with Sun that might lead to a solution.
    If you don't have that then your only choice is to use log files to determine where the crash occured, and then try different code to see if it goes away.

  • Manipulating text in 'graph items'

    Does anyone know if there is a way to manipulate the text in 'graph items' through applescript?
    In particular, I have a dynamic graph in Illustrator that I am updating through xml and applescript ... it works fine, but everytime I update the graph, the graph's text reverts to a font and size I do not want.
    Cheers!

    Good evening,
    Try to use paragraph styles and characters styles for the layout of your graph.
    Patrice

  • Image processing from .txt file onto an intensity graph

    I am doing a mini project in my class and I was wondering if anyone could help me. It about image processing but I am bit stuck.
    Heres the idea:
    "An image is really nothing more than a 2D array of data. The value of every element in the array corresponds to the brightness of the image at that point.
    In this project you will create a VI which loads a 2D array of data and then displays it on the screen using the Intensity Graph. Three example files (boats.txt, gordon.txt and parrot.txt) are available on the module webpage that you can use. However, you can also use any other black and white image you like, but will need to convert it to a “text image” first. To do this you can use some software called “ImageJ” which is available on the computers and is free to download.
    You can vary the brightness of an image by adding the same value to every element in the array.
    The contrast of an image is adjusted by multiplying every element in the array by the same value. Using numerical controls and simple array mathematics, you should adjust the brightness and contrast of your displayed image.
    Some other ideas that you could try with image manipulation are:
    o Invert an image (change black to white and white to black)"
    First I am having problems putting my picture onto the graph. It is in the write file but the colours are not correct and the image has rotated 90 degrees. I will upload my VI so far when I get back onto my computer.
    Would really appricate the help! Thank you for reading

    Hi charlthedancer,
    Here is an example to get you started.
    Kind regards,
    GajanS
    Attachments:
    Test.vi ‏14 KB

  • How can I use or convert a imaq image to plot images back on waveform graph

    Hi
    I am currently opening and manipulating (rotate and resize) a PNG image using IMAQ Vision in LabView 8.2.1 This works well and I can display the Image on the front panel using a IMAQ Image Control.
    In addition to this I would now like to display the image as a background on waveformgraph. I can do this with the original PNG file by reading it and then flatten it to a pixmap ie make it a Picture but this is of little use as I need to use the manipulated IMAQ image.
    Therefor I would like to know how to convert the manipulted IMAQ Image to right Picture Format (without resaving) in order to use it on the PlotImages.Back property node of a wavefrom graph.
    I very much welcome your suggestions as I feel it should be easy yet can not seem to solve it. Thank you for your time!!!

    Hi Randall
    Apologies for replying somewhat late but I have been out of the office for a few days.
    Your suggestions and code helped me greatly and led to solving my query so thank you for that.
    There is one more thing (well many many more but I will place new posts for those  however that you might be able to answer for me.
    Following your suggestion to use the image to array function I searched through more examples and found the code that did exactly what I wanted to do. Please see attached.
    In this code a For loop is used to add 65793 to the color table. It works very well but I do not know why it is used exactly. Can you exlplain? I also realize I never made it clear that I use grayscale PNG files rather then color images.
    Thanks again for your excellent help, it is much appreciated.
    Attachments:
    IMAQ_8-bit_to_picture v1.vi ‏15 KB
    Test Image.png ‏42 KB

  • XY Graph Won't save to JPEG when Black and White...and run from TestStand.

    I am creating an XY graph and manipulating the colors of the plots, background, etc.  I am saving this graph to JPEG using the Write JPEG File vi and after it is saved I import it inot a test report.  This works fine in color, but when I create a B&W plot, it won't save to JPEG.  Let me clarify:  It won't save to JPEG when I run the VI from TestStand.  It does save to JPEG when I run the VI as a stand alone application in LabVIEW. 
    Problem:
    Run VI from LabVIEW ~ Saves the JPEG in both Color and B&W.
    Run VI from TestStand ~ Saves the JPEG in Color, but does not save the JPEG in B&W.    
    Here is how I am making all the plots and background B&W in my code:
    Change all Active Plots to Black using property node.
    Change all Active Cursors to Black using property node.
    Change the Plot BG colors (major/minor grids, etc) to lighter colors using property node. 
    Does anybody have any suggestions? 
    Thanks in advance,
    Mike

    A few questions: What version of LV are you using? How are you getting the control image that you are sending to the JPG? Third what exactly happens when you try to save the B/W image under TestStand? Error?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can you change the Graphs Colors in BEx Web Analyzer?

    Dear All,
    I have few queries I have developed via BEx Query Designer which I am opening from BEx Web Analyzer in portals. Unfortunately the colors in the Graphs are not very pleasant. I was wondering if there is a way we can customize the colors which is given by the standard.
    I am aware that we can do this is BEx Report Designer. But I would like to do this is BEx Query Designer.
    Please help..
    Cheers,
    Shanka

    Hi Shanka,
    There is no option as such in BEx Query Designer.
    You can manipulate and play with colors only in Report designer or Web Application Designer.
    In Bex Query designer, you will find only exceptions which are related to colors but chart colors cannot be manipulated in query designer.
    If you are executing the report in workbook, you can change accordingly as it is excel.
    Regards,
    KK.

  • Fade colors of intensity graph

    Hi everyone,
    I've made a program where I read an 2D-array and plot this array in a intensity graph.
    I was wondering if the colors in the graph can fade in each other, preferably in vertical position (columns). The idea is that the numeric data becomes visualized like a DNA profile.
    I've added a image of the plotted graph.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Intensity graph plot major.PNG ‏48 KB
    Intensity graph plot minor.PNG ‏35 KB

    Without manipulating the array, no it's not possible.  I made an idea on the Idea exchange to fix this, I recommend you vote for it.  Anti-Alias or Smooth Intensity Plot
    Like the idea says, see this post for workarounds.
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect

  • How to get y axis value(in a numeric control) by providing x-axis value using wave graph

    Hi,
    I'm new here, Sorry if i have selected wrong Location.
    I want to get Y-axis value (in a numeric Control) by providing X-axis Value using Wave graph.
    i want to do calculations with the obtained value.
    i have attached File and Snapshot.

    Well, you are using the Dynamic Data Type, which I almost never use, but if you convert the data to a WaveForm (using From DDT on the Signal Manipulation Palette, which is a choice when you right-click on the DDT Wire), you should be able to do this.  Do you know about how Waveforms are stored?  They are a Cluster, with t0 being a TimeStamp for the start of the Waveform, dt being the time step, and Y being the samples.  So if you want a point at 0.5 seconds and dt is 0.001, you would pull out the point at Index 499 (offset 0) from the Y array.
    Bob Schor

  • Read csv file to graph?

    Hi! there.
    Can anyone help me?
    I made a csv file from DAQ mx.
    This file Format is
     date(ex: 2007-09-16 11:40:32),data1,data2.... date(ex: 2007-09-16 11:40:32),data1,data2....
    I want to draw this file to X,Y Graph or Chart.
    But I can't convert this into 2D array.  When I covert this into Date by using read from spreadsheet file .vi, Date is converted like this 2007.000
    How can I do that?
    Could anyone infrom me about this solutions?
    regrads.
    Kevin.

    smercurio_fc wrote:
    Also, you should not be basing the location of the path to read from the location of the VI. You should use a file path control because:
        (a) You cannot assume the file to read is in the same location as the VI
        (b) If this VI is build into an application the path will be different.
    Yes, if you built an application, the relative path will be different. Also, if the application is properly installed in the "program files" folder, there will be potential problems in windows Vista if you want to write there.
    Still, in a simple development environment it is often convenient to keep data next to the VI in order to test code, so relative paths make sense. Here's the (near) equivalent code to whatever you constructed with the while loop.
    It is very important to never (!!!) use path-to-string and string-to-path when manipulating paths, because it will immediately break the code on a different platform (windows, mac, linux). You should use "strip path" and "build path" exclusively! Paths should never exist as strings, just a paths.
    Small differences:
    In this particular case you need to ensure that the "sub folder" control is not an empty string or you get a <not a path> as output.Your code would just ignore the subfolder.
    Your code also requires the sub folder control to end in a "\", while my alternative only needs the name. If you don't end it in a "\", the subfolder will be merged with the filename.
    Exception:
    The only place where path-to-string and string-to-path should be used os for OS specific tasks, such as forming a commandline for "system exec".
    Message Edited by altenbach on 09-17-2007 09:04 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    changePath.png ‏4 KB

  • Graph scale updates on tabs

      We have a program with several tabs, each of which has different graphs and displays.  On one of the tabs is a histogram style bar graph.  We've added annotations to each bar to label each bar with a particular identifier.  The graphs are set to autoscaling, so first we write the data to the graph with a "Value" property node, then read back the graph's YMax value and use that to help calculate where to put each annotation.  (We typically put the annotation above the bar, but have to limit it to less than the YMax value so it stays on the graph.)  Works fine, as long as the graph's tab is displayed.
       So now you're displaying a different tab and put new data into the system.  Then click to the aforementioned tab.  The new data is displayed, and the graph is properly auto-scaled, but the annotations are out of place.  The YMax that was used to calculate their maximum y position was the graph's YMax from the last time it was displayed.
       What appears to be going on is that the graph's display isn't completely updated when LabVIEW knows that the graph isn't visible.  When you later make the graph visible, LabVIEW appears to have instantly autoscaled it correctly, but the YMax value that was available when the annotations were being created isn't the YMax that would be expected from the new data.
       Our work-around is to use the maximum Y value of the data.  For autoscaled graphs, this is usually pretty similar to the YMax of the axis, but not exactly the same.
       Does anyone have any insights or other ideas?  (Synchronous display didn't seem to help.  And we couldn't find any other property nodes that might be relevant.)
    Thanks,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    DaveT,
    This may be a complete hack/abomination, but if you are prevented from manipulating your graph if the tab is not visible, you could use an Event Structure and handle the tab's Value Change event.  Update your graph within that event.
    -cb

  • Bex Web Ad-hoc Analysis Template - Displaying both Data and Graph Tabs

    Hello Everyone
    I am asking this as I would not have belived this if I hadn't seen it for myself. I was showing somone a BW report using the standard Bex Ad-hoc analysis on the Web. They managed to display both the data analysis tab and the Graphical display tab on the same page, with the data at the top and the graph underneath. I could see that both of the tabs were highlighted at the top. It was great because as you manipulated the data in the navigation block, the graph changed at the same time.
    I have looked in all my documentation and I have not found anything.
    I have tried to replicate what this user did, but cannot. I have tried all the usual things like Shift control and alt, but it doesn't work.
    Does anyone know how to do this, because the user loves it and I cannot explain to them how they must have done it!
    Points will be awarded for the successful answer!!
    Many thanks to you all
    Gareth

    Thanks Andrew
    I am glad you understand what I mean, as I thought I was seeing things when I saw it!
    I feel I am so close to the answer, but when I do the drop down on the Graphical display tab for "display as" it only gives me the options
    Column Chart
    Line Chart
    Pie Chart
    Bar Chart
    Stacked Bar Chart
    Do I need to do something else, or I am I in the wrong part of the report and I am running BW 3.5.
    Thanks for your reply so far
    Gareth

  • How to convert the graph to gray scale

    Hi
    I am using MS 1.1 version, I need to take the print of the graphs which is provided by NI. The problem here is that i need the GUI to show the graph in multicolor environment, but when i am going to print it on a paper, i should be able to convert into gray scale. Can you kindly suggest me what should be done to achieve this?
    Is there any features which present in MS which can help an user to decide this conversion at run time.
    Thanks & Regards
    Sandy

    Hi Sandy,
    I hope you are doing well today! What is MS? You should be able to use the invoke nodes of the graph controls to export an image and do some manipulations to it. Can you be more specific as to what you want to do and what kind of programs you are going to use?
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How to merge graph categories?

    Greetings Mac community,
    I've got a question about bar graphs in the iWorks Numbers (3.0.1). 
    I'm creating a monthly expenditure table, with date on for rows, quanities and quanities for colomns. I'm trying to use bars to graph it, and have set the X-axis to represent qualities of expenses, and have the Y-axis for quantities.  The issue I'm running into is that qualities are graphed individually, so RSRCH appears each time I research.
    I'm curious as to if these graphs are "smart" enough to recognize similar values, merge catagories, so that I get a broader picture of how expenses are related.
    Any ideas?
    Thanks for your time, wish ya the best.

    BM,
    No, the Charts do any manipulation of data for you. Charts will autoscale for Max and Min axis values. Pie Charts will figure percentages. The rest is up to you in the table the chart is referencing.
    Jerry

  • Waveform Graphs: Is there a way to save data to a file and then clear the graph after each run?

    This is just an added feature that I would like to insert because I end up having to erase the previous graph(for viewing and simplification purposes) after almost every plot cycle. Does LabVIEW 7.0 have a built-in feature that allows the user to automatically clear the graph after each run.
    Thank you,
    Keith Blackwell

    May I recall you that to clear a graph you have to create a property node,
    choose value and connect an 1D array with its first value to zero.
    Then using a Select vi enables you to choose from clear or graph value.
    Gérard
    Gérard Férini
    Switzerland
    http://home.tiscalinet.ch/gferini/
    remove -move to reply personally
    "Greg McKaskle" wrote in message
    news:xEmJc.43762$[email protected]..
    > > I went into the function pallette-->signal manipulation-->align and
    > > resample
    > >
    > > and found something that may be useful, but I'm not sure how to use
    > > it. I guess I have to play around with it by trial and error. Was this
    > > the VI seetting that you were referring t
    o?
    > >
    >
    > The option I was talking about is for the entire VI. It resets the
    > value of all indicators prior to running. The setting is located in the
    > VI Properties dialog on the execution page I believe. In the end, there
    > are multiple ways to get this to work, and if you want just a few
    > indicators to be reset, you want to use locals or control methods, but
    > th eVI Properties is a convenient way to get all indicators cleared at
    once.
    >
    > Greg McKaskle
    >

Maybe you are looking for

  • Reg error in Javascript

    Event I used - *Formready default path given by ALD  - data.BodyPage.SF1.ITEMS.DATA :: ready:form - (Javascript, Client) - And i  had written following code var data1; data1 = "Total" if ( xfa.form.data.BodyPage.SF1.ITEMS.DATA[*].XBLNR.rawValue == da

  • Latest Javadocs on oracle.ldap not up to date

    I'm having a problem with the ldapclnt9.jar that comes with JDeveloper 9.0.5.1 The javadoc posted here: http://download-east.oracle.com/docs/cd/B10464_02/manage.904/b10423/index.html are not up to date (even though it shows 10g(904)). The oracle.ldap

  • Flash Player streaming video keeps freezing while audio continues

    Hi, I have been having a problem with flash player for a couple of months now. When watching streaming video's the video will freeze for a second every 5-10 seconds constantly, but the audio continues uninterrupted. I have tried everything, enabling/

  • What does Single-App plan for Creative Cloud include?

    I've just completed my first year with Creative Cloud, paying for the introductory subscription.  The only App I ever use is Photoshop.  If I move to a Single-App plan do I still get to use TypeKit inclusively with my subscription? Thanks Matt

  • Unable to turn on my Tungsten C outside the cradle. Automatically goes to reset.

    My Tungsten C keeps resetting itself. I get it all setup with my addresses and datebook complete and I can turn it on and off properly for a little over an hour. After that, when I turn it on the screen is dark. When I put it back in the cradle I can