Hi,
Do you mean you have a graph active and want to find the x-data associated with one of the data plots in the graph layer?
If yes, for Origin C, see GetDataRange under DataPlot class:
http://www.originlab.com/doc/OriginC/ref/DataPlot-GetDataRange
For Labtalk, an example:
// Declare range variable for x data of the 2nd plot in the active layer
range -wx rwx=2;
which is documented here:
http://www.originlab.com/doc/LabTalk/guide/Range-Notation#Graph_DataRange.2C_Graph_Data
Easwar
OriginLab