LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use xScale Marker Values to limit the number of points that will show on a scrolling Chart?

http://digital.ni.com/public.nsf/allkb/E9784F413A2269E086256F3A0064C8BB

 

I am reading in data from a device at various sampling rates. To get a full 5 seconds of data to be seen at the higher sampling rate I need to set the Chart History Length to ~5000. The problem is that I don't want to show that many points for the lowest sampling rate(it would show around 14 seconds of data)

According to that page I can use the "Marker Values" to limit the number of points I use dynamically. The problem is I can't find any documentation on how to use Marker Values to do this proramatically.

Do I pass my data cluster into that instead of the normal "value" property node? How do I define what values I want to show?

0 Kudos
Message 1 of 8
(4,060 Views)

so I made a 1D Array with ints set up in the form [(4800-SR*5).....4800] with 4800 being the History Length and SR being the sample rate(hertz).

I pass this array into the WFchart(strict) node property Xscale.MarkerVals[]

nothing happens except the X scale test is now all screwed up. How many data points the chart shows didn't change at all

0 Kudos
Message 2 of 8
(4,050 Views)

20 views and not a single person to try and help

great

0 Kudos
Message 3 of 8
(4,040 Views)

I for one, am confused as to what you are trying to do with the marker values. If you want to limit the number of points, why don't you set the range.min and range.max?

0 Kudos
Message 4 of 8
(4,036 Views)

I have tried and are trying to use the range.min/max again.

I was looking for a soluction and came upon the page in the first post and it seems to be a good solution.

For whatever reason my Range values keep changing even after I set them. I can even not set them dynamically and set them in chat properties and they still won't stay what I set them as. They keep defaulting back to 0.5-34.34 which doesn't make sense to me.

if the history length is 4800 how does a range of 0.5 to 34 still show all the data?

I must be missing something.

0 Kudos
Message 5 of 8
(4,029 Views)

Did you turn autoscaling off?

0 Kudos
Message 6 of 8
(4,027 Views)

Yes, auto-scale is off

0 Kudos
Message 7 of 8
(4,022 Views)

It sounds like we will be able to help you much easier if you post your code on here so that we can see what you are trying to do.

National Instruments
Applications Engineer
0 Kudos
Message 8 of 8
(4,010 Views)