From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to know if there is the possibility to fill a part of a waveform graph with a color that I choose.


I want to 'underline' a ROI (region of interess), the area under the graph.
Thank you. I'm working with Windows 2000NT and with LabVIEW 6i.
0 Kudos
Message 1 of 9
(3,119 Views)
I don't know what version of LabVIEW you are using, but at least in my LV 5.0.1f1 there's an option to fill the area between the graph and a selected baseline, you can activate this by clicking on the legend of the graph, select fill baseline... you can access to this property using an attribute node too.
Hope this helps.
0 Kudos
Message 2 of 9
(3,119 Views)
Hi,
see attached file called Graph.vi
It's a very simple example for demonstrate how to ...
I hope it help you.
Mike

"jacopo.ravagnan" wrote:

> I want to know if there is the possibility to fill a part of a
> waveform graph with a color that I choose.
> I want to 'underline' a ROI (region of interess), the area under the
> graph.
> Thank you.
>
> I'm working with Windows 2000NT and with LabVIEW 6i.
0 Kudos
Message 3 of 9
(3,119 Views)
If you have time to spend for developing it, I give you an idea.
- Create an image indicator of the size of your graph
- Make its background color transparent
- Place it over your graph and bring it to front
- Extract the points of your graph of your ROI
- Use them to build-up an image that copies the shape of your graph in the ROI and insert it in your picture indicator. This is the most annoying part, maybe the best way is to draw many parallel lines at fixed steps whose lengths correspond to the points of the graph, use picture functions for it.
This routine can be done automatically when you select a region with cursors.

I hope I managed to explain this idea.

Let me know.
0 Kudos
Message 4 of 9
(3,119 Views)
It's difficult to do, because it's diffcult to explain, i think.
So, i have some problems to create an image indicator, what does it mean???
And extract the points of my roi? In which way???
I'm going to look for any other help.
0 Kudos
Message 5 of 9
(3,119 Views)
Hi,
is my example not suitable for you
or you have any problems with it?
Mike

"jacopo.ravagnan" wrote:

> It's difficult to do, because it's diffcult to explain, i think.
> So, i have some problems to create an image indicator, what does it
> mean???
> And extract the points of my roi? In which way???
> I'm going to look for any other help.
0 Kudos
Message 6 of 9
(3,119 Views)
Hi, your example is interesting, but not very suitable for me.
I need 20 ROI or more, so if i must fill 20 parts of my graph i must repeat 20 times your example (more or less), so my program becomes too slow. Thank you very much, but it's not sufficient for me. If you have other ideas, i will wait for your comments.
Jacopo
0 Kudos
Message 7 of 9
(3,119 Views)
Hi Jacopo,
See attached file called graph_2.vi
You haven't repeat 20 times an example.
Mike

"jacopo.ravagnan" wrote:

> Hi, your example is interesting, but not very suitable for me.
> I need 20 ROI or more, so if i must fill 20 parts of my graph i must
> repeat 20 times your example (more or less), so my program becomes too
> slow. Thank you very much, but it's not sufficient for me. If you have
> other ideas, i will wait for your comments.
> Jacopo
0 Kudos
Message 8 of 9
(3,119 Views)
Hi Jacopo,
it's another one
see attached file
Is it suitable?
Mike

"jacopo.ravagnan" wrote:

> Hi, your example is interesting, but not very suitable for me.
> I need 20 ROI or more, so if i must fill 20 parts of my graph i must
> repeat 20 times your example (more or less), so my program becomes too
> slow. Thank you very much, but it's not sufficient for me. If you have
> other ideas, i will wait for your comments.
> Jacopo
0 Kudos
Message 9 of 9
(3,119 Views)