LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

please help me regarding check box..plzzzzz

Hi,

     I posted the doubt about checkbox but no one replied. Please any one give me idea for making the operation. The attached VI shows the checkbox(regulated) in front panel with some textboxes below. So, now i want to make when the checkbox is clicked(on or regulated) i want to display first six textboxes with front labels and when it unchecked(off or unregulated) i want display only last two text boxes with front labels. And i want to deliver the data from read and write block to these text boxes.

            please help me i waste 3 days for this and i did not find any way. Looking for big help.

0 Kudos
Message 1 of 15
(3,749 Views)

You can use one of the design pattern to achieve what you need. I have attached just a skeleton (not the complete implementation) to give some idea. In the Regulated case it checks the Regulated checkbox. Param_Display case is to display first 6 variables if Regulated checkbox is checked. The Reading_Display case is to display the Volt and current when the Regulated checkbox is un-checked.

Hope this helps.

 

***************************

I work for Kudos!

***************************

*************************************************
CLD
*************************************************
0 Kudos
Message 2 of 15
(3,739 Views)

First of all, if the user is supposed to operate the checkbox, it should be a control, not an indicator. right?

 

Things like this are most easily done in a parallel event loop that handles nothing but UI changes. Here's a quick draft. It needs a little bit more code to stop the lower loop if the upper loop stops due to error. I am sure you can figure something out.

 

Some other comments:

Do you really need to configure the serial port and close the session with every iteration of the loop? Typically these things need to be done only once, before and after loop, respectively. That VI needs some serious work in general.... 😉

.

 

Download All
0 Kudos
Message 3 of 15
(3,728 Views)

btw, my code shows either the first two or last six indicators. Change the diagram constant to adjust according to your needs.

0 Kudos
Message 4 of 15
(3,717 Views)

The attachment what you have given is not opening due to the later version. Could you again post it for me. I am using labview 2009.

0 Kudos
Message 5 of 15
(3,706 Views)

Mine is in version 2009. 🙂

0 Kudos
Message 6 of 15
(3,704 Views)

Not sure if you were refering to my post...I saved mine for LV ver 9.

*************************************************
CLD
*************************************************
0 Kudos
Message 7 of 15
(3,687 Views)

I dont know why it showing some frustrating error. can you do something to shut up the attached error when ever i try to open your file.

0 Kudos
Message 8 of 15
(3,680 Views)

Yes, i got your file. i did not check before posting.

                                Thank you.

0 Kudos
Message 9 of 15
(3,675 Views)

I did not understand that what is going in the given the VI's regarding checkboxes. But any one explaine me about how we can do with checkboxes, when the user click it(ON state) i want to show some textboxes with information and if unclicked (OFF state) i want to erase previous boxes and display another text boxes.

 

              This is my first design in Labview. Please tell me in clear way.

0 Kudos
Message 10 of 15
(3,663 Views)