LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sweep Chart Line Style Keeps Changing

When using the Sweep Chart Update Mode on a Waveform Chart, the Line Style appears to change to Line Style 3 (dash dot) automatically after the first sweep through the Chart History X axis size.

 

Even setting the line style property to 0 every time doesn't change this.

If I click the chart control and select line style 0, it will change for a moment, and then change back to line style 3 again (see picture).

 

I would like to continue using the Sweep Chart, but I don't want to use Line Style 3 because it doesn't accurately reflect the data.

 

Is there a setting or a property to prevent the line style from changing? I included a small test VI to demonstrate the changing line styles on the sweep chart vs a scope chart.

 

Line Style.png

Download All
0 Kudos
Message 1 of 5
(879 Views)
I'm posting by phone. Can you add a snippet of your block diagram as an image?

"Should be" isn't "Is" -Jay
Message 2 of 5
(873 Views)

LineStyleSnippet.png

Here I am just playing around with it, generating a sine wave and adding some random noise to it and then sending it to a few different charts which have different update modes selected. All of the charts have the default solid line style selected.

I also looked at the History Data to compare if the size and statistics were similar for the different update modes, and they appear to be the same despite drawing to the charts differently.

0 Kudos
Message 3 of 5
(847 Views)

Hi

 

It looks like there is something to do with the refresh rate of the Waveform Chart, I don't know why it does that, I never faced it before. 

As a "work around" solution you can change the Width of the waveform to be a little "thicker" it will stop doing that. 

LVNinja_0-1689276659600.png

 

Message 4 of 5
(828 Views)

It seems to depend on interpolation style selected.

 

I was using linear. Stepwise horizontal and stepwise vertically centered are much worse.

 

Interestingly, stepwise (vertical) and stepwise horizontally centered display fine though.

0 Kudos
Message 5 of 5
(805 Views)