ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart Y data spacing issue

Solved!
Go to solution

I'm trying to create a custom waveform chart which starts at a negative value, I think I've managed to get that bit figured out but I'm now having issues with how the Y values are spaced out, here is my issue;

 

I have two arrays, one is a set of "limit" values (which has 350 as array position zero) and an array of positions (which is the array with -12 as array position zero) - the last part of this I've managed to get working - I can start my Y data from the -12 point, but as you can see from screenshots, my "limit" array is only populating a small area of the Y data (I know logically this is because there are only 5 elements and are essentially filling -12 to -7) - how would I space this out so 350 starts at -12, 1350 starts from -3, 2750 at position zero, 1350 starts from 3 and finally 350 ends at 12.

JasonWilliams_1-1578479849935.png

 

Here is my basic diagram, the "limit" array will ultimately by a dynamic array fed in from another VI.

 

JasonWilliams_0-1578479527380.png

0 Kudos
Message 1 of 4
(2,984 Views)
Solution
Accepted by topic author JasonWilliams

Hi Jason,

 

after all it's just a chart!

(A chart doesn't have a "real" X axis, but plots just one sample after the other while incrementing a sample counter used for X axis…)

 

Why don't you use a XYGraph when you want to plot XY data?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,966 Views)

Yep, after a brief re-do of my diagram with an XY chart.. it's now ridiculously simple and works as I need it to!  I'm going to chalk this one down to lack of sleep from last night.

 

Many thanks!

0 Kudos
Message 3 of 4
(2,943 Views)

Hi Jason,

 

there's no "XY chart", there only is a "XY Graph".

(Please try to use correct names for LabVIEW objects to provent misunderstandings…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,938 Views)