DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Help creating a Graph using .SUD

Solved!
Go to solution

I'm trying to plot data in a graph within my .SUD.

I'm trying to control the start time of each cycle of my data but I'm at a loss to find any examples how to do this. 

 

Does anyone know or have an example of the commands explained for plotting graphs?

I have looked in the DIAdem Help section, but have had no luck.

 

Thank you in advanced.

shaun

0 Kudos
Message 1 of 9
(3,633 Views)
Solution
Accepted by topic author Spidermansrevenge

Hi Spidermansrevenge,

 

Please have a look at this example:

grafik.png

Greetings

Walter

 

Message 2 of 9
(3,604 Views)
Solution
Accepted by topic author Spidermansrevenge

Walter:  

Thanks so much for you help again. Not sure how I missed this help example.

This should get me on my way!!

 

 

Always Very helpful 

 

Thank you again !!

Shaun

0 Kudos
Message 3 of 9
(3,588 Views)

I've used this example to get started with my own plot. Is it possible to programatically change the scaling of the X or Y axis? I see the option to change from linear to logarithmic, but I'm not seeing a way to say adjust what range of the X axis is plotted.

 

Basically trying to do this:

PlotA.XAxis.Scaling.Begin = 0
PlotA.XAxis.Scaling.End = 0.1
0 Kudos
Message 4 of 9
(3,559 Views)

Hi Tamer,

 

You were pretty close.

 

Set Graph = Report.ActiveSheet.Objects("2DAxis1")
Graph.XAxis.Scaling.AutoScalingType = eAxisAutoScalingBeginEndManual
Graph.XAxis.Scaling.Begin = 0
Graph.XAxis.Scaling.End   = 0.1
Call Report.Refresh()

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 5 of 9
(3,494 Views)

Thanks Brad, but doesn't that do the scaling in the report tab? I'm looking to scale the graph on the GUI.

0 Kudos
Message 6 of 9
(3,460 Views)

Hi Tamer,

 

I thought we were talking about the REPORT panel.  If you mean the VIEW panel instead, there is one option to provide specific Y axis start and stop values:

VIEW Scaling.png

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 7 of 9
(3,445 Views)

Hey Brad. I've actually created a GUI with a 2D plot on it for quick plotting (Since using the viewer hasn't been resolved). I'm looking for a callout I can use in the sub of a button click to scale the 2D axis on the plot of the GUI. See screenshot attached.

0 Kudos
Message 8 of 9
(3,441 Views)

Hi Tamer,

 

Are you saying that you're using a Curve2DPreview control on a SUDialog to make that graph?  If so, I don't see any method to specify the start and stop values of the X or Y axes for that control.  I only see the linear vs. logarithmic choice for each axis.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 9 of 9
(3,373 Views)