LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a graph that plots "steps"

Solved!
Go to solution

Unfortunately, Dennis, the user is dealing with a picture plot, not a standard graph, so all those nifty options are not available. That's why it didn't make sense to me that a picture plot was being used, but as noted, this is legacy software.

 

Bebeto: You will need to change the plot cosmetics cluster to get your bar graph. There is no "offset" that you can set for the graph, so you have to add in the offset yourself into the data before you send it to the Plot Waveform VI. 

 

You may find it easier to simply replace the picture plot with a standard graph which will give you a whole lotta more options.

0 Kudos
Message 11 of 22
(1,204 Views)

Sorry, never noticed that a picture plot is being used.

 

The waveform data that is passed can just have a constant added to it for the offset. If the picture plot is set for bar plot, perhaps the baseline is incorrect.

0 Kudos
Message 12 of 22
(1,200 Views)
I believe the baseline is coming from the origin,  is there a way to change this?
LabVIEW Intermediate I level!
0 Kudos
Message 13 of 22
(1,195 Views)
You can change the baseline with the waveform plot cosmetics cluster, but I don't think that will give you what you want. If I understood you correctly, all you need to do is to change the range in the "cartesian axis attributes 2" control and change X0. See attached example.
Message 14 of 22
(1,187 Views)

Hello Smercurio,

 

Yes at least the x axis has been changed, thanks. 

 

I just need to invert the bar plot so it shows coming from the "bottom" of the graph and not from the origin

LabVIEW Intermediate I level!
0 Kudos
Message 15 of 22
(1,171 Views)

Bebeto wrote: 

I just need to invert the bar plot so it shows coming from the "bottom" of the graph and not from the origin


I don't know what this means.

Message 16 of 22
(1,166 Views)
sorry I was confused, thanks !
LabVIEW Intermediate I level!
0 Kudos
Message 17 of 22
(1,163 Views)
Is there a way to erase the filling on the bar plot and jsut have the steps?
LabVIEW Intermediate I level!
0 Kudos
Message 18 of 22
(1,159 Views)
To not have the bars filled requires modifying a subVI that's used by the Plot Waveform VI. While conceptually this is trivial, the issue comes with the fact that the subVI is part of the vilib directory and consequentally one should never modify VIs in there as a LabVIEW reinstall will simply wipe out your changes. You can resave the subVI (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\picture\cartesn.llb\Draw Waveform Data.vi) within your own project folder and modify it. As long as the search path is set up to find VIs in your project folder then it will load your version rather than the stock version.
Message 19 of 22
(1,145 Views)

Hello Smercurio,

 

I have done what you suggested, and I am having some trouble as I want to delete the filling and have only the bottom of the rectangles, do you have any experience on this kind of modification? I will appreciate some pointers, thanks.

LabVIEW Intermediate I level!
0 Kudos
Message 20 of 22
(1,106 Views)