LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity graph plot

Hello,recently, I've been trying to achieve the same effect as LabVIEW's built-in intensity chart control using drawing functions on a canvas instead. However, it seems I haven't found a particularly good method for this. Could someone please offer some assistance or advice? Thanks!

0 Kudos
Message 1 of 6
(848 Views)

Hi zl,

 


@zl907 wrote:

Hello,recently, I've been trying to achieve the same effect as LabVIEW's built-in intensity chart control using drawing functions on a canvas instead. However, it seems I haven't found a particularly good method for this. Could someone please offer some assistance or advice? Thanks!


Use the built-in intensity chart when you need the "same" effect!

 

What's the point of your approach?

Where are you stuck with your own "method"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(824 Views)

Hi, GredW,thanks for your reply.

 

You know, we usually use the intensity graph when we want to plot a 2D array. I hope to ensure that when I change the value of XY, for example, from (200, 200) to (100, 200), his plotting area changes accordingly, ensuring a consistent XY scale.

0 Kudos
Message 3 of 6
(811 Views)

Hi zl,

 

you mixed the words "intensity graph" and "intensity chart": please clarify what exactly you are talking about!

 

With graphs you can change the axis ranges as needed to show subset of your array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(786 Views)

so when you say you say "plotting area changes accordingly" you mean to keep the proportion of the graph ? 

 

IN that case you need to find out the proportion of the size of the plot and when the scale changes you apply the same proportion to change teh "size" of the plot when the scale changes. 

You can use property node-> plot area size

 

LVNinja_0-1696946966914.png

 

0 Kudos
Message 5 of 6
(771 Views)

@zl907 wrote:

You know, we usually use the intensity graph when we want to plot a 2D array. I hope to ensure that when I change the value of XY, for example, from (200, 200) to (100, 200), his plotting area changes accordingly, ensuring a consistent XY scale.


It is typically a bad idea to change the size of FP objects, because it makes the UI messy. It is not clear what you want (sorry, cannot look at your VI at the moment)

 

  1. do you want "square pixels"? Just fill half the graph, keeping the axis the same.
  2. Do you want to stretch the data to fill the same indicator?

If you want to guarantee "square pixels", rendering the data into a 2D picture would be a good solution.

 

0 Kudos
Message 6 of 6
(763 Views)