LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I re initialize a graph

Solved!
Go to solution

how can i reinitialize  agraph from the point it stops. Please reply

 

0 Kudos
Message 1 of 25
(3,827 Views)

1. Reinitialize from what same value or 0 ?

2. When the VI running that time only you want to reinitialize or after next time when VI runs ?

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 25
(3,822 Views)

Hi

 

From your question, it is assumed that the graph is stopped at some point (with some data in it) and you want it to start again at that point at a later stage.

 

If you are closing your application and restarting it, you can save the graph data to a file, bin or text, read that file when you re-start the applicaiton and write the data onto the graph. Then continue adding data to the graph.

 

If you are pausing an application and continuing it, then pass the graph data in a shift register inside a while loop and when you pause, write data into the shift register. when you continue, read data from the shift register and add the new data to it at the end.

 

if you need more help, provide more details.or post the code you have

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 3 of 25
(3,816 Views)

VI runs with a signal acquisition as the signal become comaprable to the value given by us the graph should start from the position it stopped not from zero. That is my requirement

 

0 Kudos
Message 4 of 25
(3,795 Views)

I'am attaching the VI. here when the case loop with serial port read  and write is false the graph have to stop and when ever it is true it have to start again from the point it stopped. what I all done its not making. Pelase reply

 

0 Kudos
Message 5 of 25
(3,791 Views)

You don't want to reinitialize it. From your description, what you want to do is to pause it. All that you have to do is to move the terminal inside the case statement. Less than a minute and you are done. Simple.

 

Why haven't you taken any of those basic LabVIEW tutorials yet.?You would not need to sit around a wait for someone to answer your basic questions.

0 Kudos
Message 6 of 25
(3,780 Views)

Your VI is a mess.

 

  • You have several instances where you destroy the visa session by using default output tunnels, even though you might need the session in subsequent code.
  • The pink shift register makes no sense. You can delete it (and all associated wires) without any change in functionality.
  • For simpler code, you could place the "mean" in an autoindexing FOR loop and index out the elements later.
  • The "converty from dynamic data" near the upper right makes no sense, because you don't have dynamic data. Just remove it.
  • Shouldn't the code in the upper case structure simply go into the false case of the structure below it?
  • Both your orange shift regisiters should be initialized, else the data will make no sense later. (I recommend to use a single shift register using a complex array instead).
  • You have a floating point equal compuarison. THis will most likley give you unexpected behavior.
  • ...
0 Kudos
Message 7 of 25
(3,772 Views)

Here is a quick rewrite. See if it gives you some ideas.... (LV2011)

 

 

0 Kudos
Message 8 of 25
(3,763 Views)

which terminal I have to put inside when I restart the case command the graph starts from zero again in Y axis that is my issue. I need th sttart the graph from the same point it stopped please help me

 

0 Kudos
Message 9 of 25
(3,751 Views)

this program will not work , since the value again goes back to zero after false case happens I 'am sending the result of program

0 Kudos
Message 10 of 25
(3,741 Views)