02-02-2011 11:51 AM
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.
02-02-2011 01:03 PM
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!
***************************
02-02-2011 01:36 PM - edited 02-02-2011 01:37 PM
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.... 😉
.
02-02-2011 02:00 PM
btw, my code shows either the first two or last six indicators. Change the diagram constant to adjust according to your needs.
02-02-2011 02:26 PM
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.
02-02-2011 02:29 PM
Mine is in version 2009. 🙂
02-02-2011 03:13 PM
Not sure if you were refering to my post...I saved mine for LV ver 9.
02-02-2011 03:48 PM
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.
02-02-2011 03:50 PM
Yes, i got your file. i did not check before posting.
Thank you.
02-02-2011 04:22 PM
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.