LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw line on graph

Thanks. Now I understood drawing line. how to move around the plot area and how to resize the same.
0 Kudos
Message 11 of 16
(1,796 Views)

Dear Altenbach,

 

Thank you for the vi for drawing line on intensity graph. I tried to implement same vi for drawing line on XY graph, but couldn't succeed. Seems, I am doing some logical mistake somewhere.

 

Any comments (by anyone on forum) are highly welcome.

 

The vi is attached..

0 Kudos
Message 12 of 16
(1,474 Views)

You also need to take the panel position of the graph into account.

0 Kudos
Message 13 of 16
(1,465 Views)

Can you please elaborate...what you mean by panel position?

0 Kudos
Message 14 of 16
(1,461 Views)

Sorry, the code actually has a bug (what a surprise that nobody pointed it out so far!)

 

When reading the plot bounds, the terminals are accidentally reversed. Here's how it should look like instead

 

("left" needs to be on top!):

 

 

 

 

(I have corrected the original code, see also)

Message 15 of 16
(1,444 Views)

Thanks...it works now Smiley Happy

0 Kudos
Message 16 of 16
(1,423 Views)