Changing resolution of bins in Histogram VI.

Hello Everybody,
I have been trying to plot a histogram for my photon counting experiment. I am using the histogram.vi, it is working perfectly fine. I would like to add one feature to the histogram that I am plotting, which is changing resolution of bins. In the example code that I have attached, I have used random number generator (generates 1 to 100) to check the histogram which has 100 bins each with a resolution of one, suppose I want to use 50 bins each with a resolution of 2 or 25 bins with each bin holding 4 values, how can I do this?
Also, once the program terminates, How can clear the histogram memory, so that a fresh polt will be poltted? 
Thanks for any help
Pradeep.
Solved!
Go to Solution.
Attachments:
Live histogram plot.vi ‏17 KB

Hi pradeep,
you wired a constant "100" to the Histogram function and now you wonder how to change the number of bins? Don't use a constant here! Doh…
You don't wnat to clear the histogram, but you want to clear your data buffer. Just initialize the Feedback node!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Changing resolution in Solaris 10 sparc system

    How do change resolution in solaris 10 on sparc system?
    During install display was fine. Once boot to OS, display is bad. Need to know how I can change resolution to get a decent display on screen.

    I'm not too sure about sparc hardware, as I don't know which graphic server it uses, but on my system(x86) the same thing happened. What I had to do was make an xorg.conf as the install doesn't create one.
    On the CLI execute '/usr/X11/bin/xorgconfig' and this should step you through creating an xorg.conf file- as long as you are using the Xorg server of course.
    or
    execute '/usr/X11/bin/Xorg -configure' this should create a basic xorg.conf and you just edit it yourself where appropriate.
    Personally, if you know your graphic board,monitor, keybrd and mouse along with refresh rates the first method is probably best.
    H.T.H.

  • External Monitor changing resolutions on Macbook

    I have seen several people ask this question, but I haven't found a suitable answer. I have a MacBook running 10.6.8 at school. I teach and move from room to room hooking up to different projectors and monitors. The set up is just very unstable. Despite its supposed ability to remember settings, it rarely does and the resolutions are messed up as well as the display callibrations. I have an external monitor on my desk. Yesterday, I set the resolution to the native 1280x1024, when I plugged back in, it was back to 1024x768. For some reason, the higher resolution wasn't even appearing on the list until I fiddled with it.
    Why is this so buggy on this MacBook running this OS? Is there a way to force it to remember display settings better? Any tips?
    I know that other teachers have more problems than I do because they don't even know how to change resolutions or anything like that.
    Thanks for any tips, tricks or helpful comments.

    Try doing a Parameter RAM reset - hold down command/option/p/r keys at start up and wait for three chimes before releasing the keys.

  • How do I resize/change resolution of photos from iPhoto when used in iWeb

    I am shooting with a 7.1 Mega Pixel Canon to get enough quality to crop and print high quality pictures of my baby daughter and her adventures in the world.
    I have a website up made with iWeb, but when I select the photos in iPhoto and go Share / Sent to iWeb / photo page - I get a nice layout of the photos but at full resolution when the thumbnails are selected or the slide show is run. Although nice and sharp, this is a pain for anyone looking at the site even with high speed access.
    There must be some way to resize photos, but I have yet to figure that out with iPhoto, let alone iWeb. And as one photo at a time is a pain, there must also be a way to rescale a whole selection of photos that I want to use for a page - say her Disneyworld trip. I can't be the first person to run into this, but I have not found anything out there to point me in the right direction.
    Ideally I wold like to create a resized set from the originals - so I can still print and crop in high qulity. I also am not really sure what resolution would be best or easy viewing and download - that's probably subjective. 1200x800 comes to mind but I am open to suggestions.
    Perhaps resize is not the right term - changing resolution is probably more accurate, but there too I have not found an answer.
    Appreciate the help and suggestions.

    dan28088,
    Tried your site on two different browsers, using highspeed broadband; the site is, indeed, extaordinarily slow. We can dissect the thing down to the last file, but it won't change anything, as far as I can see. If it were me, I would host the site on another server. The .Mac servers are just plain slow, period. I think that is the primary problem here. Just my opinion, others may disagree.
    I created a new site this past weekend for a new project, and published it to .Mac. It contains a lot of jpeg files in slideshows (along with the usual png suspects!) . After reviewing it a few times, and not being satisfied with page-load speeds, I published to a folder and uploaded the site to space on 1&1 WebHosting.
    The page-load speeds TRIPLED. That's right...3X as fast page-load speeds. Even large, linked to files, 3MB+, load within a reasonable amount of time. (seconds)
    I still will keep a .Mac subscription, as I like and use all of the other features of the iDisk. But for serious website hosting, I think you will be better 'served' with a remote host. Your money with .Mac is certainly not wasted; the syncing services and other features of iDisk space that integrate with your local files are well worth the yearly fee. Again, only one user's opinion, based on experience.
    Mark

  • Can I change resolution and embed font in cloud acrobat?

    I need to be able to change resolution on one manuscript pdf, so I purchased the monthly cloud acrobat, but now I'm not seeing the capability to change resolution on the document.
    I don't have an ongoing need for high resolution pdfs, so my normal MS Word to pdf is usually fine.

    Nothing in the world can increase resolution if that's what you want. Reducing resolution is done via Save as > Optimized PDF.

  • Why can't I enlarge safari bar and bookmarks bar so the print is larger.  I can only do this if I change resolution on display.  I do not want to make my 27" smaller.  Any comments?

    After just installing Mountain Lion on mid 2011 iMac 27" I find it does not allow increasing size of font for Safari bar and Bookmarks bar.  The print is so small it is difficult to see.  I can change resolution of screen but the the size of the screen becomes smaller.  Not what I had in mind when I bought this iMac.  Is there any fix out there and is Apple working on this problem?  Any comments would be appreciated.  Thanks.

    Safari – Enlarge browsers toolbar text
    Firefox

  • Changing resolution programmatically

    Hello all,
    Does anybody know how to change resolution programmatically using java.
    Even in C or C++ so that i can use JNI.
    I can get the resolution by
    java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    but i am not able to set the resolution. Please suggest the solution for java 1.3

    Not currently possible. Planned for a future release.
    Regards,
    Jerry

  • Could the Change Resolution App for Retina mess up Display?

    This is a dumb question and I believe I already know the answer but I downloaded the Change Resolution App just to test out the 2880 setting. After doing so, I closed it out and then went to the settings on my laptop and chose best retina aka 1440. It seems like the retina display does not look as good as when I first took it out the box so I just wanted to make sure that by downloading this app and messing with it a few times, it didnt affect the way Apple sends you the laptop. Like I said, I went back and set it to the default setting but something didnt seem the same. I didnt know if Apple did something special to make it look so well but when you messed with the setting through an app it now has removed what they did and it doesnt go back to the way it originally was even when you go through the Apple settings and change it back to Best Retina display. Like I said, I know its probably a dumb discussion but I am not the most advanced when it comes to computer talk. I also read something about the way the display works through the 1440 setting allows 4x the pixels or something like that. I appreciate your help even for a noob question like mine.

    Anyone know the answer?

  • Imported mpeg videos change resolution.

    I am importing mpeg videos to the project on PP 7.2.1 (4) under Windows 7 and they seem to change resolution and aspect ratio. Not sure if there is a setting that can be changed to override the aspect ratio and resolution when importing videos to the project ? Otherwise the video plays fine despite looking a little bit strange with this new aspect ratio of 1.1851.
    The original video stream is (according to mediainfo):
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=15
    Duration                                 : 44s 478ms
    Bit rate mode                            : Variable
    Bit rate                                 : 9 071 Kbps
    Maximum bit rate                         : 8 900 Kbps
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 29.970 fps
    Standard                                 : NTSC
    After importing it to the project the properties are:
    Type: MPEG Movie
    Image Size: 540 x 480
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - compressed - Stereo
    Project Audio Format: 48000 Hz - 32 bit floating point - Stereo
    Total Duration: 00:00:44:15
    Pixel Aspect Ratio: 1.1851
    Does anybody know if this can be corrected somehow?
    Thank you

    Thank you - I went through the tutorials and I think I am running into a different issue (at least this is how ti looks).
    The original video when opened in source monitor (before importing it into the project) shows properties of:
    Type: MPEG Movie
    Image Size: 540 x 480
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - compressed - Stereo
    Project Audio Format: 48000 Hz - 32 bit floating point - Stereo
    Total Duration: 00:00:44:15
    Pixel Aspect Ratio: 1.1851
    and this is before importing it to the project just opening it in the monitor. Not sure what to think of it the video shows everywhere as 720*460 (16:9), when I click properties in windows in various media players and in MediaInfo but for some reason PP sees it as 540*480 (1:1851).
    Thank you

  • Force user to change resolution

    Is there a way to force the user to change resolution size?
    because my interface is sized 1024x768. I also want it to reset
    back to the resolution size that they set to when they exit
    director

    Kiryuu wrote:
    > Do Xtras need to be burnt on CD too? or is it already
    embeded
    Hi Kiryuu,
    Xtras do need to be bundled with your application on the CD.
    They can be
    either embedded into the projector or kept external in a
    folder called
    Xtras at the same level as the projector.
    I have info on this in my Stub projector tutorial at:
    http://www.fbe.unsw.edu.au/learning/director/publishing/projector.asp
    Whether using Third party Xtras (Commercial Xtras) or the
    ones that come
    with Director, the same rules apply about packaging them with
    your
    projector.
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au
    email: [email protected]

  • Changing dpi changes resolution

    Does changing the dpi of an image change the resolution of the image without changing the size?
    I have an image that is 300 dpi that I need to enlarge 400% changing the dpi to 75.
    I don't think manually changing the dpi to 600 will actually change the clarity of the image when enlarged 400%.
    Is that correct?
    Thanks
    Cindy

    First, DPI (dots per inch) is different to PPI (pixels per inch) despite the terms very often being wrongly interchanged. Photoshop works with pixels, not printer output dots.
    http://www.google.com/search?q=dpi+v+ppi
    Changing resolution with "Resample" enabled will result in changed pixels, but no change in the physical size (inches/cm/etc.) of the document.
    Changing resolution with "Resample" disabled will result in unchanged pixels, but there will be a change to the physical size of the document.
    You will not increase the clarity of an image by enlarging it.
    The best way to learn what happens is to try things and observe the results.

  • Why does the elements 13 change resolution when going into the editor -- it is huge and unusable

    why does the elements 13 change resolution when going into the editor? -- it is huge and unusable

    Many mysteries...
    Which is your OS version ?
    Your screen is 1920 by 1080 pixels.
    The problem appeared after having worked normally.
    When we select a picture from the organizer (album) and click on the edit button.  The editor software changes the entire computer resolution from 1920 x 1080 to   640 x 480 (very unusable).
    That's not clear for me: did you click on the 'Edit' button on the bottom right part of the organizer, or did you use the menu or the right click popup menu to open the editor? In the second case, you are in the editor workspace.
    We tried right clicking on the Elements 13 icon, select properties and under compatibility we made sure that "run in 640 x 480 screen resolution" was de-selected, and it was.    Cannot find any properties window for the editor?  
    The editor has its properties in the 'Edit/preferences' menu, but there is nothing about resolution there.
    Just to be sure : when you are in the organizer with the left 'Folders' panel shown, you highlight one of those pictures to edit. Then you right click and choose to "go to folder". Do the images are shown as 'offline' ? If that is the case, the original are on an external drive which is not connected, and what you are seeing is a 'preview' copy on your computer with 640 x 480 resolution.

  • Save for Web & Devices is changing resolution from 72ppi to 300ppi

    Hi,
    I'm writing an action to do the following.
    Image size - change resolution from 300ppi to 72ppi
    Automate - Fit Image - 600px x 600px
    Save for web and devices - JPEG medium.
    If I save at any stage (up to save for web & devices) the image is 72ppi
    However when I open it again after saving for web & devices and check image size it's 300ppi HOW?
    Am I missing something really stupid?
    Peter

    Hi Charles,
    Sometimes we have to go through meaningless steps...
    The spec for the job is to "automate" a process whereby we end up with a web suitable 600px JPEG of about 50k with © watermark.
    Of course they are expecting a 72ppi image, so its easier if thats what they get!!!
    The other requirement involves the fact that the web end of the business want to change the filename, so in order to keep a link, I write the filename to IPTC Title Field (using Peter Krogh's script)
    However I've now found that if I "save for web & devices" with copyright & contact info, I get IPTC title and 72ppi,
    So happy days....
    Many thanks, but now just more curious to know exactly whats happening!
    Peter

  • Imac try to change resolution

    Hi! I've an Imac G5 17" iSight... I've a strange problem... display sometimes became blue, like if I try to change resolution and in about 2 second all come back normal.. other times it happens the same thing but it changes resolution, and I see a very low resolution for about 3-4 seconds..then it changes again resolution to normal resolution (1440x900)
    When the display visualize low resolution I can see in the menu display on the top a very long list of resolution, like if it could see an external monitor I think...
    I've already try to reinstall Tiger but nothing...
    Sorry for my bad english
    Thanks
    Dario

    It happens again and this time the console reports this error..
    May 28 23:06:09 iMac-G5 /Applications/Safari.app/Contents/MacOS/Safari: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:09 iMac-G5 /Applications/Internet Connect.app/Contents/MacOS/Internet Connect: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:09 iMac-G5 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:09 iMac-G5 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:09 iMac-G5 /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/MacOS/iTu nesHelper: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/Quicksilver.app/Contents/MacOS/Quicksilver: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/Utilities/Console.app/Contents/MacOS/Console: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/Utilities/Activity Monitor.app/Contents/MacOS/Activity Monitor: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/Safari.app/Contents/MacOS/Safari: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/Internet Connect.app/Contents/MacOS/Internet Connect: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/MacOS/iTu nesHelper: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 loginwindow[67]: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206
    May 28 23:06:38 iMac-G5 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock: removeDisplayMapping: _CGSUnmapFramebuffer returns -536870206

  • Custom Theme: change resolution graphics problems

    Hi
    What can i do to make custom themes in a way that i can change the resolution anytime later by using that pulldown menu (e.g. 1024x768 to 800x600) without having problems with the graphics. I can make single themes in the right resolution but how do i tell keynote to use the right one when i want to change resolution? Or must i use only vector graphics?
    The problem by change the resolution of my custom themes is that all the graphics move somewhere and everything looks confused. When i go back to the right resolution graphics still stay confused and scaled to small or to big too????

    the way to do this properly is to make a theme file for each resolution, and then instead of just using the inspector to change the size, use the theme selector to choose your same theme in the new size. This will reapply the theme properly.

Maybe you are looking for

  • Creation of New Add on.

    Hi Experts I want create a new Add On for SAP Business One for Production Module, I want to know all prerequisites for creating a new Add On, so plzz guide me how to create a new Add On what else are the requirement. Regards Ashar

  • How do you move music from iTunes on a pc to ipad2

    How do you move music from iTunes on a pc to an ipad2?

  • DataProcessor generating XML containing special ampersand, equals sign etc

    Hi, Using 10.1.3.3.3 I am using the BIP API's to generate reports for an application, but have a problem where the DataProcessor is generating XML containing ampersands and equal signs '&', '=' from the database. The characters are causing the FOProc

  • Multiple movies from large raw footage

    Newbie to Premiere Pro. I have about 4 hours of Super 8 movies scanned to ProRes format. There are 3 large .MOV files totaling about 500 GB. I successfully imported them into a new project. But what I want to do is create multiple edited movies of mu

  • Translating   for SAP Script in ECC 6.0

    Hi All , How we can do the transalations  for SAP Script in ECC6.0? . I was not able to do as we do in 4.7 version  where we follow the following path Translations -> Long texts -> forms . Can any ody help me inthis regard ? Thanks , Dharma .