DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

generate vertical lines on a graph using VB script

Hello,

I want to draw vertical lines onto a 2d-axis graph in the report I create with my script. The lines need to be at two x values I calculate with my script. Are there any code examples of this?

Thanks,

Matt
0 Kudos
Message 1 of 4
(4,247 Views)
Hello Matt,

Please store the two calculated values into a new channel and create another one to specify the corresponding X values. Then just draw that curve.

Greeings
Walter
0 Kudos
Message 2 of 4
(4,219 Views)

Hi Matt,

Alternatively, try using the "Constant" curve type and specify either the value of the X coordinate or an expression that will resolve to that value in the "X-constant" field of the curve configuration.  If you want to draw vertical lines at the same X coordinates over and over again, this may be even simpler than creating channel data.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

 

0 Kudos
Message 3 of 4
(4,207 Views)
got it working, thanks for the help!
0 Kudos
Message 4 of 4
(4,201 Views)