Hi,
You could do something like below:
1> Make a graph with some typical data, customize as needed and then ad a text label to it. Right click on the text label and select "Programming Control" and in the dialog, give it a specific name such as say PassFail
2> Put some text in the label or leave it empty, does not matter at this point, and save the graph as a template with a specific name such as say MyGraph
3> As you are using import wizard (it seems, as you mentioned filters...) on the very last page of the wizard, check "Advanced Options" after checking "Save Filter" and this will take you to an additional page where you can specify script to run at the end of the import
4> In that script edit box, you could enter some script such as pasted below.
Then you can use the filter and it will automatically graph the data and change the label depending on the data statistics. You can also put vertical.horizontal lines in your graph and save as template and from script you can manipulate the position of those lines plus also control whether to show or hide them etc.
If you need more help perhaps it would be better if you send one of your data files and your filter and what you want to be in the graph, to tech support.
Easwar
OriginLab
// Define limit vars
lmin = 1;
lmax = 3;
// Do stats on desired column
stats col(2);
// Define range of data to be plotted - here i am assuming col 2 versus 1
range rplot = (1,2);
// Open instance of your template and plot data
win -t p mygraph;
plotxy rplot ogl:=1;
// Check limits and set text label string value accordingly
if( (stats.min < lmin) || (stats.max > lmax) )
passfail.text$ = "Failed";
else
passfail.text$="Passed";