Problems in plotting wave in waveform graph

I am trying to plot the wave in wavefrom graph. So to plot the graph i tried to bundle the values that i am getting as per the context help of waveform graph VI. Now according to VI i should have x & delta x value in double 64 bit real format, y should be in wavform data type (y array) (as i want to plot single plot). But the values that i am having, x value in 1D array double 64 bit real format, y value in 2d array double 64 bit real format from my VI named as "Agilent 36570 lvlib.Data Coord Trans Data.vi". I got this VI by adding the driver for Agilent DSA hp 35670A. But finally when i tried to connect the wire from cluster out terminal to input terminal of graph VI its showing error. I have also attached the snapshot of my error so as to clarify my problem. So how should i get rid of this problem.
Thank you. 
Attachments:
Query_2.png ‏29 KB

A wave form is not like plotting points on an x-y graph. A 1 dimminsion array is a waveform. But we usually want to look at the wave form over time. You have to set two additional values for the waveform.   It is a start time (T0) a sample frequency (delta T) in seconds and the the sampled points of the measured signal.  (1-D array of values)  This will display the waveform vs the correct time . To plot 2 or more signals make the array a 2 dimension array. See attached example vi . 
Attachments:
Graph.vi ‏18 KB

Similar Messages

  • How do I determine the number of plots on a waveform graph?

    How do I determine the number of plots that have previously been plotted on a waveform graph? I am loading dynamic data from a file. If I convert to an array and size it and there is only one plot, I get the number of data points and I don't know how to tell the difference.

    Usually by reading the graph terminal or a local of it and determining the first or second dimension (not sure which at the moment) size of the resulting 2 dimensional array. If it is a 1 dimensional array you have either only one plot or an array of clusters each representing one plot. But as these data types are determined by compile time, there shouldn't be a problem with this causing ambiguity.
    Rolf K
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problems graphing FFT of sine wave with Waveform Graph

    I know that this type of question has been posted
    many times, so I apologize for posting a similar one. Unfortunately,
    after reading quite a few threads I still have a question or two.
    Basically, I need to use a Waveform Graph (not an XY graph) to graph
    the magnitude of an FFT of a sine wave. I can't figure out which VI I
    should be using to obtain the magnitude of the FFT. I think I'm using
    the proper FFT vi (just the regular FFT.vi), but I can't find a VI
    dedicated to magnitude. Of course, I could be misinterpreting the
    pseudocode which I am following.
    If you
    wouldn't mind taking a gander at my VI, I'd appreciate any input you
    might have. The pseudocode is contained in the block diagram. You
    can see that I have another graph for just the sine wave, and I think
    that works as it should. I'm primarily concered about the waveform
    graph which isn't currently connected to anything, but should
    eventually be hooked up to the FFT.
    Thanks!
    Attachments:
    Labview5.vi ‏199 KB

    Your problem is that the output of the FFT is an array of complex numbers. Take the magnitude and you will be able to plot it.

  • How can I programmatically remove a selection of plots from a waveform graph?

    I have a waveform graph to display a number of plots, which I need to programmatically add and delete to as selections of data are chosen by the user for display.
    I've looked under the VI Server Property node and cannot see anything suitable for adding extra plots, or removing existing plots. I expected to see a Plot Data array variable, with each element containing the data for each of the plots on the graph. There is such an array for the annotations, which I can easily edit by Removing Subset for Array, or Insert into Array, but nothing for the plot data. The Value property is a Variant, which I'm unsure how to handle. Should I be working with this perhaps? Can this be done by creating a Local Variable read node? Or am I missing something simple here??
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    Hi Mike,
    I was trying to use the Property Node (Value) to read the waveform graph, but I was getting a Variant type back, not a 2D array of DBLs as I expected. Turns out I was passing the graph control reference to a subvi whose control refnum had the Include Type flag unchecked. As a result of this explicit definition, Value was of an uncertain (undefined) type and couldn't be natively provided. It would have had to have been cast into a more specific type to work. Have solved the problem by ensuring all my references are of a strict type, and now (as you recommend) the Property Node (Value) is useful
    Many thanks for the response!
    And many thanks for the demo too! You put that together remarkably quickly!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Add plots to digital waveform graph programmatically

    Hi Guys,
                This might be an easy one but I can't seem to find the right property. I'm adding "Plot Name" values for a each Plot in a Digital Waveform Graph. I select each plot with "Active Plot" property and name it. However if there are already e.g. 7 plots and I try to set eight plot active (i.e. 7 = Active Plot) I get an error cause this eight plot doesn't exist on the graph, and so can't be named.
        How can I add (or indeed remove) plots using property nodes?
        Thanks

    Hello,
    One thing to consider is the actual data the graph is receiving.  Choosing plot 8 in this case is perhaps attempting to choose a plot which doesn't exist in the data, which could be why you're seeing the error.
    Off the cuff, one thought might be to have the following "steps" take place when you want to add plots:
    on the appropriate action to create a plot, create a default data set representing that plot
    package that with your overall graph data so that the new plot exists in the data
    write that data to the graph, perhaps using the Value Signaling property (via a property node linked to the Graph)
    trap the graph's Value Change event using an event structure (possibly in a parallel loop) and update the plot name there (much like you are today - using a property node to first set the active plot to <previous value + 1> since you just added a plot, and then set your new plot name)
    Not sure what the rest of your application looks like, but hope this helps!
    Best,
    JLS
    Sixclear

  • Problems with Waveform Graph

    When I add a Waveform Graph into the Front Panel, the Block Diagram Window shows it as DBL instead of the usual indicator for the Graph. How can I solve this problem?
    Attachments:
    Question.vi ‏9 KB

    I don't see what the problem is. The default waveform graph type is an array of doubles and that's what your diagram has. If you create a waveform data type and wire it to the indicator, it will change the graph's icon.

  • Cursor name position in Waveform Graph

    I lost the cursor name in the waveform graph, after programmed the cursor positions.
    I enabled 3 cursors, shown the cursor names, and programmed their positions in my VI. After running the VI, all cursor names are gone. I believe they are moved to somewhere out of the plot range due to LV malfunction. I cut and copy the graph to the VI attached, and enabled a new cursor, which looks good.
    I need to get the lost cursor names back (manually is OK). I also want to know how to avoid this.
    I am using LV 7.1 under Win XP Pro.
    Attachments:
    Study_Missing Cursor Name.vi ‏71 KB

    I have created a test vi that could generate this problem. I generated a waveform graph and label each peak with cursor name. Then I copied the waveform graph and paste to form another waveform graph 2 in which the cursor name is gone even the show cursor name is still enable. I have not been able to find the cursor names from the waveform graph 2.
    I am using labview 7.0
    HMP
    Attachments:
    test.vi ‏60 KB

  • Multiple waveform graph

    I need help. I need to put multiple plots in a waveform graph. In the vi in attachments, I put a example. In the waveform chart, function good, but in the waveform graph, don't work put two or more plots in the graph. I need to do the same thing that I do in the chart in the graph. Thanks for all.
    Attachments:
    graph-chart.vi ‏15 KB

    Please check the example which comes along with labview about how to plot multiple plots in a waveform-Go to specified folder in your pc
    C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\graphs
    -Open gengraph.llb in that folder for examples.
    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

  • How the waveform graph indicator doesn't change its property ?

    I have designed a printcontrol vi which I only want to print the plots in the waveform graph on the front panel.In order to acquire this effect, I use the property to set the plot area background colour to transparency. In the course of running,the property works,
    I mean the waveform graph changes transparent.But I hope it will not change because it will not convient for the user.I don't know how to achieve this goal.Hope to get your help,thanks a lot!
    Attachments:
    11.vi ‏97 KB

    One of your problems is the fact that you reset the panel color only after the event has completed and since it generates the full report, this can take some time.
    The problem will be much less noticeable if you reset the changed properties right after grabbing the image.
    Attached is a quick draft. Modify as needed.
    (Sorry, I don't have 7.1, so I downconverted from 8.0. There could be some conversion errors that should be easy to fix.)
    You should also make sure to place the terminals of the latch action booleans INSIDE their corresponding event case, else it might not reset to false during execution of the event.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    11MOD.vi ‏58 KB

  • How do I Get the value from a mouse click - on a waveform graph?

    If I have made a plot into a Waveform Graph and later want to do a zoom of my data
    (Not zoom into the Waveform Graph, but regenerate the data). How do I read the mouse
    coordinate if I click on the graph window. I know how to put up the horiz and vert
    cursors but don't know how to just read the mouse click. I would really like to
    follow the windows standard that identifys a rectangle by clicking and draging and then
    be able to read the corners of the rectangle. Thanks, Rick
    PS: Using Labview 6i

    I would recommend to 'translate' your graph in a picture and dislay it in a picture control (see picture examples in LV6).
    Once you did it, pictures have an extremely useful property called Mouse that returns the mouse coordinates and click events when you place the cursor on the picture.
    By this you can re-arrange the graph on picture appearance.
    There are also other methods such as using a Window's API that returns the mouse position referred to the whole screen window, but I believe this would be much more difficult to implement.
    Let me know if this was clear and if you need an example vi.
    Good luck,
    Alberto

  • Can a waveform graph be used without for loop

    i would like to know if a waveform graph can be used without a for loop and if so, how? I tried using a while loop only, but the reading becomes too fast.
    can someone advise

    Dear nebb,
    first of all, graph is usually an offline plot of the acquired data but to use it as an online display u need to use build arrays in for/while loop which keeps on adding new points & plots in waveform graph.
    I am including a vi which incorporates a while loop in which by using build array, points keep on increasing & simultaneously they are plotted in the waveform graph.
    Using for or while loop, it has no concern with speed. it depends on the code inside the loop which makes them faster or slower.
    For making slow readings, you can put some delay inside while looping.
    Hope this works. YOur feedbacks are welcome.
    Best Regards,
    Nirmal Sharma
    India
    Attachments:
    waveform_graph_without_for_loop.vi ‏17 KB

  • Waveform graphs not autoscaling in X

    Hello, I have an annoying problem in drawing data with waveform graphs (LV2011).
    I will put it in a short statement: I need to compel graphs to properly rescale on the X scale.
    Now the details:
    I need to show data acquired during a given "event", updating a graph every second. I don't know how long the event will last, but I prefer not to set the X-axis as autoscaled because I don't like the axis rescaling effect. So I initally set the graph as fixed (ScaleFit=0) to a reasonable width in abscissa. When the acquisition ends, I want to show all the data maximized on the available control width, so I set the X axis scaling property to 2. Unfortunately, the graph is often not rescaled. I also tried leaving ScaleFit to 0 and setting the Range:Maximum to the proper value or using the ForceRedraw method, to no avail.
    Do you know any trick to compel the X axis to be rescaled?
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

    No, GerdW, it doesn't work
    I tried also with ScaleFit=1 (Autoscale once now) and with more complicated pattern (for example reinit to default, then autoscale, then rewrite data). No success.
    In all cases, it mainly works (but not always) when I run the program in the LV environment. The very opposite when I deal with an executable.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Get image invoke method gives blank image when I try to capture waveform graph picture

    Hello
    I am facing problem when try to capture waveform graph picture using invoke method Get image and write JPEG function, some times it gives blank images.I am using these functions inside nested loops.
    ObservationsWith reference to attached VI)
    (1) Sometimes  I found it captures images correctly when i run labview program first time but after that it starts writing blank images.
    (2) Whenever i use flat sequence structure for waveform graph and get image node it always gives blank picture which indicates that execution of waveform graph and Get image should not be sequential.
    (3) Whenever it gives blank image i checked the image data which is not valid data so it indicates problem is with Get image method or labview program flow(may be race condition between waveform graph and Get image method).
           I have attached vi ,please change path name and folder name in which images are being saved.I'm using labview 8.5.1 .
    Attachments:
    image_capture_problem.lvproj ‏6 KB
    image capture problem.JPG ‏149 KB
    0.0_10__3.jpg ‏2 KB

    Hi,
    I have tried sequence structure.But sometimes it also gives blank images. I have attached new vi which is using flat sequence. Run this vi 7-8 times then you will observe blank images. I don't know why?Any help will be greatly appreciated.
    Attachments:
    image_capture_problem.vi ‏69 KB

  • How to get a fixed plot area in a Waveform Graph even if the Y scale's precision change

    Because I'm stacking many Waveform Graph. I want them to look the same. When I change the precision of the values in the Y Scale. The plot area doesn't keep its initial width. In the example provided. I'm changing the precision and you can see it moving. Is there a way to keep the width fixed?
    I noticed that there is justification for unit label. But I didn't got the expected behavior.
    Attachments:
    ScaleProblem.vi ‏38 KB

    The menu item is only in LabVIEW 6.1 and above because the plot area did not autoscale in earlier versions so I'm not sure exactly what kind of problem you're seeeing. Here's the original example in 6.0 format and when I run it, the plot areas stay aligned as the precision changes. Could you maybe post an example that demonstrates the behavior?
    Attachments:
    ScaleProblem[1].vi ‏33 KB

  • Can't plot image into WDT waveform graph

    I'm trying to plot an icon onto a WDT waveform graph but it doesn't seem to be working. The image plots while using the default (array of doubles) data type, but goes missing when I change to WDT. As far as I can tell, the two graphs are the same except for their data type.
    Am I missing a step or is this a LabVIEW bug?
    Attachments:
    WDT problem.vi ‏26 KB

     I was able obtain the icon on the WDT waveform graph in your code by changing the property selected on its property node to PlotImages.Middle.

Maybe you are looking for

  • Mail doesn't send emails after Leopard upgrade!

    Hi everyone.. I am wondering if anybody is facing this as well.. Since I upgraded to Leopard, and Mail retrieves both of my emails on Gmail and .Mac inboxes very well and stable.. But, when it comes to sending, it doesn't. It keeps on taking forever

  • Equivalent code in JCE for the given C# AES code

    Can somebody give me the equivalent code in JCE for the given C# AES code below? (Ofcourse, I checked this topic http://forum.java.sun.com/thread.jspa?threadID=603209 as well, but couldn't figure out much; I have little knowledge in this area; I've a

  • How to set Top Sites as homepage in Safari 6?

    I'm unable to set Top Sites as my homepage in Safari 6 on Mountain Lion.

  • Database connection using beans

    Hi, I'm very new to JSP. I'm trying to write an application which has a Login page which the user uses to login to a Oracle database (with their own User ID and password). Once the user has successfully logged in I would like to use the same connecti

  • Add image carousel

    Hi All, I have been trying to add an image carousel using an HTML viewer widget in my Hana portal website in vain. I have an index file with the carousel, which i have uploaded in the content folder along with the images; but when i use it in the htm