LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph - limit size of X shift register to N elements

Solved!
Go to solution

Hello,

 

I am feeding two shift registers output to a XY Graph.

 

On the Y axis I am plotting the value of data aquired with NI CAN Interface.

 

On the X axis I am showing the data timestamp. What I need to do is to window the X axis, so that Graph only shows data aquired in the past N seconds (N selected by user)

 

Therefore I need to limit the size of the array to N elements. I tryed "Reshape array" on the x shift refister but it does not work.

 

Any ideas?

0 Kudos
Message 1 of 4
(3,321 Views)

Hi loba,

 

idea: use ArraySubset instead of ReshapeArray, when you want to work with array subsets…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,299 Views)
How large is the array? Another issue you may need to consider is performance problems resulting from unnecessary copying of large datasets. Can you say a bit more about what you are doing?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 4
(3,271 Views)
Solution
Accepted by topic author loba

Hi,

 

thaks for the reply, I have solved my issue.

 

I was trying to set programmatically the max and min value of the x axis but I didnt take of the AutoScale so it was going bunkers

Smiley Frustrated

0 Kudos
Message 4 of 4
(3,265 Views)