06-03-2014 09:01 AM
Hello,
i want to create a few horizontal curves/lines; the value of each line is different and given via SUD and user input/adjustment
Call ChnLinGenImp("Upper Limit Prebrew",200,ghdstartval,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit1.Time","Upper Limit1") Call ChnLinGenImp("Lower Limit Prebrew",200,ghdstartval,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit1.Time","Lower Limit1") Call ChnLinGenImp("Lower Limit ControlDelay",200,ghdstartval,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit2.Time","Lower Limit2") Call ChnLinGenImp("Upper Limit Brewing",200,ghdstartval,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit2.Time","Upper Limitt2")
My problem is that for the value i only can use varibale: Ghdstartval
How can i manage my code above for more/different Lines
Like this, but with variables
Call ChnLinGenImp("Upper Limit Prebrew",200,200,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit1.Time","Upper Limit1") Call ChnLinGenImp("Lower Limit Prebrew",200,180,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Limit1.Time","Lower Limit1") Call ChnLinGenImp("Lower Limit ControlDelay",200,90,0,"") Call View.Sheets("Blatt 1").Areas("Area : 1").DisplayObj.Curves.Add("Lower2.Time","Lower Limit 2") Call ChnLinGenImp("Upper Limit Brewing",200,85,0,"")
Thanks a lot
Solved! Go to Solution.
06-04-2014 01:58 AM
Problem solved by myself!