01-20-2009 02:24 AM
Dear all,
I am working on an application where i have to show different designs of chessboxes to the user. The user can select a particular design of the chessboxes and i want to display that selected desing on the screen.
The chessboxes on the screen change their color from black to white and vice versa after 1 second.
I have created a VI which will change the color of the chessboxes, but i am finding trouble about how to create different desings and showing them to the user.
I am attacing 2 files here.
1) The image file showing different design patters that i want to show to the user.
2) VI which will change the colour alternatively.
Please suggest me a solution of how can i create different desing patterns and how can i present them to the user.
Thanks,
Ritesh
Solved! Go to Solution.
01-20-2009 04:56 AM
Hi Ritesh,
i'm not really sure what you mean, but why don't you use a 2d array in the "checkers.vi". What else do you need to change?
Mike
01-20-2009 06:05 AM
Hi Mike,
If you ran the VI, you could see 64 boxes changing from black to white and vice versa.
I want the user to select a particular pattern from a Window which will display all the patterns available. In the JPG image, i place 4 different patterns that could be shown to the user.
I just want to know how can i display all the patterns to the user so that he can select a particular pattern and according to the patterns, the boxes will be shown on the screen?
I think "Pict Ring" will solve the purpose but i am not getting how to customize that control to show all the pics that i want to show.
you mentioned about 2-D array.
How will that be useful ?
Thanks,
Ritesh
01-20-2009 08:22 AM
Hi Ritesh
If you use the clasic simple boolean flat square button as a 3d array and use property nodes to change the colours I think you can get what you need. Take a look at the attached vi.
Hope this helps
Ian
01-20-2009 09:06 AM
01-22-2009 02:25 AM
Dear all,
Thanks for your valuable comments.
At last i got some suceess.
And as i said Picture control was the way to go. Though i the task has been done, but i ma still not sure is there's a better way to do the same.
I am attaching my VI here. Pls have a look at it and let me know if i could do it in a more efficient way.
I am changing the design pattern by changing the index of a 2-D array on the front panel.
Thanks,
Ritesh