LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 plots in 1 problem

Solved!
Go to solution

Hello, i have a problem. I need to plot 2 plots on 1 to compare their FFT. I want to have 2 plots with the same styles as u can see at plots named FFT2 and FFT3, but when i compare them at plot FFT one of them have different line style. Can someone take a look on it?

0 Kudos
Message 1 of 11
(3,540 Views)

Hi!

Why don't you simply change the plot properties in order to have the line styles you need?

See the attached example.

Regards,

Marco

 

0 Kudos
Message 2 of 11
(3,522 Views)

Hi, can u reupload your VI to earlier version of labview, 2012 at least :)?

0 Kudos
Message 3 of 11
(3,514 Views)

Why did you change the plot style in the first place?  It defaults to a simple line plot like you want.  Just right-click the plot legend, select Common Plots and pick the first one.  You can also control the plot variables with property nodes as mentioned if you wish.  That is generally only used if you want to change things programatically while your program runs.  You can just change your plots however you like manually and save your VI and you're done.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 11
(3,501 Views)
Solution
Accepted by topic author menomena

Here's the vi, but believe me it's easier to do it yourself....

Marco

Message 5 of 11
(3,498 Views)

In addition to what NIquist said, if you're going to compare them, you'll have to offset one of them a bit or the topmost one will cover the lower and you'll only see it if it's higher (I'tll stick out of the top), or make the lower one have a Bar style of 2 (wider), while the top one has a Bar style of 1 (narrower).

 

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
Message 6 of 11
(3,497 Views)

Can u tell me why i cant change width of my bars for that plot style which i use in example i sent u?? I want to have one plot a bit narrower or wider than second. I cannot change bar width only for that plot style 😕 but i really need to use that style.

0 Kudos
Message 7 of 11
(3,484 Views)

Sure you can. You just have to tell it which plot you want to have which bar style.

 

graph_properties.PNG

 

Unfortunately, there are only 3 bar styles available: 1 pixel wide, "mostly" filling the available space, and totally filling the available space.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 8 of 11
(3,481 Views)

That is the problem. I wanna get a plot a bit more wider than 1 px, maybe 3-5px, but other options are: mostly filling the available space and totally filling ;//, as u can see at my pic.

plot.png

0 Kudos
Message 9 of 11
(3,477 Views)

Unless you write your own bar-plot program (which is a real PITA, I had to do it in Excel once for a publication, before LV came along, it shouldn't be hard in terms of fraction-of-the-index-values, but in terms of absolute pixels, I'm stumped), I think you're stuck with those three options. I've thought about suggesting a variable-width bar plot to NI, but haven't been able to clear enough time to write the suggestion rigorously enough to be useful. Maybe soon.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 10 of 11
(3,472 Views)