Support Board
Date/Time: Mon, 25 Nov 2024 15:31:32 +0000
Post From: Referencing other charts
[2014-01-31 02:08:32] |
vegasfoster - Posts: 444 |
Hi, sorry but I can't make this work to save my life, I am just trying to reference other charts in ASCIL and I can pull from the chart the study is loaded on, but not other charts, and even though I have it set to another chart it shows the studies from the current chart in the drop down list. Please see pic if I am not being clear. Should this code correctly pull from chart 2, study 1, subgraph 1 when loaded on chart 1? SCSFExport scsf_MTFStudyAverageV2(SCStudyInterfaceRef sc) { SCSubgraphRef Average = sc.Subgraph[0]; if (sc.SetDefaults) { sc.GraphName = "MTF Study Average"; sc.FreeDLL = 1; sc.AutoLoop = 1; sc.CalculationPrecedence = LOW_PREC_LEVEL; Average.Name = "Study Average"; Average.DrawStyle = DRAWSTYLE_LINE; Average.LineWidth = 2; Average.PrimaryColor = RGB(0,0,0); sc.Input[0].Name = "Chart Number 1";; sc.Input[0].SetChartNumber(2); sc.Input[1].Name = "Study ID 1"; sc.Input[1].SetStudyID(1); return; } SCGraphData StudyData; sc.GetStudyArraysFromChartUsingID(sc.Input[0].GetChartNumber(), sc.Input[1].GetStudyID(), StudyData); if(StudyData.GetArraySize() == 0) return; SCFloatArrayRef SubgraphArray = StudyData[0]; if(SubgraphArray.GetArraySize() == 0) return; Average[sc.Index] = SubgraphArray[sc.Index]; I have tried code that worked previously and I have tried the current documentation for sc.GetStudyArrayFromChart(), sc.GetStudyArrayFromChartUsingID(), sc.GetStudyArraysFromChart(), and I get the same results regardless of how I do it. Thank you for any help. |
MTF Problem.png / V - Attached On 2014-01-31 02:04:30 UTC - Size: 137.94 KB - 513 views MTFStudyAverageV2.cpp - Attached On 2014-01-31 02:06:23 UTC - Size: 1.04 KB - 603 views MTFStudyAverageV2.dll - Attached On 2014-01-31 02:07:05 UTC - Size: 13.5 KB - 440 views |