LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

darw line segment, and splines on intensity graph

I was wondering if I have an intensity graph, is it possible to allow the user to draw a line segment, then output the length of that drawn line segment?

 

Similarly, Is it possible to have the user select a few points in teh graph to form a closed spline (say the shape of a oblong circle) then measure the area inside the spline and report that to the user?

 

In both instances the line segment or spline needs to be displayed and not just points selected on the graph.

 

Thanks!

0 Kudos
Message 1 of 4
(2,763 Views)

Hi hoju,

 

as LabVIEW is a full blown programming language: YES, it's possible! Smiley Wink

Best regards,
GerdW


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

I should clarify that there is an image displayed in the intensity graph, and the purpose of the spline, or line segment is to allow the user to measure the features displayed on the intensity graph.

0 Kudos
Message 3 of 4
(2,757 Views)

Hi hoju,

 

the point of my first post was: You should clarify your questions! As long as you ask "Is it possible?" all I would answer is "Yes!"...

 

Some ideas:

- use cursors to let the user select points

- use the FrontImage property of the graph to display lines as needed

Other idea:

- use an overlayed XY-graph to display the lines and cursors

 

But still it's possible to achieve what you want Smiley Wink

Best regards,
GerdW


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