LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel

Dear Forum members....I atach the Vi. On the front panel, under the graph I mark the part which I want to make by one bulean. If here controls and indicators more than 28, how I acn make? Please help me....
0 Kudos
Message 11 of 38
(2,019 Views)
Dear Modicon thanks for your help. Can you attach the simple example. I use Labview8.0. 
0 Kudos
Message 12 of 38
(2,012 Views)
Hi Melikyan,

what a big diagram...

My suggestions:
1) Put controls Numeric36-46 into an array, the same applies for indicator numeric47-58. Do all those single operations on arrays!
I made some small changes in your vi to show the way...

2) It's rather unusual to exit a vi by using the "Stop"-function. This prevents you from cleaning up all open references in a proper way...

Message Edited by GerdW on 07-18-2007 09:21 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 38
(2,006 Views)

Dear Forum Members. I need your help again. Please help me....

I attach the Vi. In my program how can I make Save button after 2 progress.

Now Save works when I push the start of program. How can I make it, after 2 progress, push and save...?

Thanks in advise....

Sincerely

Harutyun Melikyan

0 Kudos
Message 14 of 38
(1,996 Views)

I strongly suggest you follow the links in my first response and go over some of those tutorials. Your program appears to be very complicated for no reason.

Gerd has already shown you a basic example of how you can use arrays to greatly simplify your program and I have a feeling that once you do that with the rest of the code it will already be much easier to handle. Additionally, you should create subVIs to do some of your functionality instead of doing it all in a single VI. This should all be covered in those tutorials.

Another important point Gerd brought up is using the Abort VI primitive to stop the loop. What I suggest you do is change the architecture of your program. Either use two seperate loops - one for the UI and one for the communication\processing or use a state machine with a single state for the UI handling. You can see some examples if you click File>>New and look at the templates section and also see some examples in the example finder (Help>>Find Examples).

As for your actual question, I didn't really understand it, but I think the answer would be solved by changing the way you work. The event structure is there to handle events, so let it do that - add a value change event for the save boolean and when that event happens perform your save.


___________________
Try to take over the world!
Message 15 of 38
(1,987 Views)
Hi Melikyan,

at the moment the save button is only checked after (or while) executing a 'TimeOut' or 'Run button' event.
To save at any moment you should add a 2nd event case 'Save button changed'! (see attachment)

And again: Try to use arrays instead of huge amount of single controls/indicators...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 38
(1,995 Views)

Dear Forum members, thank you very much for yor help. I made clear graph button, but I want that the button work after 2 progress(1 measurement). How can I do it?

I attach the Vi. Please help me...

Thanks in advise...

Sincerely

Harutyun Melikyan!

0 Kudos
Message 17 of 38
(1,969 Views)
Hi Harutyun,

you should do it like I have shown you with the save-button: add a new event, now for the clear button. That's the main purpose a an event structure: to serve the different events which may occur...

And for the 3rd time:
Use arrays instead of a lot of scalar controls/indicators! All you do is some simple adding operations and comparisons - you can do them directly  or in small for loops using a shift register...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 18 of 38
(1,960 Views)
Dear GerdW, thanks a lot for your great help. I make the Clear graph button, for Waveform Chart is ok, but for Waveform Graph don't work. Can you help me. What is my mistake? I attach the Vi. Now the first graph don't show any result..
 
And the next your comment. I cannot change my controls using arrays. That part is ok, may be not good solution, but ok...Thanks for recomend, but I cannot do it.
 
Thanks a lot again.
Sincerely
Harutyun Melikyan! 
 
0 Kudos
Message 19 of 38
(1,953 Views)
Hi Harutyun,

as the graph hasn't a history feature and only plots the actual data you clear it by wiring an empty array (or cluster) to it's terminal!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 20 of 38
(1,950 Views)