Author 
Topic 

jorisdee
3 Posts 
Posted  06/14/2012 : 05:14:20 AM

Origin Ver. and Service Release (Select Help>About Origin): 8.5.1 Operating System: windows 7
dear people from the labtalk forum. I am fairly new to programming in general and in labtalk and therefore experiencing some trouble.
for my work i am automating a integration procedure.
this procedure is suposed to do the folowing:
trim the edges of the datasets plot columns 3 and 4 against column 2 from sheets 3 and 5 of every workbook, in a single plot. then integrate the data and finaly bundle the aquired integration data in a summary report sheet.
so this is what i came up with so far:
doc e L {set %C b 200; set %C e 6100};}; //trim the edges, this seems to work fine
doc e W {plotxy iy:=(3,5)!(2,4) plot:=200;}; // this makes the plot of only column 4 against column 2 of every workbook. so i tried the folowing
doc e W {plotxy iy:=(3,5)!((2,4),(2,3)) plot:=200;}; // but this does not seem to work. however it does work if you do not use it on multiple sheets in your workbook.
doc e W {plotxy iy:=5!((2,4),(2,3)) plot:=200;}; // why does this work and not the above?
doc e LP {pa smode:=1 theme:="dsc integration";}; // as for the integration i use this template however i do not get it to integrate all the plots in a graph.
and finaly for the result sheet i have not found any solutions yet becouse i am trying to solve above problems first.
please excuse me for any grammar isues becouse i am not a native speaker and thanks in advance, joris


greg
USA
1305 Posts 
Posted  06/14/2012 : 09:12:34 AM

"Ask" Origin! If you execute plotxy d you get the plotxy dialog. Add three more Ranges then fill in each X and Y using the hunt buttons. When you are done, the Input string will be exactly what you want.
Here, I have replaced names (which the dialog uses) with indexes: (3!(2,3),3!(2,4),5!(2,3),5!(2,4)) 


jorisdee
3 Posts 
Posted  06/14/2012 : 09:50:49 AM

Thanks Greg!
that is a great help! does this d trick work for all commands? 


jorisdee
3 Posts 
Posted  06/15/2012 : 05:25:23 AM

I think i have solved the integration problem partially
doc e P {paMultiY 1!(1,2,3,4) theme:="dsc integration"}; //seems to integrate all the plots in all graph windows, however it only displays the data of the last graph in the summary results window.
does anybody of you guys know how to fix this problem and how to customize the summary results window to my liking?
once again thanks in advance! 



Topic 


