Chapter 3 - Overall Theory
Visual C++ (iDispatch Interface):
iPlotX1->DataView[0]->GridShow = TRUE;
iPlotX1->XAxis[0]->Min = 100;
iPlotX1->YAxis[0]->Min = 100;
iPlotX1->Channel[0]->Name = "Channel 1";
iPlotX1->Legend[0]->Visible = TRUE;
iPlotX1->ToolBar[0]->ShowEditButton = FALSE;
iPlotX1->Annotation[0]->Text = "Sample Annotation";
iPlotX1->DataCursor[0]->Style = ipcsDeltaX;
iPlotX1->Limit[0]->XAxisName = "X-Axis 1";
iPlotX1->Labels[0]->Caption = "Chart Y vs. Time";
iPlotX1->Table[0]->Data = "First Data in Table";
C#.NET:
axiPlotX1.get_DataView(0).GridShow = true;
axiPlotX1.get_XAxis(0).Min = 100;
axiPlotX1.get_YAxis(0).Min = 100;
axiPlotX1.get_Channel(0).Name = "Channel 1";
axiPlotX1.get_Legend(0).Visible = true;
axiPlotX1.get_ToolBar(0).ShowEditButton = false;
axiPlotX1.get_Annotation(0).Text = "Sample Annotation";
axiPlotX1.get_DataCursor(0).Style = iPlotLibrary.TxiPlotDataCursorStyle.ipcsDeltaX;
axiPlotX1.get_Limit(0).XAxisName = "X-Axis 1";
axiPlotX1.get_Labels(0).Caption = "Chart Y vs. Time";
axiPlotX1.get_Table(0).Data = "First Data in Table";
CBuilder (Windows/Linux)
iPlot1->DataView[0]->GridShow = TRUE;
iPlot1->XAxis[0]->Min = 100;
iPlot1->YAxis[0]->Min = 100;
iPlot1->Channel[0]->Name = "Channel 1";
iPlot1->Legend[0]->Visible = TRUE;
iPlot1->ToolBar[0]->ShowEditButton = FALSE;
iPlot1->Annotation[0]->Text = "Sample Annotation";
iPlot1->DataCursor[0]->Style = ipcsDeltaX;
iPlot1->Limit[0]->XAxisName = "X-Axis 1";
iPlot1->Labels[0]->Caption = "Chart Y vs. Time";
iPlot1->Labels[0]->Data = "First Data in Table";
Delphi (Windows/Linux):
iPlot1.DataView[0].GridShow := TRUE;
iPlot1.XAxis[0].Min := 100;
iPlot1.YAxis[0].Min := 100;
iPlot1.Channel[0].Name := 'Channel 1';
iPlot1.Legend[0].Visible := TRUE;
iPlot1.ToolBar[0].ShowEditButton := FALSE;
iPlot1.Annotation[0].Text := 'Sample Annotation';
iPlot1.DataCursor[0].Style := ipcsDeltaX;
iPlot1.Limit[0].XAxisName := 'X-Axis 1';
iPlot1.Labels[0].Caption := 'Chart Y vs. Time';
iPlot1,Table[0].Data := "First Data in Table";
The index values are all zero based, meaning the first object’s index is 0, the second is 1, the third is 2, and so on. Currently only one Data
View, one Legend, and one ToolBar object is supported at this time and is left open for future expansion.
Plot Objects
As shown above, the plot component is made up of many sub objects, referred to in this manual as plot objects. Plot Objects allow for the
multiple axes, multiple channels, multiple limits, multiple labels, multiple tables, and multiple data cursors features of the component by allowing
an unlimited number of plot objects. Note that some plot objects currently only support one object of their type, such as the DataView, Legend,
and ToolBar, but will be upgraded in the future.
Plot Object Index
To access a specific plot object, such as the third channel for example, you need to use the index of that plot object. Note that a plot object indices
start at 0…
iPlot1.Channel(2).Property = Value
iPlot1.Channel(2).Procedure
Plot Object Name
All plot objects have a unique index value that is generated when they are created. You can change the name of a plot object using the Name
property of each plot object.
Each plot object is referenced by its index, but you can also use the name of a plot object when referencing. This allows you to use your own
system of referencing multiple channels or axes without using the index values. You must always reference the plot object by name only there are
no index to the plot object.
iPlot1.Channel(0).Procedure
iPlot1.Channel(iPlot1.GetChannelIndexByName("Channel 1")).Procedure
iPlot1.DataCursor(1).ChannelName = "Channel 1"
iPlot1.DataCursor(1).ChannelName = iPlot1.Channel(0).Name
Page 6 of 336 Iocomp Components – Plot Pack Manual