Example Code

Deck of Playing Cards

Code and Documents

Attachment

Download All

Overview

This example VI generates a deck of playing cards (Aces High) within u16 address space, and return an array of these cards as uniquely identifiable.

 

Description

This VI creates a deck of cards (unique ID by number) for use later with a shuffle feature. For example, 101 is the 1 of Hearts, 111 is the Jack of hearts. In this game, 100 = Hearts, 200 = Diamonds, 300 = Spades, 400 = Clubs

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Deck of Cards 2012 NIVerified.vi".
  2. Run the VI.

 

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.