05-09-2011 08:51 AM
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?
Help would be greatly appreciated.
Thanks
05-10-2011 08:32 AM
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