ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 15 條)
3,838 檢視

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 積分
2 條訊息(共 15 條)
3,828 檢視

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.... 😉

.

 

0 積分
3 條訊息(共 15 條)
3,817 檢視

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

0 積分
4 條訊息(共 15 條)
3,806 檢視

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 積分
5 條訊息(共 15 條)
3,795 檢視

Mine is in version 2009. 🙂

0 積分
6 條訊息(共 15 條)
3,793 檢視

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

*************************************************
CLD
*************************************************
0 積分
7 條訊息(共 15 條)
3,776 檢視

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 積分
8 條訊息(共 15 條)
3,769 檢視

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

                                Thank you.

0 積分
9 條訊息(共 15 條)
3,764 檢視

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 積分
10 條訊息(共 15 條)
3,752 檢視