LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A little question about graphs

Hello,
I took an example which already exists in the Ni repertoire, and I modify it according to what I have need.
My question is Dynamic Induction.vi excecute and stops after 3000seconds, I will want that if I click on the button "Stop", the tracing of the curves stops immediately. How do I have to make in this case? I thank you in advance.
I send you the differents files.
0 Kudos
Message 1 of 5
(2,610 Views)
There is a for loop with the number of iterations set to 3000. A for loop will always execute the number of iterations wired to the N terminal or when using an auto-indexed array input, the size of the array. The best way to allow fro early termination is to replace the for loop with a while loop. You would set the termination condition to be either i greater than 3000 or a stop button being true. You can right click on the for loop and select Replace with While Loop.
Message 2 of 5
(2,599 Views)
Hello,
I thank you much for your assistance. I thus modified Dynamic InductionMOD.vi consequently.
I have another question, how do I have to make to safeguard the curves posted in a file so that I can use them at the time of the next excécution of the VI?
Another question, how do I have to make to just be able to copy some curves posted to put them for example in a written report of Word file?
Is it possible to be able to print using a printer right a graph, for example a "Torque vs time" contained in the graphe1? How do I have to proceed?
I send the new modified files to you

I thank you in advance for your assistance.
With soon!!
Nadine
0 Kudos
Message 3 of 5
(2,589 Views)
Hello,
it is still me,
Excuse me, here the good file. Thank you very much,
0 Kudos
Message 4 of 5
(2,584 Views)
I'm not sure what you mean "safeguard the curves". What exactly do you want to use the next time you run the VI. As far as I can tell, you have only a single input variable (Dt). Do you want to run this a couple of times and compare to different values of Dt?

To print individual graphs, there are the Report functions. There's one called Append Control Image to Report. You could add some Booleans labeled "Print" by the graphs and when true, pass the graph's reference to the function and generate a report with just that image.
Message 5 of 5
(2,576 Views)