Any tips on programming craps in labview?

Figuring out how to make the dice work is difficult enough, but I'm no LabVIEW expert. The goal is to make a working craps game with a case structure. One case for each of the 6 dice, plus a 7th case for default. Everything has to be in a while loop with a timer and a master stop button. There has to be a button for the user to start a new game anytime. A numeric display and logic should be used to determine the score of the dice. Any pointers???
Solved!
Go to Solution.

Hi Koen,
Christian Altenbach has this explained somewhere else (a lot of times) before...
It's about probability of your RND values: when rounding to next you get different probability for values at the "edge" compared to values in the "center"!
Example:
Multiplying RND values with 5 results in values between 0 and 5. Rounding those values "to next" will give "1"-"4" more often then "0"/"5" as the range [0-0.5] is smaller than the range [0.5-1.5]...
Using RoundDownwards will always use the same range [0-1], [1-2], ... for rounding and so will have the same probability for each dice!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • TS4268 I have NEVER been able to activate my iMessage on iPad with Retina Display - My Apple ID/Password works fine on all other programs. iSO is up to date. No troubleshooting has worked. Any tips please?

    I have NEVER been able to activate my iMessage on iPad with Retina Display - My Apple ID/Password works fine on all other programs. iSO is up to date. No troubleshooting has worked so far. Any tips please?

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. If you did not do step 4 properly, start all over again.

  • I have lost over 20,000 photos in my iPhoto'08 program (v 7.1.5). Any tips on how to relocate them?

    I have lost thousands of photos in my iPhoto'08 program (v 7.1.5).  I don't think they are lost from my iMac as the storage amount hasn't decreased but the last several years of picks (over 20,000) are not showing up.  Any tips on how to relocate them?

    Hi LarryHN-thanks for your quick reply!!
    Nothing recently changed that  Ican think of! I went on vacation and when I returned, I uploaded my new photos.  That's when I discovered that the new photos were in the library but very few other photos were.
    When you say to back up the iPhoto library, is this something different that backing up the entire iMac to an external hard drive?

  • I have a DI-151RS, or DI-150RS (?) from DATAQ. Any one know how to program it in LabView?

    I have a DI-151RS, or DI-150RS (?) from DATAQ. Any one know how to program it in LabView?

    You will find it at:
    www.ultimaserial.com/classroom.html

  • How to open labview program with Quit Labview function inside?

    Hi Any idea how to open labview program with  Quit Labview function inside?
    I forgot to add and set the condition of the type for this program.
    If the program is an application, it would close straight away.
    If it is still labview work, it will go straight to editing program without closing.
    So I need to recover, open it and make some changes.
    Clement
    Solved!
    Go to Solution.

    Put the VI in a project and open it from there, then it shouldn't autorun. You can use App.kind property of application to decide whether to close or not.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.

    why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
    The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening? 
    Any help would be very appreciated.

    It looks that way..
    "When LabVIEW starts it contacts the service
    locator to removes all services for itself. This request is triggering
    the firewall.This is done in case there were services that were not
    unregistered the last time LabVIEW executed- for example from VIs that
    didn't clean up after themselves"
    This is not yet fixed in LV2009.
    Message Edited by Ray.R on 11-04-2009 12:25 PM

  • How do experienced editors/colorists make video look better? Any tips?

    I am an amateur editor working on a documentary about WW II airplanes.
    The footage was shot on a Cannon HV30 in HDV with the 30p mode. The footage looks great (with some needing color correction), but still looks "videoish" when played on a standard TV.
    I was just curious about what more experienced and artistic editors use to make their material look better.
    I'm not talking about drastic changes like one might make to a dramatic film, but slight stylistic changes/additions to take the edge off of the video.
    For example I've read about adding a very slight channel blur, reducing the contrast a bit, etc.
    Any tips would be appreciated.
    BTW, I've stayed in HDV for the edit and will follow these instructions for finally ending up on a SD DVD: http://www.kenstone.net/fcphomepage/hdv_timeline_to_sddvd.html

    It really depends on the tools that you have. It sounds like your are using a consumer grade camera to shoot a documentary, which makes color grading in post that much more important. Obviously the better the camera and lighting the better your video/film is going to look. Because your working with a HV30 you're going to have to take a few extra steps to make your footage shine in post. I'm not a huge fan of Magic Bullet. If your under a deadline, and you want to impress a client, sweet use it, but if you take pride in your work as a digital artist, and want to understand how color grading works with video I would recommend getting to know these programs: After Effects, Photoshop, Color, and Final Cut Pro. Each of those programs has the following effects/parameters that you can use for color grading: Saturation, Levels, Curves, Contrast/Brightness, and Composite Modes in FCP, PS, and AE. Do not get too comfortable using 3rd party plugins otherwise you'll become dependent on them.
    Peace
    GC

  • Can I integrate my exe program into my LabView software?

    I developed a LabView software. Can I integrate my old xx.exe program into this LabView software? Any information on this point would be appreciated.
    Yun

    The way to do this is to redirect the text output from the program to a file, and then read the file into LV. I unfortunately don't have all the information with me, but do a search in the archives here. The way I learned about is was a discussion a couple years ago. You can also check online for information related to writing DOS batch files--which is how you actually run the DOS program--that should get you pointed in the right direction.
    So it is possible, messy, but possible.
    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

  • Performing Live with Logic Pro - any tips?

    Hello to everyone on this forum,
    I only recently joined, but have been using Logic ever since I learned to engineer my own music.
    I was wonderring if anyone here performing live with Logic?
    I have been using this programm since version 4 and ever so happy with it as far as the recording in the studio is concerned. However the time has come to try and play it all out live.
    Many of my friends suggested Ableton Live. I went ahead and purchased it. But to my great disappointment the midi section of Live is far from perfect. I couldn't get a simple task of changing programs and banks to be communicated to the external modular properly and after a week of frustration I am back on Logic's case.
    Majority of my songs up till recent have all been written with audio files, where Ableton would be very useful, but all the new stuff is using the midi. So I am in split minds about the situation.
    I am not quite sure how to set up a live performance of a few songs in Logic. Any tips here would be appreciated!
    Also do any of you use Ableton and Logic at the same time on stage? Is it safe on one computer? I mean how likely is it to crush during the show?
    Much respect to all in the know.
    Natalia
    imac G5   Mac OS X (10.4.7)   LogicPro7.1/Saffire/Midisport2X2/NordG2Modular/KorgER1/EA1/Novation SL37

    If you do a search on this forum for this very topic, you should find your answers there. Hope this helps!
    X
    and welcome to the forum!

  • Any tips for novel writing in Pages?

    I am determined to finish my next novel in Pages. I can't take the weight of Word any more. Does anyone have any tips for using Pages in this way, producing a manuscript that will probably run to 130k words in the end? I have tried everything in this field on OS X, from Mellel to Nisus, Ulysses and Copywrite, and I think Pages suits me best.
    What I have discovered so far...
    Good points
    Reliability
    Ease of use
    Speed
    The fantastic search and I think unique show search feature which is now my primary way of navigating the manuscript.
    Could be better
    No keyboard shortcuts for styles
    It's simpler to number chapters manually than mess around with lists
    The word count is awkward to get at
    No outlining or easy navigation by chapters
    Occasionally I get red underline spelling errors for words that are spelled correctly. This goes away if I right click and may be due to hyphenation though that is turned off for the document.
    G5 dual   Mac OS X (10.4.2)  

    Bodsham,
    I started my novel with Nisus, switched to CopyWrite, then wrote the bulk of it with Pages. All in all, using Pages was a terrific experience. But the use of a word processor for a novelist is a very, very personal and subjective thing.
    Things a novelist might like about Pages
    - What you see on the screen is beautiful -- Pages renders text extremely well
    - The system for defining styles is excellent. When I first fired up Pages 1.0, it took me 15 minutes to make a complete manuscript template, including headers
    - It's very stable. Unlike Nisus, which was a nightmare (adding blank pages and weird indents all through the document), Pages behaves itself very well
    - Plays nice with Word. I'm able to open and export Word docs very successfully
    - Brilliant search feature; provides a list of word occurances, then lets you click on them
    - Bookmark feature lets you easily jump from chapter to chapter
    Things a novelist might not like about Pages
    - A few people report a typing lag. If you experience it, it's a significant problem
    - Bookmarks, while excellent, won't permanently sort alphabetically -- only numerically. Every time I open my document, my bookmarked list of chapters is sorted incorrectly. Not a big deal; just a minor annoyance
    - Very mouse-intensive program. Not a huge issue for a novelist since we mostly just hit a carriage return; not a lot of styles in a text-based manuscript
    - Gobbles up a lot of screen real estate. In order to have various inspectors and panes open, it's good to have a larger monitor, otherwise you'll find things sitting on top of your text
    I'm sure there are many more strengths and weaknesses, but that'll get you started. By the way, you can download Devon Technologies' excellent and free Word Services that'll add a lot of very useful features (including word count) to your services menu. Get it at http://www.devon-technologies.com/download/index.html
    -Dennis

  • Updated to iTunes 11.1 and many of my podcasts were, as far as I can tell, deleted from my account. 'This American Life' in particular, cannot be redownloaded for free and I want the unlistened podcasts I accrued to come back! Any tips or suggestions?

    Updated to iTunes 11.1 and many of my podcasts were, as far as I can tell, deleted from my account. 'This American Life' in particular, cannot be redownloaded for free and I want the unlistened podcasts I accrued to come back! I'm also afraid that if I sync my iPod now, the podcasts that I have on there but have been removed from the computer, will also be removed from the iPod.
    Any tips or suggestions?

    What really cheeses me off here is that Apple isn't allowing users enough customization.  With each update of iTunes (and the OS and iOS) we're forced to give up something that worked well for the way we want to use the app and make do with fewer (and lamer) options.  If Apple keeps this up, they're going to start losing customers fast.  I mean if this isn't fixed soon, I'm pretty sure I'm going to give up on iTunes, and then I'll probably go ahead and get a Galaxy when I need to replace my iPhone.
    What I don't understand about how they won't let users delete the list of available podcasts now is why?  How is this making it a better program?  I can understand that not all users are capable enough to right-click on a feed and select "Show all available episodes", so I can see why they want the complete list to be the default (and, surprise, it already was).  But to not give users the option to delete that list?  It's inconsiderate because it makes navigating feeds with a large back catalogue really frustrating.  I'm flabbergasted that no one at Apple considered all the podcast feeds that keep hundreds of episodes available when they removed this feature.  It smacks of rank incompetence.
    What improvement were they trying to make here anyway?  There was nothing wrong to my mind about how podcasts were managed in previous versions.  Whatever improvement they were trying to make here, they should have realized that many users would at least want the option to keep things the way they were.
    And reverting to a previous version is no solution.  I can't sync my iPhone with the new iOS without this update, and (while I do have some issues--specifically how you can't play podcasts in the Music app anymore) I do like the new iOS.

  • Tried unsuccessfully to restore my MBP, running the Mac OSX Lion, to factory settings. I keep getting the "can't download additional components for the Mac OSX Lion" error when reinstalling the OSX Lion. Any tips on how to resolve this problem?

    Hello! Tried unsuccessfully to restore my MBP, running the Mac OSX Lion, to factory settings. I keep getting the "can't download additional components for the Mac OSX Lion" error when reinstalling the OSX Lion. Any tips on how to resolve this problem?

    Hi
    Given that your answer to 1. is 'pre-installed' and 3. is 'No', I think the only thing to do is to take it to an Apple store (ideally the one you bought it from) and have them reinstall it for you.
    The intended solution in cases like yours is that you should be able to reboot and install even a wiped disk by using Apple's servers over the internet (you do this by restarting with 'command-r' and choosing 'reinstall Lion'). However if this isn't working for you then you need to get the store to do it. Don't let them fob you off with 'go home and try again'. Have them do it in the shop (you're still covered by Applecare warranty so it should cost you nothing save the inconvenience of the trip and possibly leaving the machine there while they fix it).
    A reinstall should leave all your own personal data and programs in place.
    Note for future: when you get it fixed, first thing to do is buy a cheap external drive and start keeping a backup (either Time Machine or clone with Carbon Copy Cloner).
    Message was edited by: softwater

  • How convert to below lab window ansi c program in to labview

    hi
    here how convert  to below lab window ansi c program in to labview program ,please find any body sollution for this problem.
    Attachments:
    Template.c ‏8 KB
    Template.uir ‏13 KB

    Instead of starting with old c code -- which is likely only marginally useful anyways -- you should start with program requirements.
    What does the program do? What are the operational constraints? You know, all the usual stuff.
    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

  • Waveburner won't recognize my M-Audio Fast Track after upgrade to Lion. Any tips?

    Doesn't show up in drop-down menu under Audio preferences like it should. Tried restarting the sound card etc etc. Everything works fine in Logic (and iTunes etc. Just not in Waveburner.) I use Waveburner all the time for mastetring and this is a pain. Any tips on a fix or workaround?
    Thanks!

    Did that work for you?  I was looking at that too, but was discouraged by having to use a sparsebundle given Snow Leopard had such great NAS support. 
    FYI to everyone else, I upgraded my ReadyNAS firmware to 4.1.8.  NetGear indicated the following updates with the nre firmware, but it didn't fix this problem:
         New features and enhancements
         1. Added support for Mac OS X 10.7 “Lion”.
         2. Added warning when NFS access to home shares is enabled.
         3. Added a redirect for http://<host>/ip to https.
         4. Added enhancements to advanced AFP permission settings.
         5. Provide download links for exported users and groups instead of asking for email.
         6. Updated ReadyNAS Remote to the latest revision.
         Bug fixes
         1. Fixed javascript error in FrontView.
         2. Delay auto power-off if backup jobs are still queued.
         Limitations
         1. IE 6 no longer supported.
         2. Drives greater than 2TB are not supported.
    I found this link which I thought had some useful information: http://carryflag.blogspot.com/2010/06/imovie-event-library-on-network-drive.html
    Some people reported success with the terminal command:
         defaults write -app iMovie allowNV -bool true
    But apparantly, after the Lion update, fewer people reported success with it.  Still looking though... If anyone else has more symptoms to add, please let me know.  I might try to use a sniffer program and see if I can pull a packet capture.  That might reveal some info.... 
    On another note, has anyone had any problems connecting to their Time Capsule in the same fashion?  I had an idea of connecting a USB Raid Array to it and connecting through the TC, but wanted to know if anyone had any thoughts or experience with that....  Thanks.

Maybe you are looking for

  • Creative Audigy 2 NX Bit Depth / Sample Rate Prob

    This is my first post to this form Down to business: I recently purchased a Creative Audigy 2 NX sound card. I am using it on my laptop (an HP Pavilion zd 7000, which has plenty of power to support the card.) I installed it according to the instructi

  • Enabling Subject/Focusing Distance in Aperture 3

    In Adobe Bridge CS4 I can see in my RAW master file the "Subject Distance" in the EXIF. Now in Aperture 3 the Subject Distance and Focusing Distance are blank. Now, is this a bug to be solved or do I need to enable something within Aperture to displa

  • Delete delivery document, use: BAPI_OUTB_DELIVERY_CHANGE

    hi friends, I want to delete a delivery document. I think BAPI_OUTB_DELIVERY_CHANGE will be useful for my purpose but I cannot find any field indicating the operation type like 'U'pdate, 'D'elete etc. is it the right bapi function or should i use a d

  • Adding secondary ACE Back to production

    I had to take out the standby ACE from production today and want to insert it back now .. what is safe way to add it back ..It will be good if we can remove the peer address from the standby ACE and add it.. But for that i have to insert the ACE to t

  • LiveCycle Forms: Propagating content from a paired field

    My question is really twofold: Can I pair heterogeneous field types (eg text and dropdown)? Can I propagate to other fields a value entered in a field that is tied in a pairing? BTW: I have no experience of scripts. I have a complex form over several