LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose type of boolean

Hello to everyone.
First of all sorry for my english, I still have to improve it.
I want to do an application where the user can select the type of boolean he wants to use. There are some different types of booleans, the square one, the round one.... then, the user have to select among them so in the next VI it only appears the selected boolean.

I don´t know if I´ve explained it correctly, but if you have any question, let me know.

Thank you.
Regards.
0 Kudos
Message 1 of 9
(3,086 Views)

Could you post some quick screen shots that mock-up what you want?

There are a number of appraoches that range from the simple to ....

Simple:

Create one of each type, and only show the type they chose

Less-simple:

Create three type defs and rename prior to dynamically opening a VI that uses the type def.

Border-line complicated:

Picture Ring with iamges to match the booleans you want and then act on Mouse down events.

Rediculous (my fovorite):

Use a picture control

So "pick your poison" and let us know what you like.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 9
(3,078 Views)

the less complicated simple is my favorite.

Ben could you expnd how you would implement with picture control?

Message Edited by Gabi1 on 09-11-2007 08:33 PM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 3 of 9
(3,072 Views)
Gabi1 wrote;
 
"

Ben could you expnd how you would implement with picture control?

"
 
In breif:
 
1) All of LV's controls have a method "Get image". This image can be inserted into a picture control. I demonstrated this in the "Obfuse Code" random walk example where I create 135 booleans with different colors and labels.
 
2) The Picture control support "mouse over" and mouse down events. The click can be captured and used to find the "virtual control".
 
I have done this in multiple applications that unfortunately I am not at liberty to post. I'm still waiting for someone to post an example in the public forums. The closest example is Ed Dickens example.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 9
(3,062 Views)
1) All of LV's controls have a method "Get image". This image can be inserted into a picture control. I demonstrated this in the "Obfuse Code" random walk example where I create 135 booleans with different colors and labels.

i remember this one. pretty cool Smiley Very Happy took me some time to figure it out...

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=147#M147

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 5 of 9
(3,055 Views)

First of all, thank you for your answers.

Ben, the last thing you said it´s exactly what I want, but I don´t need 135 booleans. I think five would be enough.

I need to do a graphic interface where the user can select the type of boolean, the colour, the size and the location in the first VI, and in the next VI, it has to appear the type of boolean (colour and size too) in the different positions the user marked with the mouse. But it has to change the position, so it only has to appear one boolean per time.

Thank you

Regards

0 Kudos
Message 6 of 9
(3,049 Views)
"

Ben, the last thing you said it´s exactly what I want, but I don´t need 135 booleans. I think five would be enough.

"

Then start with the example in the thread Gabi1 linked.

Start stripping it down until you under stand how just one button works. Then build up from there using more than one boolean as the "prototype".

If you get stuck, post some code that we can look at and someone will "give you a push".

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 9
(3,044 Views)


@Sawyer wrote:
There are some different types of booleans, the square one, the round one.... then, the user have to select among them so in the next VI it only appears the selected boolean.

OK, we have the "how?" answered, which leaves is with the "why?" 😮

Is this really something that is crucial to the operation of the VI or are you just trying to duplicate "Skins" (e.g. like in media player). To spend a lot of time to implement something like that, I would need to have a really, really good reason first. 🙂

Message Edited by altenbach on 09-11-2007 01:02 PM

Message 8 of 9
(3,033 Views)
It´s for my project of the university. I´m doing a project of EOG acquisition and processing, and first of all I have to do program of estimulation. That´s why I have to do this.
0 Kudos
Message 9 of 9
(2,998 Views)