LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create GUI in Labview - TOWER OF HANOI

hello there,
Im very new with this LABview software, so i am hoping i can get some help from here and teach me how to get around Labview.
I have developed a block diagram to show process of the infamous 'Tower of Hanoi' . I am now trying to create a GUI in LABview, so that for every movement of the block from one tower to another, can be seen on GUI Labview.. But this function is still new to me. can someone teach me how to do it?

Thankss!

0 Kudos
Message 1 of 17
(12,969 Views)

What function is still new to you?

 

What have you tried?

 

Please follow the link in this message.

 

Also, I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 17
(12,948 Views)

You can't have a LabVIEW block diagram without a front panel so technically you already have a GUI interface (even if it's blank).  As RF suggested, look into the basic tutorials, but why don't you also post the VI you made so we can give you some ideas.  I assume you want to the front panel (GUI) to show an animated representation of the disks moving, right?

 

EDIT: Wiki link for Tower of Hanoi.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 17
(12,932 Views)

Hye thanks for the links! Im gonna spend my night tonight going through the tutorials! 🙂

As for the recursive Tower of Hanoi vi, i have attached below.. 

 

Yes you ' re right.. I'm trying to make the front panel to show the movements of the disks . Have no clue how to get it moving!

0 Kudos
Message 4 of 17
(12,904 Views)

There are many ways to do it. 

 

Easy:  Just display three arrays of numbers (that represent the size of the disks) and watch the numbers get shuffled.

Medium: Make custom controls.

Hard: Use a picture control and actually animate objects in it.

 

After you look over some basic learning material come back to this project and let us know how it goes.  Good Luck!

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 17
(12,894 Views)

Another easy to medium approach would be to use an XY graph and represent the points as bars. One bar for each disk.

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
0 Kudos
Message 6 of 17
(12,849 Views)

Hello!

Here is the latest version of the animated 'Tower of Hanoi' ..it is done in a separate .vi data.

However, i cant get any of the disk moving. Is there anything wrong somewhere ? and how do i connect my 'Hanoi Recursive. vi' with this animated Hanoi_GUI .vi ?

 

The objective is, when i set the number of disks on the Hanoi Recursive.vi data, the graphic in the 'Hanoi GUI .vi' will also change accordingly and starts to move..

 

Thanks!

 

 

 

 

Download All
0 Kudos
Message 7 of 17
(12,770 Views)

I have combined the two .VIs above into .vi.

Please see attachment below.

Can someone tell me how to make the disks move according to list of movements which can be found in the Front Panel?

 

Thanks

 

 

 

0 Kudos
Message 8 of 17
(12,765 Views)

Hye, 

is there anyone out there can help me , teach me if I am doing anything wrong... Im going nowhere with this diagram. 😕

 

Thanks

0 Kudos
Message 9 of 17
(12,661 Views)

I would check this out as well.

 

https://decibel.ni.com/content/thread/3733?tstart=0

0 Kudos
Message 10 of 17
(12,653 Views)