LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMPLEMENTING CIRCULAR BUFFER FOR XY WAVEFORM GRAPH

Solved!
Go to solution

Hi Patil,

 


@VihangPatil wrote:

Hello Fibo…


Please don't hijack 15 year old threads.

Keep your discussion in one place: in your own thread!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 13
(195 Views)

@VihangPatil  ha scritto:

Hello Fibo

I am trying to achieve the same using XY graph. But struggling to get the XY Graph to work like Waveform Chart

I want to also add timestamp to the Xaxis. Can you please share your code

 

This is my code where i am struggling

 

 

Thanks

xy gragh1.png


Don't use Build Array and Delete from Array together, it's very memory inefficient. Instead use Rotate 1D Array and Replace Array Subset.

Buffer.png

 

For the x-axis to show the time/date, simply change the Display Format to Absolute time in the properties:

Basjong53_1-1726130623767.png

 

Message 12 of 13
(180 Views)
Solution
Accepted by topic author VihangPatil

Thanks all for the help

I was able to get the Timestamp issue resolved using waveform chart itself. Since my data was 1D array of numeric values and the iterations where not always consistent, Therefore I used build waveform and added the Get Time/Date in Secs and it worked.

I am attaching the code for anyone who might find it useful. Since I had to spend a lot of time getting it right

 

working_code.png

0 Kudos
Message 13 of 13
(149 Views)