Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Simon Say's Game - Reading limited amount of variables from array

$
0
0

Hi Guys,

 

I'm new to the forum, so i appologize for the rule breaking (if there's any) and my bad english.

For one of my classes i decided to create the "Simon Say's - Memory Game" as my final project.

We using CVI/LabWindows 2012, just to be clear about it.

The problem i'm experiencing is that I can read from the array of colors i created.

I have a main panel where the start playing button located, after i press it the playing panel is poped up and and array of 150 integers is create with numbers between 1-4 (every number is associated to different command button) . The commnad button are initialy are dimmed, and there 4 command buttons (4 different colors).

What I need to do is to read from the array X amount variables, and using a switch to decide what button "blink".

I've tried using a timer/loops and every other thing I could think of (it's very basic course, so no crazy functions) and have nothing to show for.

Can't figure out how to read a variable from array in Y spot and make it blink ( commnad button goes from dimmed to undimmed-waits for some time-becomes dimmed again) and then read X+1 variables from array and display them in the some order on the screen using the dimmed/undimmed.

Every coment will be appreciated.

 

Thanks in advance!

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>