LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Contour with generated Isoline in View - Script

Hi,

 

I'm trying to generate  an contour-plot in View with a script. Thats what I have:

 

Call View.Sheets.Add("dp(4l,2l,)_dp(4l,ein)") '... Neues Blatt im View erstellen, wird automatisch aktiver sheet
Dim oMyArea: Set oMyArea = View.ActiveSheet.ActiveArea '... Objekt für aktiven sheet
oMyArea.DisplayObjType = "Contour" '... Contour einschalten
Call oMyArea.DisplayObj.ContourCurves.AddContour("dp(4l,2l)","dp(4l,ein)","Volumenstrom") '...x,y,z Datenreihe hinzufügen
oMyArea.DisplayObj.ContourCurves(1).Structure = "Triplet"

Dim oMyIsoLine
Set oMyIsoLine =  oMyArea.DisplayObj.ContourCurves.AddIsoline(1,4)
oMyIsoLine.DisplayIsolineValues = "true"

 

I want autogenerated isolines, like I can chose in the dialog. How can this be done by script? AddIsoline takes only data-rows. I tried to change oMyIsoLine.Type to "calculated" but I can't write this field.

 

Does anybody know how to do this? I als tried to record my actions in the dialog, but this didn't work, actions within a dialog are not recorded.

 

Thanks,

 

Henning

0 Kudos
Message 1 of 1
(2,531 Views)