Graphing measurement versus position for a continuous roll based process

I am working on a DAQ application for a continuous roll-based process.  What I want to do is plot measurement versus position.  What is unique is that the graph x axis has to reset for each new roll that is created for the process.  i.e. I want to plot measurement versus position in a roll.  The attached file shows what I am trying to do.  Has anyone tried this?  Is it even possible to have positive numbers on both sides of a zero point in a graph?
Thanks,
John
Attachments:
Labview Roll Graph.jpg ‏33 KB

John,
Unfortunately, there wouldn't be a way to have an arbitrarily numbered x-axis as you are describing.  In cartesian coordinates, you cannot have repeated points like this.
If you know how many points are acquired per roll, one way to do this is to clear a charts history after this number of points and for every clear increment a roll counter.  See the attached VI for an idea of what I'm talking about.
Regards,
Craig D
Applications Engineer
National Instruments
Attachments:
Clear Chart History.vi ‏18 KB

Similar Messages

  • Customer exit Variable for Previous 12months Rolling based on 0calday

    Hi Experts,
    I am creating a Customer exit variable to derive Rolling 12 months based on calday,
    Could you please any body correct the below code,
    Or if you any body have pseudo code based on calday, could you please pass to me
      WHEN 'zcalday'.
    * Rolling 12 months to period
        IF i_step = 2.
          CLEAR: l_s_range, loc_var_range,
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'RYEAR'.
       MOVE sy-datum TO: lv_date_from,
                                        lv_date_to.
               zmonth = lv_date_from+4(2)
           l_s_range-high = zmonth = loc_var_range-low.
            v_fiscper = v_fiscper - 12.
            l_s_range-low = v_fiscper.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'BT'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        ENDIF.
    Thanks and regards
    Sree

    Hi Yasemin,
    Thanks for your help,
    I have small clarification, I have following data in base cube,After restricting the customer exit variable
    on revenue I suppose I will get one Amount, i.e 7800, But If I want month wise, Do I need to create offset? or without creation of offset is there any way that will split based customer exit variable.....
    Thanks a lot
    regards
    Sree
    Execution date
    24/06/2014
    Comp Code
    Date
    Revenue
    C100
    01/07/2013
    100
    C100
    01/08/2013
    200
    C100
    01/09/2013
    300
    C100
    01/10/2013
    400
    C100
    01/11/2013
    500
    C100
    01/12/2013
    600
    C100
    01/01/2014
    700
    C100
    01/02/2014
    800
    C100
    01/03/2014
    900
    C100
    01/04/2014
    1000
    C100
    01/05/2014
    1100
    C100
    01/06/2014
    1200
    Total
    7800

  • Reset position for linear movement

    Hi All,
    I am using PCI 7344 and UMI7774.I am using three of its Axis.The first two axis are just used as a DRO ( DIgital Read Out) and the third axis is used to control servomotor.
    Now at a instant of time, I require to Reset all the axis position to zero.Now the third axis can be reseted by using the Reset Position Vi. But since the first two axis are manual, I have used scales which are used for linear movement measurement( The scales are same as encoders, but can be used for linear measurement.It also has A, B & Z). How can I reset the position for this 2 axis.
    Regards
    Manish Karnik

    Hey I missed some point.
    Hi All,
    I am using PCI 7344 and UMI7774.I am using three of its Axis.The first two axis are just used as a DRO ( DIgital Read Out) and the third axis is used to control servomotor.
    Now at a instant of time, I require to Reset all the axis position to zero.Now the third axis can be reseted by using the Reset Position Vi. But since the first two axis are manual, I have used scales which are used for linear movement measurement( The scales are same as encoders, but can be used for linear measurement.It also has A, B & Z). How can I reset the position for this 2 axis.
    Now after reseting the position the axis should be able to read the counts from zero for all the axis. ( For axis 3 it is possible)
    Regards
    Manish Karnik

  • DAQmx - Measuring edge position (time) with a counter ?

    Hi all,
    I have two signals that I need to study using a USB 6212 (BNC) card:
    (1) a short 0-8V signal (~500 ns) (yellow on the plot)
    (2) a long signal (~6 µs) for which I have to measure the amplitude (purple on the plot).
    The long signal (2) has to be connected to an analog input so that I can measure its amplitude. In addition, given the duration of the pulses, I need to use the max speed for the ADC conversion. That's why I'd like to use a counter for the other signal and not a second AI (it wouldn't work anyway given the short duration of the pulse (1)).
    Initially, I wanted to measure the amplitude of (2) only if the short pulse (1) occured, which is possible with a trigger on the AI channel, but in this case I get a too long deadtime and the acquisition is very slow.
    To speed up the process, I wanted to record all the data with the AI and the times at which the signal (1) gives a rising edge to post-process everything later (using a FIFO I guess).
    So my question is wether it is possible to measure the position (ie the time) of an edge of a signal with a counter ?
    The signals measured with a scope are shown on this picture:
    http://lpnhess.in2p3.fr/~bolmont/NI/outhg1.png
    Thanks a lot for your help !
    Cheers,
    JB
    JB

    Greetings,
    Please see 8-3 of http://www.ni.com/pdf/manuals/371931f.pdf
    This shows that you can use the counter to record the current value stored in the counter that is being driven by a clock. This has the upshot of creating an array that has the times of the event. To do this, you need to set the source and gate properly. These can be set first by configuring the counter to Count Edges (see DAQmx Create Channel) and then updating the CI.CountEdges.Term (in the DAQmx Channel Properties) to the channel that has your signal and SampClk.Src (in the DAQmx Timing Properties) to a known clock, such as the onboard SampleClock.
    Keep in mind, the specs for the digital ports (which I assume include the counter ports) have a maximum voltage rating of 5.25 volts, so while it probably won't make a difference, you might want to divide down the voltage to be within spec.
    Of course, there are other ways to do this. For instance, you could just sample a digital port along with your analog port and then in post processing look for edges, but I feel like this is the cleanest way to do it.
    In any event, it seems very possible.

  • How to get Graph's PlotArea Position & Size

    With Measurement Studio V6.0 it is possible to put annotation on Graph, in PlotArea coordinates.
    But to use these annotations correctly, I need to know the Graph's PlotArea position (relative to ClientRectangle) and the size.
    Hot to do that?
    Regards

    Here is a function that calculate X position relative to the graph control's parent window, from any X-axis value in the plot.
    int CDlgWithGraph::GetXForPlotPoint( double dbPlotXValue )
    CNiAnnotation annotation = m_ctrlGraph.Annotations.Item(1);
    annotation.SetCoordinateType( CNiAnnotation::AxesCoordinates );
    annotation.GetCaption().SetXCoordinate( dbPlotXValue );
    annotation.SetCoordinateType( CNiAnnotation:creenCoordinates );
    CPoint pt( annotation.GetCaption().GetXCoordinate(), 0 );
    m_ctrlGraph.ClientToScreen( &pt ); // pt in screen
    ScreenToClient( &pt );
    return pt.x;
    To get the SIZE of the plot area, pass min_x and max_x to width; pass min_y and max_y to get height. ( x,y values passed in are in pl
    ot axes ).

  • Thanks for putting Camera Roll Back in iOS 8

    Thanks for putting Camera Roll Back in iOS 8

    This is a user-to-user support forum. If you want to give that feedback to Apple (and they might appreciate hearing something positive) you can do that at: https://www.apple.com/feedback/iphone.html

  • Techniques for smooth continuous motion in a game

    Hello all,
    I'm working on a brick-breaker variant and all is going well except for the motion of the ball-- it isn't as smooth as I'd like.  I've done some reading on the subject and have come away with two promising techniques for smooth continuous animation:
    1. Use time based position update functions rather than frame-based.  This basically allows you to cheat the SWF's FPS setting and make a certain object move more fluidly without jacking up the entire movie's FPS.  This is handy and does have a dramatic effect, but it also costs much CPU and/or battery power to process so it (might) not be suitable for continuous motion.  It is better left to tweens and other animations that are both short and critical.  Also, I found that in order to get the ball moving at a reasonable speed for difficult gameplay I had to either lower the time delay or increase the velocity modifier to the point that the ball appeared to half-vanish much of the time (presumably) because it was getting too far ahead of the movie's frame renderer.  As such, this method really isn't suitable for managing continuous core gameplay mechanics.
    2. Convert velocity modifiers to floating point values rather than integers.  This worked very well to smooth out the motion a bit, and has had no adverse side effects so far as I can see.  It doesn't quite get the ball to the level of smooth animation I'd like, however.
    Currently my movie's FPS is set to 45 and I'd prefer not to go any higher than that if possible.  With floating point modifiers and 60 FPS everything is very smooth, but I am wary of using an FPS setting so high, particularly as this is eventually going to be a mobile app and therefore battery life is a consideration.  Does anyone know any more tricks to smooth continuous, game-mechanics-centric motion?
    Is there perhaps any magic that can be worked with the new Stage Video API and/or any other hardware acceleration offered by flash player/AIR?  Is Stage Video even usable in iOS and/or Android apps created in Flash CS5?
    Thanks,
    CCJ

    What was the Bit-Rate of your Exported MOV file?
    Good luck,
    Hunt

  • How to make the graph follows the position of the video frame

    Hai..
    I want to open the video (. avi) and graph together in one VI.. The videos and graphs can be controlled (forwarded or rewind) in the desired position.. However, the graph should follow where's the position of the video frame..   The graph generated from the data in excel, after reading data, then there is the processing of signals, such as filter, mean, find the peak, etc.. After that the result will appear in the graph..
    Until now, I've been able to display video and graph.. I'm trying to use WMP and also IMAQ..
    Because I want to show the position of the graph or signal when the video plays, I was making a cursor or a line on a graph that follows the position of the video..
    First, I'm trying using WMP.. I can forward and rewind video using WMP, after that I make a cursor on the graph and the position of cursor I put in the position video.. And then when I run the program, the signal that arises from the right, but the cursor in the graph follow the position of the video (the cursor appears on the left) different side with the signal..
    I also tried using IMAQ when I tried to use the video controls, so the video can be forward or rewind using the slide, and I made a graph control to follow the video.. But the video isn't playing, it just show only images or frame in the video..
    Can we create a graph that can follow the position of the video? (graph can be in forward and rewind just like with video)
    I've tried many ways but until now have not been successful.. can someone help me?
    Any help is greatly appreciated thank you.

    This should do pretty much what you want, assuming that a slider is how you are controlling your video position. You are going to have to play around with it a little but it should give you the basic idea.
    Attachments:
    Slider.vi ‏35 KB

  • My iPhone 5S is using 2.5GBs of storage for the camera roll.  I deleted all but 190 photos and this did not change.  My other devices cannot backup to iCloud due to the volume on my iPhone.  Any ideas?

    My iPhone 5S is using 2.5GBs of storage for the camera roll.  I deleted all but 190 photos and this did not change.  My other devices cannot backup to iCloud due to the volume on my iPhone.  Any ideas?

    Try turning off the Camera Roll option in Settings>iCloud>Backup & Storage>Manage Storage>Your device. Then turn it back on again.
    Cheers,
    GB

  • Error  while creating PO --   Unit of measure not defined for lanuage  ZH

    Hi all,
    i  have created the PR with EA as UOM. Then while creating PO, i am getting error like
    '  Unit of measure not defined for lanuage ZH' .
    Then  I execute CUNI
    Then menu is GOTO > Translation > units of measure
    enter source language and target language . After this i am getting the below message
    --->  Language not available on server
    Please suggest what i should do. Thanks.
    Thanks
    pabi

    HI Pabi,
    Go to material master for material in purchase requisition, the Go to Additional data and maintained language as ZH in material master data.
    Also the other possibility, that if in your case purchase requisition are converted to purchase orders through background jobs,
    then check the background job execution in SM37 whether that background job has been triggered twice parellely in the background, which could have resulted in locking of same purchase requisition at same time and hence your are getting the Error.
    Br,
    Tushar

  • How to change position for items in shopping cart

    Hello,
    I am creating shopping cart using flat file. But i am not able to change the position for items i.e. both items contain position as 0000000001.
    Following are the item details of shopping cart which is created through portal. (from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA keyboard 100,00
    0000000002 1 EA CPU 1.000,00
    Following are the item details of shopping cart which is created using flat file & BAPI BBP_PD_SC_CREATE.(from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA MONITOR 1,00
    0000000001 1 EA MONITOR 1,00
    Position is not getting changed for item 2 & only first record is getting uploaded 2 times. My code is creating Shopping cart number .
    Please tell me how to change position of each item.
    Thanks & regards,
    Edited by: Ketkee Bhale on Sep 14, 2011 3:58 PM

    Moderator message - Cross post locked
    Rob

  • Unit of measure not defined for language ZH

    Hi,
    We were creating a PO when we encountered the error which states "Unit of measure not defined for language ZH".
    We executed CUNI to translate the units of measurement to our target language. System prompted "This object was segmented. Only new lines evaluated." What does this mean?
    We tried creating the PO again, however we encountered the same error that the unit of measure was not defined for the language.
    Please recommend action/s that we should take. Thank you.

    Take a look at the below threads. Your problem has the solution.
    Re: Unit of measure XX not defined for language DE
    Re: Unit of Measure Error in Purchase order

  • Any recommendation for to continue ?

    I was working in Oracle Forms, but now I decided to learn. I am study Java for the first part (Getting started) but there are more chapter but, I like to make application like account system. I was thinking to junk to java Swing for to continue studying. What do you think ?

    I think I might have steak for dinner tonight!
    No wait, pizza! Haven't had pizza in ages.

  • If bought NI USB-6800 device, is Measurement Studio free for dev?

    If bought a NI USB-6800 device, is Measurement Studio free for VC++ development?
    Do I need to buy the Measurement Studio license?
    Or is there another way to do the VC++ development? Such as via some free dll or ocx library.
    Plus I noticed that there are UNIX/Linux drivers about NI USB-6800 device, but there is no document about C/C++ development under UNIX/Linux!
    Can I do the development with NI USB-6800 device under UNIX/Linux? 
    An individual human existence should be like a river - small at first, narrowly contained within its banks, and rushing passionately past boulders and over waterfalls. Gradually the river grows wider, the banks recede, the waters flow more quietly, and in the end, without any visible break, they become merged in the sea, and painlessly lose their individual being.

    Medhi wrote:
    Unfortunately it is in windows. Windows doesn't recognize the device. I don't know, is this a problem because of running WinXP in Mac?
     That may well be the problem.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • License position for ADDM, ASH and AWR

    What's the license position for ADDM, ASH & AWR ?
    I see these are freely available via OEM DB Control on my database instance. However I think I remember seeing ( though I can't find it now ) something that said they are chargeable ( under the Oracle Diagnostics pack license ? ). So even though they are freely accessible from OEM, if you use them you become liable for a license fee !
    I understood that AWR is really the replacement for Stats Pack but that Stats Pack is still in 11g because it is free ( whilst ADDM, ASH and AWR are not ) - is that correct ?
    I have not been able to find any documentation pertaining to the licensing / chargability ( or otherwise ) of these producs / features
    Can anyone clear the confusion ?

    Hi,
    Statspack is still free and the diagnostic features are licenced.
    Pricing details can be obtained from
    http://www.oracle.com/us/corporate/pricing/price-lists/index.html
    http://www.oracle.com/us/corporate/pricing/technology-price-list-070617.pdf
    -Aravind

Maybe you are looking for

  • Lumia 520 touch problem

    i bought my 520 2 months ago, now it has auto touch........... some times touch is working on its own, but some times it work smoothly...... tried the software change but still its there, is there any solution for this.........?

  • USB device not recognised....but has been?

    My nano is no longer being recognised when plugged in to USB port however it was working fine previously??? I have tried using another USB port.

  • Reading count of a query in formula columns

    I need to supress a field/label from being displayed in the report output if the count of rows returned from another query is 0. I was thinking of defining a formula column that will have the count. Then can I use that formula column in the trigger o

  • Validating datastore against sources.

    Hi, I would like to know how we can validate changes made to a DataStore's columns. After importing source table definitions, I wanted to know what would be the impact of changing column name in a model. (In the database, the column name is NOT chang

  • Will AIR has any problems in the future with Android?

    Will AIR has any problems in the future with Android? If we are experienced in flash, is it better to do the mobile work with AIR or HTML5? But we are doing flash only so that we may face problems if we faced any bugs, is it expected to have any bugs