LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

update chart

Dear All,

 

 

I am using a chart and plotting some values at the rate of 1 sec.


But it should be updated on the chart as user inputs like 1 sec, 2 secs....

 

please find the ex.  LV 9.

 

Regards,

 

Shrek

0 Kudos
Message 1 of 6
(3,040 Views)

Hi shrek,

 

It's not very clear, what exactly are you trying to do. Can you explain it a bit more. Also try checking the attached vi if it is something what you are trying to do.


Regards,
NitzZ

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;)) 

0 Kudos
Message 2 of 6
(3,029 Views)

ther are values which are updated constantly at 1 sample / sec.

 

that should be plotted on CHART  only, but the tricky part is that the chart should not be updated until the time which the user has given.

 

 

means if 10 iteration are over then we will have 10 samples plotted on chart at a interval of 1 sec(updation 10 times) and user has given 5 sec as update time then while displaying the chart should be updated only twice at interval of 5 sec for 10 samples.

 

am i clear enough now

 

 

regards,

 

Shrek

0 Kudos
Message 3 of 6
(3,025 Views)

Check this attachment 

 

Regards,
NitzZ

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved:smileywink:)  

0 Kudos
Message 4 of 6
(3,008 Views)

If the update rate will vary during the execution of the program, I would recommend and xy graph. You need to keep a history of times and y values in you own data structures (e.g. as a complex array in a feedback node, or similar).

Message 5 of 6
(3,005 Views)

Shrek,

 

If I get your request, you want to acquire data at a set rate (1 sec) and display the data at a user defined rate.

 

Fundamentally, you will have to separate the acquisition of data from the display of that data.

 

These are the steps needed:

 

1) Store any data that occurs when you are not displaying data. (A shift register is a good way to do that.)

 

2) Create a way to tell when to display the data. (The Quotient & Remainder function can be used.)

 

3)  Display the data. (Use an indexed For Loop and clear the shift register after data is displayed.)

 

See the attached example.

 

steve

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 6
(2,981 Views)