04-30-2013 07:53 AM
Sorry but it isnt work :-/. I need clear data only on click button and for next I would like to display another data. Only remove previous data on click a start to display new.
04-30-2013 07:55 AM
04-30-2013 08:07 AM
Here is part of my VI, to show what I need. Thanks
04-30-2013 08:32 AM - edited 04-30-2013 08:33 AM
04-30-2013 09:01 AM
But I tried this first time before I asked here. Isnt work it 😞
04-30-2013 09:11 AM - edited 04-30-2013 09:12 AM
04-30-2013 09:16 AM
I will try agin. It could be problem in that I have two while loops with diferent times and graph is in one and button for celar(reset) is in second?
04-30-2013 09:24 AM
05-02-2013 03:12 AM
Hi all,
thanks GerdW for giving help and showing good ideas.
Well, adssad, have you tried to implement the code as GerdW has recommended? Is there any trouble? In case you didn't know you can just download the picture GerdW provided - it's called a snippet - which you can just drag and drop it above your block diagram - this cause a code to generate in your BD.
But you have different code, right? If you have created 2 loops, and wired the button from one loop into the another, it cannot work. Does your code look similar to what I attached? It cannot work because of two reasons:
1) the upper loop will not start execution until it gets all input values, in this case the value from "latched button"
2) value from the "latched button" will not get out of the loop until the loop will stop execution
What does it mean? Until you stop the second loop, the first cannot start execution. But after you stop the second loop to start execution of the first one, the button is useless. I recommend you to use "highlight execution" to see how the code executes. It simply follows the dataflow paradigm. You can learn more about dataflow for example here: LabVIEW Training: Learn LabVIEW in Three or Six Hours.
Try to answer yourself the question: "What doesn't work? What does it mean?" then you will have better idea what to ask for. Fortunately you will be able to find out the problem by yourself.
Regards