LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select buttons (more than one) in run time by mouse click

Hi everyone,

 

is it possible to select buttons (more than one) in run time by mouse click ?like we select files in windows.

I would greatly appreciate someone take a look at the attached Picture.

Thank you.

 

 

 

 

0 Kudos
Message 1 of 15
(702 Views)

What are you trying to achieve by selecting multiple buttons ? 

if they are not attached to a specific action/event, for example if they are options, you can select them then actuate by a second level of action to execute the selected buttons. 

 

 

0 Kudos
Message 2 of 15
(693 Views)

Your picture:

 

IMG-9368

 

LabVIEW is a very rich programming language, so everything is possible!! You could use mouse-down events, detect the coordinates and pressing of shift and ctrl, etc.

 

Unfortunately, we have no idea what your picture shows (many scalar buttons? An array of buttons? A cluster of buttons? A radiobutton control of buttons? etc etc.)

 

If you need help, a first step would be to attach your code.

 

(You might also try to learn how to take screenshots without using a camera. You picture is not worth 4MB!)

 

 

0 Kudos
Message 3 of 15
(675 Views)

Thank you for your response.

let me explain, cluster (line 1) has 16 buttons and is connected to event cases, and each button transmits different data serially. if I want to send data to T1 then I will click on T1 and it will send data but it is very time-consuming for a user if he/ she wants to send data to more than one button so he/she has to click on the buttons one by one to send data.

 

0 Kudos
Message 4 of 15
(671 Views)

I was trying attached vi but the file size is more than 10 MB.

 

0 Kudos
Message 5 of 15
(653 Views)

@lal_00 wrote:

let me explain, cluster (line 1) has 16 buttons and is connected to event cases, and each button transmits different data serially. if I want to send data to T1 then I will click on T1 and it will send data but it is very time-consuming for a user if he/ she wants to send data to more than one button so he/she has to click on the buttons one by one to send data.

 


You are really not explaining anything that I can understand. A button does not "transmit" anything the code connected to it does. What determines the speed?

In any case, you need to disconnect the UI from the "sending" so you can queue things up as desired while processing is still happening. An event case should not contain any lengthy code, ever!

 

If your code is >10MB, something else is wrong. Does it contain huge bitmaps and decorations? Does it contain gigantic amounts of default data? Do you separate compiled code from the VI? How big is it when you zip it up?

0 Kudos
Message 6 of 15
(631 Views)

I attach the vi maybe it helps.

 

0 Kudos
Message 7 of 15
(623 Views)

So your objective is to reduce the Number of Button clicks by the User ( Once clicked the code will take care of sending the data)

 

In that case you can group the Button based on the Frequently used Buttons/Favorites  and assign a single button and you can programmatically trigger the button action for more buttons with single common button.

 

Waiting to see methods if any for the same.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 15
(577 Views)

I looked at your picture.  I couldn't figure out what I was supposed to see.  [Pictures are generally almost useless on this Forum.]

 

Sounds like you need two kinds of buttons.  Since you only have one mouse, you can only "click" one button at a time.  But you can have a "Do It" button that says "Do whatever it says to do on the above 43 buttons".  Depending on what the Buttons really are, you could also have a "Clear all Buttons" or "Set all Buttons" button ...

 

Bob Schor

0 Kudos
Message 9 of 15
(566 Views)

yes, Thank you. it will work if I only want to set or clear all buttons, but it depends upon the user that has many buttons he wants to set or clear.

I need I solution who can I select the button in LabVIEW like we select multiple files in the operating system (windows).like as I select in the attached picture.

 

0 Kudos
Message 10 of 15
(536 Views)