| Author | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                                 | 
               
              
                | 
                 Angino 
                 
                
                Germany 
                3 Posts  | 
                
                  
                    
                      
                       Posted - 03/12/2014 :  09:51:38 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Origin Ver. and Service Release (Select Help-->About Origin): 9.0 Operating System: Win 7
  Good Afternoon,
  Im trying to automatise my curve fitting. The Data I want to fit is described with an implict funktion. To do so i wrote this script:
  nlbeginr (1,2) EinDiodenModell2 tt; nlpara; nlfit; nlend 1 1;   
  now I want to be able to edit the Parameter in the Pop up window. This Code just fits it and gives a Report. I tried it with "nlpara 1;" because in the help it said i could do so to edit the parameter, but i only get an error message saying: "#Command Error!". Does anyone know why this does not work or how i can make it work?
  thanks | 
                     
                   
                 | 
               
              
                | 
                 lkb0221 
                 
                
                China 
                497 Posts  | 
                
                  
                    
                      
                       Posted - 03/12/2014 :  1:08:15 PM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Hi, 
  your "nlbegin" has a redundant "r" in the end.
  I tried the following script and it works: // nlbegin iy:=(1,2) func:=gauss nltree:=tt; nlpara 1; nlfit; nlend 1 1; //
  Zheng OriginLab | 
                     
                    
                        | 
                     
                   
                 | 
               
              
                | 
                 Angino 
                 
                
                Germany 
                3 Posts  | 
                
                  
                    
                      
                       Posted - 03/13/2014 :  03:41:09 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       HI Ikb0221
  Yes it does work but not for an implict function, because mine has 2 independent variables, in which case one must use "nlbeginr". But if i use this the Pop up window disappears without editing opportunity right after it popped up and i dont know why. | 
                     
                    
                        | 
                     
                   
                 | 
               
              
                | 
                 Angino 
                 
                
                Germany 
                3 Posts  | 
                
                  
                    
                      
                       Posted - 03/13/2014 :  03:49:10 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                      |  in addition this might not have been very clear, the upper code works perfectly, fits, and gives a Report. Just the editing funcion is lacking functionality | 
                     
                    
                        | 
                     
                   
                 | 
               
              
                | 
                 lkb0221 
                 
                
                China 
                497 Posts  | 
                
                  
                    
                      
                       Posted - 03/13/2014 :  09:30:21 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Hi, 
  I also tried the following and it works fine in 9.0SR2: // nlbeginr irng:=(1,2:3) func:=planeMod nltree:=tt; nlpara 1; nlfit; nlend 1 1; //
  Should use "nlpara 1" instead of "nlpara" only to pop up parameter editing dialog. Maybe your problem is user defined function related? But I duplicated circle function to make it a user defined one, and still no problem.
  Zheng OriginLab | 
                     
                    
                        | 
                     
                   
                 | 
               
              
                |   | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                 | 
               
             
           | 
         
       
     |