DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing data in 2D axis via a VBS

Hi all.

 

I have been looking through the tutorials and forum pages but haven't found te answer to my problem. I think it should be straightforward, but you never know! 

 

Whilst using a VBS script, I want to simply change the data I am using in the 2D axis system in the VIEW tab. For example, the green data is currently selected, how do I change to the red data set with a VBS script?

DIAdem problem.png

Help would be greatly appreciated.

 

Thanks

0 Kudos
Message 1 of 2
(3,484 Views)

Hi Kevster,

 

You can change the leading curve of a 2D Axis in VIEW with the "SetLEadingCurve()" method, like this (of course this script will only run if you've selected the graph you want to change beforehand so that it is the active area on the active sheet):

Set Sheet = View.ActiveSheet
Set Graph = Sheet.ActiveArea.DisplayObj
Call Graph.SetLeadingCurve(2)
Call WndShow("VIEW")

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,475 Views)