OK, hopefully this will be the last time I have to reply, because I know that I am being kinda bothersome, but I am still unsure about some of the dunctions about Microcal Labtalk. Here is the script I wrote with comments after every line to tell you exactle what I want this little script to do...win -n plot
//create a graph window
layer.plotxy(Data1_A, Data1_B)
//plot column A of my dataset as X and column B of my dataset as Y
lr Data1
// Do a linear regression of the graph (ie a linear fit of the data points)
type "The Dark Current is " lr.b
// I want to output the slope of the first graph and tell that that is what the value of the dark current is
Data1_D = Data1_A - lr.a
// I want to make a new column in my dataset and sore the value in it of Column one minus the intercept of the first graph. Question? Would it be better if I just wrote over my original column A?
win -n plot
// Open a new graph window
layer.plotxy(Data1_D, Data1_C)
//plot column D of my dataset as X and column C of my dataset as Y
lr Data1
//Do a new linear regression of these points
type "The Responsivity is" lr.b;
// output that the responsivity of the data is the slope of the second graph
type "The noise is" sqrt(lr.a)/lr.b;
// Output that the noise of the date is the square root of the intercept of the second graph divided by the slope of the second graph.
That is it I suppose. I guess I am really more lost than ever, so any help would definately ake my day.