LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

which type of graph is suitable to plot dynamic data?

Thank you Bob_ Schor for the reply.
* Continuously sampled data is being recorded in one program's file.I'm writing another program which reads the running file and plots the graph.
* I want to retrieve the running file and plot the same on graph in my program.

If i use graph,I'm not able to see dynamic plot.

If i use chart,i can get only present readings.previous values l slide to left side.Actually I want to plot both previous values and present running values at the same time.

Please anybody do suggest how to increase chart memory size.

 

0 Kudos
Message 11 of 18
(831 Views)

@hmshwe wrote:

* Continuously sampled data is being recorded in one program's file.I'm writing another program which reads the running file and plots the graph.


I'm not sure if you might get some troule if two applications try to access one file at the same time. Can you prvent concurrent access?

 


@hmshwe wrote:

* I want to retrieve the running file and plot the same on graph in my program.

.Actually I want to plot both previous values and present running values

How are the values stored in your file? Only X and Y value of the last sample? The last n samples? or all samples until now?

 

Best regards

ʍolɟɐʇɐp ʞuıɥʇ
0 Kudos
Message 12 of 18
(818 Views)

* I will take running file only in read mode.

*Values are stored in columns.It contains all samples until now,and data goes on increasing.

0 Kudos
Message 13 of 18
(763 Views)

* File is retrieved in read mode only.So,no trouble in accessing the file.

*Values are stored in two columns.

 

 

2017-09-04/18:46:03  12.112465
2017-09-04/18:46:04  15.134372
2017-09-04/18:46:05  18.153353
2017-09-04/18:46:06  22.172334
2017-09-04/18:46:07  27.194242

0 Kudos
Message 14 of 18
(809 Views)

So if you just read the file and plot all values in a graph you will have what you want.

ʍolɟɐʇɐp ʞuıɥʇ
0 Kudos
Message 15 of 18
(803 Views)

If i use graph,i'm not able to plot dynamic data.

If i use chart,plot slides towards left and disappears as new data arrives.

is there any way to increase chart history length?

is it possible to select required portion of plot and enlarge it?

0 Kudos
Message 16 of 18
(799 Views)

@hmshwe wrote:

If i use graph,i'm not able to plot dynamic data.


Just to clarify this:
1. You read the file the first time and get let's say 100 values. You plot them in your graph -> your graph shows 100 data points.

2. You read the file again. Now it contains 200 values. You plot them in your graph -> your graph shows 200 data points.

3. You read the file again. Now it contains 300 values...

and so on

 

Isn't this exactly what you want. Or what do you mean by "dynamic data"?

ʍolɟɐʇɐp ʞuıɥʇ
0 Kudos
Message 17 of 18
(794 Views)

hmshwe wrote:

* I want to retrieve the running file and plot the same on graph in my program.

If i use graph,I'm not able to see dynamic plot.

If i use chart,i can get only present readings.previous values l slide to left side.Actually I want to plot both previous values and present running values at the same time.


A file is not a good way to transfer data between applications.  This is especially true if the file is  constantly being overwritten.   You can easily miss data that way.  Use a TCP connection or a Network Stream to pass the data.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 18 of 18
(787 Views)