Bug in Digital Waveform Graph X-Axis

Hello,
I am making separate queried to a database to retrieve analog and digital data over the same time period.  The data were logged at 2 second intervals.  I have verified that both result sets return the same number of values with the same t0 and dt.  I then plot the analog values on an XY Graph and the digital values on a Digital Waveform Graph.  I then use property nodes to sync the two graphs (left and right plot bounds, XScale.Range, and Cursor Position.X).  After doing this, I can see that the datasets do not line up between the two graphs.  The data on the Digital Waveform graph ends several seconds sooner than the analog data.  The x scales of the graphs appear to match but the plots don't align in time.
Has anyone else observed this behavior?  Is there any work-around?
Thank you,
Peter

There is a much simpler way to synchronize these charts. Just use a stacked chart.
If you use a bundle function you can take two signals (almost data type) and wire them into a Waveform Chart together.
Then on the front panel right click on the chart and select Stack Plots
Since you only have 1 X axis now they are instrincly synched and will always write valules at the same time and update the UI together. You can skip all of the scale synching....
Since the data you are working with has lincked time stamps, the data will need to be matched, (make sure the samples are anyched and each itteration both would have the same number of samples.
The last allternative would be to strip the time stamp off of your data then build a new data structure, with the digital data, analog data and 1 set of matched time stamps. You can then plot this on an XY chart using the time stamp for the X axis for both of your other plots.  Let me know if you have other questions.

Similar Messages

  • Digital Waveform graph with a lot of samples

    Hi,
    I have to display in a Digital Waveform Graph a lot of data read from a file(2.000.000 of samples for 36 signals). If I read the file and I try to display all the data, the Vi became unusable. For example, to zoom a graph region, it may take 30-40 seconds, scroll is impossible ecc, ecc..
    Apparently LV doesn't perform a decimation of points. In measurements studio 8, this problem doesn't exist...but I have to use LV 7.1..
    any suggestion ?
    At the moment I have developed a DLL in VC++ that perform a decimation of samples, but performance are not very good !
    Thank you for any idea.
    Regards.

    Hi Garraty,
    Excuse me but I have several questions for you.
    1)     Have you tried some kind of incremental approach, starting from 1 waveform and increasing towards 36? Do you experience some kind of on/off degeneration between, les’s say, 34 and 35 waveforms?
    2)     How can you decimate a digital pseudorandom sequence of 2M samples without loosing information?
    3)     Is this 2M samples an unavoidable constraint for your application?. Actually, it seems very difficult to extract some kind of visual information from a pseudorandom pattern of this length?
    Thank you very much.
    Kind Regards
    FiloP
    FiloP
    It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
    Richard P. Feynman

  • How plotting on a digital waveform graph the bit transition in function of the time

    Hi everyone,
    I am using LabView 6.1 on a Windows XP computer. I am to plot output bits sequences on a digital waveform graph just before sending the information to a board.
    So far I can see the transitions for my 16-bit port (16 plots) but the width of a pulse is always identical, no matter what times I enter. I wired my 1-D array timestamps to the property node Xscale.MarkerVals[] of my digital waveform graph... but it doesn't seem to affect my plotting...
    Thanks in advance for any help concerning this problem.
    Jonathan Sabah

    Well here is piece of my VI with the necessary sub VI.
    I also want to hide/unhide plots... I have found how to hide.. but cannot figure out how to unhide.
    Any help please ?
    Thanks again
    Jonathan
    Attachments:
    Exemple.vi ‏58 KB
    Setup_DIO64_for_Output_1.0.vi ‏111 KB

  • Digital waveform graph switch between hex and binary possible?

    hello,
    is there a way to have a digital waveform graph switch back and forth from binary to hex data display?
    Thank you

    ok, thanks Nathan
    Attachments:
    Mixed Signal Graph1.vi ‏26 KB

  • 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

  • In Digital waveform graph

    Hi
    Apart from 0,1,H,L,Z  I should input other alphabets like C,D,J,X,G in Digital waveform graph.(No annotations or Masking)
    Please Help!
    Thanks

    Please stick to your original thread.

  • Is the digital waveform graph supported in Measurement Studio?

    I have an application that could really use the LV-style digital waveform graph in Visual C++. Are there any plans to support the digital graph in Measurement Studio?
    Thanks, Bob

    Unfortunately, there is currently not an equivalent of LabVIEW's digital waveform graph in Measuremeht Studio for Visual C++. You can fake some of the features with CNiGraph. If you have Measurement Studio for Visual Basic 6.0 installed, you can see some examples of this in the VB DAQ\Digital\Digital Waveform and Digital Waveform Continuous examples. Also, attached is a sample Visual C++ 6.0 project that demonstrates how you can simulate some digital graph features with CNiGraph. There's also a screenshot attached that shows what this looks like. Hope this helps.
    - Elton
    Attachments:
    DigitalGraphExample.png ‏16 KB
    GraphDemo.zip ‏19 KB

  • How do I graph more than 8 bits on the Digital Waveform Graph?

    Greetings,
    Does anyone know how have a Digital Waveform Graph that graphs Unsigned 16-bit numbers (rather than U8)?
    Thanks

    Just wire your array of U16 right to the bundler. The Digital Waveform Graph will just create 16 plots instead of 8.
    Alliance Members are here to help. We do this stuff every day.
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • Waveform graph x-axis into real time recording

    Hey there,
    I have acquired voltage off a LVDT through the DAQ assistant and connected it to a waveform graph. However, the x-axis says its 'Time' but its got the white line running across it even though no time has elapsed and the time itself has funny units to it. What I need on the x-axis is real time so that I can see the line register from left to write as time passes by. I have tried a few things like connecting the DAQ to a chart graph but it doesnt have the log graph which I need. I have also fiddled with the XY graph by connecting the DAQ assistant into the 'Y Input' but I am not sure how to input time into the x input.
    If someone could help me with this problem, it would be much appreciated.
    Thanks,
    Gurung 

    Hi Gurung,
    what do you expect here? Wire waveforms to a chart:
    (DAQmxRead settings: n channels, n samples, 1D array of waveforms)
    For learning the basics you should
    - examine the examples coming with LabVIEW
    - go through the Basics course on NI website
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Digital Waveform Graph refuses to edit Bus names

    I am trying to display digital waveforms on graph whose lines are grouped. It looks like the functionality exists to group the lines into "Buses". There appears to be a way to rename each Bus from its default "Bus 0, Bus 1, etc." since there is an Express VI called "Group Digital Signals" that does it. It looks like the express VI is editing the attributes on the waveforms in order to rename the Buses. The attributes are NI_ChannelName for the Bus and NI_LineNames for the lines that make up the bus.
    When I code it, the Line Names are renamed according to what I want, but the Bus names remain default Bus 0, Bus 1, etc. Is there something I must do to rename the Buses?
    (see attached VI)
    Thanks,
    Dan
    Solved!
    Go to Solution.
    Attachments:
    Digital Graph.vi ‏26 KB

    So Young Daniel, do you mean like this?
    All I did was select where is said Bus 0,1 or 2 and typed in a new value.
    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

  • Keeping Digital Waveform Graph Channel Name constant

    Hello All,
    I have currently run into a problem where LabView decides to change all of the channel names in my waveform graph to some type of default setting, e.g. Line 1, Line 2 etc.  I was wondering is there a possible way to keep the channel names on the digital wave form constant even if I change some of the digital waveform parameters, or pass a null digital waveform constant through one of the channels?  Any help on this would be much appreciated.
    Example:
    Problem
    Digital Channel Name Before:                                 Change Parameter:                              Digital Channel Name After:
    Valve 1                                                                     Only Channel 1&2 used                            Line 1
    Valve 2                                                                                                                                       Line 2
    Valve 3

    Hi di_1,
    Are you trying to add more elements to a property node?  Just grab the bottom and drag it down...check out the pictures.
    Stephen S.
    National Instruments
    1 Test is worth 1000 expert opinions
    Attachments:
    propertynode.png ‏83 KB
    grab the bottom of node.png ‏65 KB
    drag it down for more properties.png ‏96 KB

  • I would like to plot an array of U32 with a digital waveform graph.

    When I try to do this I can only view the first 8 bits. How do I plot all 32 bits?

    Take a look at the attached VI, where I am able to plot all 32 bits on the graph. I have the axis autoscaling, and I made sure it was large enough to see.
    Evan
    Attachments:
    i32_to_Digital.vi ‏44 KB

  • Digital Waveform Graph

    I have attached a JPG of a digital graph and would like to know if anyone can get plot1 and plot2 in the same line together?
    Any help is appreciated.
    thanks and regards
    Attachments:
    Pic1.JPG ‏13 KB

    Can the attached vi match your application?
    帖子被seagullsxc在04-13-2008 10:50 PM时编辑过了
    Attachments:
    Example.vi ‏24 KB

  • Digital waveform

    Aim of my VI: 1. PLC Digital Outputs are being switched from On and OFF through a relay. I have to read that signal and represent it in the digital waveform within a time period, using NI DAQ 6251.
    2. The data should be represented in real time showing the pulse with X-axis having the time scale.
    3. I have capture all the data and save in an excell file.
    4. With minimum resolution of 1 to 10ms.
    Please see my VI which I made and suggest.
    I have a question, in my VI I have directly plotted the data coming from the digital read. What is the X-axis there?
    Secondly I have used the time stamp to represent the actual time.
    Which graph is correctly satisfying the purpose? Sorry I generally get confused with timing in the loop.
    Attachments:
    Read-PLC-Dig Chan.vi ‏59 KB

    Hi KRAZE4LV,
    The following example demonstrates how to perform a continuous digital read that outputs the data to a graph:
    NI Community Example: Digital - Continuous Input - https://decibel.ni.com/content/docs/DOC-25130
    I would recommend starting with this.  The graph, however, will not scroll as you have described.  To get the behavior you want, you should replace the Digital Waveform Graph with a Waveform Chart.  Here is a guide about the types of charts and graphs available:
    Types of Graphs and Charts in LabVIEW - http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/types_of_graphs_and_charts/
    To get your digital data into this chart, you will need to use the following VI from your Waveform Palette to convert your data to a compatible type:
    Digital to Analog VI - http://zone.ni.com/reference/en-XX/help/371361H-01/lvwave/digital_to_analog_wf/
    You can adjust the chart's history (right-click»Chart History Length...) to configure how many samples are shown at a time.  With this setup, your x-axis will be your computer's timestamps.
    As for your file logging, the following VI performs the file i/o you are requesting:
    Export Waveforms to Spreadsheet File VI - http://zone.ni.com/reference/en-XX/help/371361H-01/lvwave/export_wave_to_spreadsheet/
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Digial Waveform Graph- Samples

    I am trying to use Digital waveform graph for my application. I could find a related example in labview Simple Digital Waveform DT Graph.vi. 
    Tried to modify it a little bit with some control boolean switches but i cant change the number of samples which is possible in Example Vi.
    Is there a way that i can also control the number of samples in x axis. because that doesnot seem to be possible when i convert for boolean array to digital.
    Thanks
    Attached Vi
    Attachments:
    Simple Digital Waveform DT Graph- mod.vi ‏14 KB

    I have done some work in the attached VI
    I have got three toggle switches a, b and c. I want to switch them based on timings for which I require a function where I can feed in the time based on the switching sequence. Just consider the switches in the form of truth table.
    If none of the switches are turned On that means O000 time is going to be To/4 as shown in the fig attached. Similarly when the swtiches  a, b and c are in 100 fashion, then the time is going to be T1/2 as shown.
    The attachment clearly shows my end application.
    Take a look
    thanks
    Attachments:
    Digital Wfrm.vi ‏35 KB

Maybe you are looking for

  • Recover a deleted record in NOARCHIVELOG mode?

    Hello, I'm running 10gR2 in NOARCHIVELOG mode and we do not take backups (please, let's not get into a discussion about this!). I need to know if there is any possible way to recover a record once it has been deleted and a COMMIT has been issued? A u

  • Acrobat 9.5.1 Will Not Update

    Hello! I am running Acrobat 9.5.1 on Windows XP.  The program runs fine - but it will not install the next update.  When I try to update the program, it indicates that the patch package could not be opened and gives the error number of 1635.  What ca

  • Incoming Idoc

    Hi Guru;s We have issue that one idoc will taking time to update sales order is 10-12 minutes due to huge line items and handling unit... Is any way that we can update 2-3 sales order at time in parellel so that time will save. or any otherw ay for t

  • Issue with installing drivers for thinkpad t43

    good evening all. i offered to help out a friends son by reinstalling a fresh copy of xp on his t43 as it wouldnt load due to virus's and what not.  everything went fine with the install apart from the fact that i cant seem get certian drivers to reg

  • Fatal error on install Laserjet Pro 200 M276nw

    During installation I get a fatal error timeout after I have connected the USB and the progress bar reaches 99%.  I have restarted the computer and also restarted the printer with the same results.  I have also changed the port for the USB.  When I c