Intensity Chart X scale flip = image drift

Hi all! When programming one application for measurement I encountered following problem. Because scanning in this measurement is performed at first from left to right and then immediately from right to left I write the data to intensity chart and when the end of scanning region is reached I flip the x axis and I write the chart history data into history of the chart but in reversed order . This creates the effect of preserving the image as it was during previous scan (only flipping itself without writing the reverse history would also cause flip of the already drew image).
All seems to work smoothly but if you run it you see small drifting of the image when reaching the edges. On the right the image drifts to the left a bit and on the left to the right.
What does it cause?
Thx a lot.
LV 2011, Win7
Attachments:
XAxisFlip.vi ‏33 KB
data.zip ‏502 KB

Hi and thanks again.
Now I realized why Gerd didn't see anything - When testing different datasets I forgot to switch the 'transpose' to false. So please do it and then you will clearly see the shift - maybe focus on the white part in the middle of the picture.
I am sorry for that inconvenient.
For the same reason Altenbach we had totally different results of power consumption. The original data has 8001 dbls for one vector(not 100) which in your example results in really high CPU usage(around those 50%)
My measurement with correct data (reading vi excluded, no delays):
Mine: 60-70ms
Yours without cursor: 1200ms
Yours with cursor: 9200ms
I am still trying to come with some logical explanation for the shifting because using the picture control seems to bring a lots of work and troubles
Message Edited by ceties on 08-24-2008 05:29 AM
LV 2011, Win7
Attachments:
Transpose.png ‏1 KB

Similar Messages

  • Chart x scale update problem

    LabVIEW  8.5.1
    Sweep Chart Problem
    The x scale values do not update until after the 2nd sweep.  The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.
    It appears to be a problem with the chart, since it happens with any vi with a sweep chart.  I've used versions 6 through 7 for years and never seen this.  I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.
    I've included a simple example.
    Thanks much,
    JSC321
    Attachments:
    Chart Sweep Scale Update Problem.vi ‏32 KB

    You have a typical race condition!
    There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.
    All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.
    (Execution order is enforced even if the wire value is not even used inside the loop )
    Try it!
    Message Edited by altenbach on 12-23-2008 11:08 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HistoryRace.png ‏10 KB

  • Intensity Chart confused when changing number of samples

    My application uses an Intensity Chart in strip chart fashion, adding one column of data points per cycle. Sometimes the user, while configuring an experiment, may change the number of data points per cycle. This of course changes the Y scale on the chart. Autoscale handles that without difficulty. But the intensity chart display sometimes doesn't. Let's say the user changed the number of data points per cycle from A to B, B > A. Some fraction of the time, after the change, the intensity chart will display only A many points in the column, leaving the upper portion of the column black.
    It seems to be a "bad state" thing. While the chart is in a good state,you can change the number of data points and things keep on working fine. But once it gets in a bad state, it stays that way, and the number of data points it will actually display is the smallest number of data points per cycle that it has ever dealt with, once it got in the bad state. Clearing the data history will not get it out of the bad state. Only stopping and restarting the program will.
    Is this issue known? Has anyone found a way to work around it?
    Thanks,
    Ken

    Hi Ken,
    Thanks for using the NI Forums. Intermittent issues are always the fun ones! In order to help me fully understand the issue, would you be able to post some screen shots of what you are seeing (maybe one when it is working properly and one when it didn't)? That will just help me frame the issue so we can figure this out!
    Looking forward to hearing back from you!
    Dan T.
    Dan T.
    National Instruments

  • Append Intensity Chart to Report

    Hello everybody
    I am trying to append an intensity chart to word report generation VI, any ideas to do this? I am thinking about append front panel image to report vi. but it doesn't accept my chart reference.
    The idea is to send the picture to report whenever defect is detected by the intensity chart during the test
    thank you 

    You cannot have multiple copies of the Report Generation Toolkit installed to different LabVIEW versions.  If you want to use the Report Generation Toolkit in LabVIEW 8.2, you will need to uninstall it from your previous LabVIEW version, then reinstall it to LabVIEW 8.2.  If you really need the toolkit installed to multiple LabVIEW versions, there is a workaround outlined in this KnowledgeBase entry, although it's not a complete workaround for the Report Generation Toolkit, since this toolkit is one of the only ones that actually replaces shipping LabVIEW files.
    We are currently investigating ways to alleviate the pain of using toolkits with multiple LabVIEW versions.  Let me know if you have any other questions.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How can I make a spectrogra​m from a soundwavef​orm using the intensity chart function?

    I want to make a spectrogram for a sound waveform where the x-axis is time, the y-axis is frequency, and the intensity is amplitude. I performed a DFT on the sound waveform, then used it as an input to the intensity chart function. Every time I run my program the x-axis has a scale from 0 to 1 sec, when my sound is longer. The y-axis doesn't give me the same range of frequencies as the DFT. The intensity scale is correct. Can anyone suggest another approach? The labview example did not help since I'm not generating an array and creating the intensity chart at the same time.

    Hello -
    You could probably use a 3D surface graph.
    I am including an attachment to show you what I mean. This example program is available here. I just made a few modifications to make it look as an intensity graph:
    1. By right clicking on the graph and going to CWGraph3D >> Properties and selecting the Grid Planes tab in the Graph tab, I unchecked the grids, to show just the graph. Then, I went to the 3D tab in the Graph tab, and selected Towards X-Y Plane in the View Direction section. Click OK.
    2. Then, I right clicked on the graph again and went to Advanced >> Enabled State and selected Disabled, so
    that the user cannot change the orientation any more.
    You can build your own plot using time and frequency as X & Y, and the amplitude will give you the color. You only need to adjust the orientation so that you can see it from �the top� and it looks like an intensity plot.
    Hope this helps.
    Attachments:
    XYZ_Plot_Example.zip ‏57 KB

  • Difference between intensity and gray scale value

    Hi I am a new learner of NI vision, please bare with me.
    1. I am quite confused by the terms of light intensity and gray scale value of pixels. Can anyone explain the difference to me? Or are they totally same thing? 
    2. I am currently processing a Grayscale (I16) image file. The bit depth of the image is 12 Bits. But I saw someone used IMAQ Histograph with the Number of Classes set as 8192(13 Bit), don't know why.
    Thanks, Jane
    Solved!
    Go to Solution.

    Hello Jane,
    1. Correct, gray scale and intensity are the same thing.
    2. The number of calsses one selects is a judgement call.  By increasing or decreasing the number of classes the more or less granular the histogram becomes.  Without some context I cannot speculate as to why someone would use 8192 classes.
    David A
    National Instruments
    FlexRIO Product Support Engineer

  • How to scale an image displayed on JButton

    Hi all,
    I has a panel contains 42 buttons of the same size arranged with GridLayout manager. I try to display some images on the buttons. But the problem is that the image bigger than buttons. Is it possible to scale the image to fit the size of button and which method is used?
    Thank you very much in advance.

    Hi,
    I try your tips. But I still see no changes.
    here is the code. I wonder where I go wrong.
                    Image i=Toolkit.getDefaultToolkit().getImage("red.JPEG");                    i.getScaledInstance(-5,5,Image.SCALE_DEFAULT);
                    //or i.getScaledInstance(10,1,Image.SCALE_DEFAULT);                          
         ImageIcon ic=new ImageIcon(i);
                   button1.setIcon(ic);//add image to the button
        

  • Does iPhoto flip images horizontally or is it my camera?

    As a Serious stamp collector, I am trying to scan all of my collection into iPhoto.
    (Only because there is NO dedicated software for the Stamp Collector).
    Problem is that images are flipped (Reversed) horizontally.
    Rotate will only turn the image upside down.
    I am forced to use (Preview, Photoshop, GraphicsConverter) to correct the pics.
    This seems to be a camera problem, as iPhoto and iChat images are FLIPPED.
    This fault could be easily fixed by simply adding a FLIP IMAGE BUTTON to iPhoto and iChat.
    My system uses a:
    1 yr old PowerBook 1.67 ghz 12in.
    OS X 10.4.6
    iPhoto v6.04
    Sony DCR-HC40 video camera using the Firewire option and from MemoryStick. ( I Haven't tried SONY USB or S-video output)
    Now that I wrote this post, I should give SONY a buzz and see what they recommend.
    Any Input on this subject is appreciated.
    PowerBook 1.67ghz   Mac OS X (10.4.6)  

    SSC:
    Welcome to the Apple Discussions. You're taking pictures of the stamps for inclusion into iPhoto and they are coming out reversed, right? You're not actually scanning them.
    Check all of the menus on the camera to see if there is an option to flip the image. It sounds like there should be one. Are normal photos flipped? Are you using a "macro" mode on the camera? Check those out to see if the answer is in there somewhere.
    Do you Twango?

  • How do I format 1D waveform array to output to intensity chart?

    I've tried to modify the "Cont Acq&Graph Voltage-Int Clk.vi" example vi to output to an intensity chart. The problem is the chart only accepts a 2D array of input data, while the DAQmx vis are giving me a 1D array of waveform data.  How do I fix this?
    Thanks in advance...

      Thanks!  Here's an example of the first few samples of the data I'm getting, plus the header:
    Channels 1 
    Samples 1000 
    Date 2006/07/24 
    Time 13:41:57.315999 
    Y_Unit_Label Volts 
    X_Dimension Time 
    X0 0.0000000000000000E+0 
    Delta_X 0.000100 
    ***End_of_Header***  
    X_Value Dev1/ai0 Comment
     0.068936
     0.028033
     0.038671
     0.047368
     0.053086
     0.052326
     0.039342

  • How can i specify pixels in the intensity chart ?

    Hi,
    I want to specify the number of pixels in the intensity chart . I have 56 values that want to be displayed . How can i do that? . 
    Solved!
    Go to Solution.

    Hi jerryvdk,
    By specifying the Number of Pixels, do you mean allowing only a specific Plot Area Size for the chart itself?
    You can modify this through the use of a Property Node.
    Steps to Change the Plot Area Size:
    Right click on the Intensity Chart.
    Scroll through Create » Property Node » Plot Area » Size » All Elements.
    This will create a Property Node which will allow you to change the draw area property of the Intensity Chart.
    By specifying a draw area of 56x1, this would allow a 56px draw area size. Is this what you meant?
    Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

  • Change "Chart x scale maximum range" in running mode....

    Hi,
    I have a little problem for labview world, i use chart graph and  if user choose 100 meter for x scale range in running mode,  every time user must see last 100 meter on the chart x scale range in running mode. Also if user change x scale range for instance 200 meter in running mode, user can see last 200 meter every time.
    I did little labview .vi for this but my problem is that
    user choose: 100 meter in running mode (0-100 meter) 
    and chart value is 101 for x scale,  x scale is 100-101,100-102,100-103... so on no update other range (100-200) "ı dont do this....
    Thank you every one and i love labview by the way i added example coded for problem (labview 8.0), (block diagram explain problems with label) if u want u can see correct code solution.... 
    Solved!
    Go to Solution.
    Attachments:
    chart x scale max.vi ‏14 KB

    kacco wrote:
    by the way i wanna ask some question about event str. Why am i using time out terminal 50 milisecond? if i connect -1 while loop doesnt work, or if event str time out terminal is empty value, i see same problem(while loop doesnt work, chart is not running)
    but event structure can use empty value for timeout terminal..... this vi  no  What is the meaning of this????
    kudos is coming soon my friend this is good and very useful solution thank u.....
    The timeout terminal lets you perform an action at a prescribed rate.  If I didn't use it, the Event Structure would sit until a Front Panel control is changed; that would keep the Random Number function from adding to the chart.  I wanted a new random number to continually add to the chart so I put it in the Timeout case.  I used 50 ms, instead of your 150, because I wanted it to run faster.  Not wiring something to that terminal results in the default value (-1) being used which makes it never time out, explaining why your VI doesn't work when you tried it.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Can anyone explain me how to scale the image in canvas in flash builder 4.6

    Can anyone explain me how to scale the image in canvas in flash builder 4.6, Scaling of image in component , can i get some examples ..  it should set almost all size screen

  • How do I re-scale cropped images in Fianal Cut Express 4?

    How do I re-scale cropped images to the correct aspect ratio in the sequence? I am in Final Cut Express 4. The manual says: 'Modify>Scale to sequence' but I do not see this command in the Modify drop-down menu. Does anyone know where this is located or how to to re-scale? Many thanks for any help.

    I'm not quite sure exactly what the problem is and I am no expert.
    However, if the photos are too small you can simply enlarge them to fit  the frame.
    To do this, select the clip in the timeline and open the Motion tab in the Viewer.
    Drag the Scale slider along until the photo enlarges the correct amount. (If the picture does not enlarge, double click the clip)
    If you have lots of photos which need exactly the same enlargement you can copy (Cmd C) the treated picture and then select all the others.
    Go up to the Edit menu and select "Paste Attributes".
    A window will open. Tick the "Basic Motion" box and all the selected pictures will be enlarged.
    They will then need rendering.

  • CS5: Content Aware Scale vs Image Size

    Can someone explain the difference between the outcome of using the new content aware scale versus just going ahead and resizing the image? Or is this a matter of preference? Thanks!

    Hi,
    Content aware scale is not so much about resizing an image as much as it is about extending an image. It allows you to stretch the existing pixels along a single axis without distorting (or with less distorting) of the subject or subjects of the image.
    In this first photo is the original and the area that needs to be filled with image data to the right.
    In this 2nd image I just scaled the image up to fill. As you can see, I've lost a lot of the image as I'm basically cropping it as I scale it up along both the x axis and the y axis.
    If I try to just scale the image along the x-axis the image will distort. The ship and the bathers get wider.
    In this 4th image I've used content aware scale to "pull" the pixels over only along the x axis. Notice that the ship and the swimmers retain their original appearance.
    Hope that helps
    Michael
    [signature deleted by host]

  • Flipping images in Aperture

    Is there a way to flip images like you can in Photoshop? I want to be able to flip certain images horizontally and vertically, but it doesn't appear that Aperture offers this function. I have been doing it with the external image editor, which I have set to Photoshop, but I would rather not do it that way since the newly saved image is a huge tiff file. Does anyone know if and how you can flip images?

    Go the adjustment hud or the inspector add a flip adjustment from the + menu.
    RB

Maybe you are looking for

  • Sony Z1U HDV Capture Settings for FCP 6.0

    Hi, I am shooting a project on Sony's HVR-Z1U HDV camcorder at HDV 60i NTSC. Does anyone have suggestions for settings to capture the material into FCP. I have FCP Version 6, part of the FC Studio 2 upgrade. Appreciate any feedback!

  • How can I set up personal hotspot on iPad 3

    How can I set up personal hotspot on iPad 3, I use 3G services from Etisalat  SIM

  • Can't move launchers in XFCE panels

    In XFCE, if I right-click on a launcher and click move, everything on both my panels (dual-head) goes ghosted.  If I click a location where I want the launcher, it shows the animation where it "moves back" and leaves the move mode, much like if I did

  • Start/End Date parameters that check day of week and using to set default values.

    Hi, I've got a report that presents data between a start and an end date. I want it to check if it's a monday and present data from the previous week, otherwise present data from this week. For the "Default" value of parameter @startdate, I've got th

  • Multi-Database Access

    I am attempting to access four databases with identical structure/tables containing information about data loading errors. I wrote a query providing a list of error ids with a count of each, which currently must be run in each database separately. A