04-28-2011 01:26 AM
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!
04-28-2011 08:37 AM
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
04-28-2011 08:59 AM - edited 04-28-2011 09:01 AM
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.
04-28-2011 10:08 AM
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!
04-28-2011 10:31 AM
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!
04-29-2011 09:14 AM
Another easy to medium approach would be to use an XY graph and represent the points as bars. One bar for each disk.
05-05-2011 02:54 AM
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!
05-05-2011 03:17 AM
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
05-18-2011 01:48 PM
Hye,
is there anyone out there can help me , teach me if I am doing anything wrong... Im going nowhere with this diagram. 😕
Thanks
05-18-2011 01:53 PM