Example Code

Shuffle Playing Card Deck

Code and Documents

Attachment

Download All

Overview

This example VI demonstrates the use of functions in array palette to shuffle the card deck.

 

Description

This VI shuffles the card deck created by another example 'Deck of Playing Cards' and returns an array of shuffled deck. It should be used as an sub VI of that example and could be further used for shuffling other deck arrays. The link of the example 'Deck of Playing Cards' is shown below:

forums.ni.com/t5/Example-Program-Drafts/Deck-of-Playing-Cards/ta-p/3498979

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Shuffle Card Deck 2012 NIVerified.vi".
  2. Input an Card Array.
  3. Run the program.

 

Additional Information or References
VI Snippet

Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.