LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Move Decoration When Running.

Solved!
Go to solution

As a student learning labview is a new start. The project for the course was to make a checkers game, but there was some issues moving decorations when running the program. Could someone offer some help on how to move the checkers pieces on the board while the program is running? I've attached an image to my board.

 

Thanks!

0 Kudos
Message 1 of 4
(2,504 Views)

@Andy192 wrote:

As a student learning labview is a new start. The project for the course was to make a checkers game, but there was some issues moving decorations when running the program. Could someone offer some help on how to move the checkers pieces on the board while the program is running? I've attached an image to my board.

 

Thanks!


  1. You should attach your VI, and not a picture. How can we debug a picture??? If your car is broken, you make a photo and send it to the mechanic? 🙂
  2. I do not recommend to use decorations! Even if it possible, usually a pain to handle the references.
  3. You could use a 2D Picture control, and set the required pictures to this control. Make it a typedef. Finally, make a 2D array control using this special 2D Picture control. Your code will be much easier to handle.

Edit: You can also use Picture Rings for the 2D control/indicator...

0 Kudos
Message 2 of 4
(2,456 Views)
Solution
Accepted by topic author Andy192

No need to move anything. Create a picture ring with all possible views of a square (empty red, empty black, red piece, red king, black piece, black king, etc. etc.) , then create a 2D array of them. A 8x8 numeric array is the corrent board data, determining what to show.

 

For some ideas, have a look at my old tic-tac-toe example. Maybe it can give you some ideas.

 

(Of course if you want to animate the moves, you probably need to use a picture control.)

0 Kudos
Message 3 of 4
(2,446 Views)

Thank you, this is helpful.

0 Kudos
Message 4 of 4
(2,387 Views)